#projects{
    margin-left: auto;
    margin-right: auto;
    
}
@font-face   {
    font-family:sfpro;
    src: url(SF-Pro.ttf);
    }

/*div a{
    margin: 5px;
    Padding: 10px;
}*/

p{
    font-family: sfpro;
    font-weight:200;
}


.links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Links page grid - 3 cards per row */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Projects page grid - 3 cards per row */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.link-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.link-image {
    width: 100%;
    height: 300px; /* Fixed height for all images */
    display: block;
    object-fit: cover; /* This ensures the image covers the area without distortion */
    object-position: center; /* Centers the image */
}

.link-content {
    padding: 20px;
    text-align: center;
}

.link-title {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
    font-family: sfpro, Arial, sans-serif;
    font-weight: 300;
}

.link-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.link-button {
    display: inline-block;
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.link-card:hover .link-button {
    background-color: #3498db;
}

.links-container {
    text-align: center;
    margin-bottom: 40px;
}

/* About page styles */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.about-content h1 {
    font-size: 48px;
    margin-bottom: 35px;
    color: #000000;
    font-weight: 600;
    text-align: center;
}

.about-intro-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.about-photo {
    flex: 0 0 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About page animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.about-text p:nth-child(1) {
    animation-delay: 0.2s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.6s;
}

.about-text p:nth-child(3) {
    animation-delay: 1.0s;
}

.about-text p:nth-child(4) {
    animation-delay: 1.4s;
}

.about-photo {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Content Cards Styles */
.content-cards {
    margin-top: 60px;
}

.content-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.content-card:nth-child(1) {
    animation-delay: 1.6s;
}

.content-card:nth-child(2) {
    animation-delay: 1.8s;
}

.content-card:nth-child(3) {
    animation-delay: 2.0s;
}

.content-card:nth-child(4) {
    animation-delay: 2.2s;
}

.content-card:nth-child(5) {
    animation-delay: 2.4s;
}

.content-description {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 600;
    text-align: center;
}

.content-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    opacity: 1;
    animation: none;
    text-align: center;
}

.content-description a {
    display: inline-block;
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid #000000;
    box-shadow: none;
}

.content-description a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.card-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}

.card-links a {
    display: inline-block;
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    box-shadow: none;
}

.card-links a:hover {
    background-color: #F5C500;
    color: #ffffff;
    border-color: #F5C500;
}

/* Override any other button styles */
.content-card .link-button,
.content-card a.link-button {
    background-color: #ffffff !important;
    color: #F5C500 !important;
    border: 2px solid #000000;
    box-shadow: none;
}

.content-card .link-button:hover,
.content-card a.link-button:hover {
    background-color: #F5C500 !important;
    color: #ffffff !important;
}

.content-media {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.content-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.content-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contact page styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center;
}

.contact-container {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 600;
}

.contact-intro {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.contact-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 50%;
    border: 2px solid black;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 110px;
    height: 110px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #F5C500;
}

.icon-container {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-normal, .icon-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.icon-normal {
    opacity: 1;
}

.icon-hover {
    opacity: 0;
}

.contact-item:hover .icon-normal {
    opacity: 0;
}

.contact-item:hover .icon-hover {
    opacity: 1;
}

.contact-text {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .links-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .about-intro-container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .about-photo {
        flex: 0 0 auto;
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }

    .about-text p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .contact-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-item {
        width: 90px;
        height: 90px;
        padding: 15px;
    }
    
    .icon-container {
        width: 90px;
        height: 90px;
    }
    
    .contact-text {
        font-size: 16px;
    }
    
    .content-card {
        flex-direction: column;
        margin: 15px;
    }
    
    .content-media {
        min-height: 200px;
    }

    .content-description {
        padding: 20px;
    }

    .content-description h2 {
        font-size: 20px;
    }

    .content-description p {
        font-size: 14px;
    }

    .card-button {
        font-size: 14px;
        padding: 6px 12px;
    }

    .links-container h1,
    .projects-container h1,
    .contact-container h1,
    .about-content h1 {
        font-size: 36px;
        padding: 0 15px;
    }

    .contact-intro {
        font-size: 16px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
    
    .icon-container {
        width: 80px;
        height: 80px;
    }

    .contact-links {
        gap: 15px;
    }

    .links-container h1,
    .projects-container h1,
    .contact-container h1 {
        font-size: 24px;
    }

    .about-text p {
        font-size: 15px;
    }
}

/* Card Button Styles */
.card-button {
    display: inline-block;
    background-color: #F5C500;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 auto;
}

.card-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 197, 0, 0.5);
}

/* Override the content-description a styles for card buttons */
.content-description {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 600;
    text-align: center;
}

.content-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    opacity: 1;
    animation: none;
    text-align: center;
}

.section-title h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 300;
}

.project-title {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
    font-family: sfpro, Arial, sans-serif;
    font-weight: 300;
}

.project-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 600;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
    transition: all 0.3s ease-out;
}

.video-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 10px;
    min-width: 0;
}

.video-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.video-content {
    padding: 12px;
    min-width: 0; /* Add this to allow text truncation */
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    line-height: 1.4;
    white-space: normal; /* Allow text to wrap */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show 2 lines of text */
    -webkit-box-orient: vertical;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .video-title {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .video-card {
        margin: 5px;
    }
    
    .video-content {
        padding: 10px;
    }
    
    .video-title {
        font-size: 13px;
    }
}