/* Projects Page Styles */

:root {
    --white: #ffffff;
    --black: #000000;
    --dark: #1a1a1a;
    --color-primary: #f05725;
    --color-primary-dark: #e03a03;
    --color-primary-light: #ee683b;
    
    --text: #232A34;
    --secondary-light: #343E4D;
    --text-dark: #1A2028;
}

/* Header Initial State */
.header {
    transition: all 0.3s ease;
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header .nav-menu > li > a {
    color: #ffffff;
}

.header .nav-menu > li > a:hover,
.header .nav-menu > li > a.active {
    color: var(--primary-light);
}

.header .header-social a {
    color: #ffffff;
}

.header .hamburger span {
    background-color: #ffffff;
}

/* Capsule Header Style */
.page-header {
    background-image: url('../../images/optimized/large/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 50px 50px;
    padding: 200px 0 100px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}

.page-header__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header__title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-header__title .tamil-text {
    font-size: 1.2rem;
    color: var(--primary);
    display: block;
    margin-top: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.page-header__subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 15px auto 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header__description {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 15px auto 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff;
    line-height: 1.6;
}

/* Project Categories */
.project-categories {
    padding: 2rem 0;
    background: var(--color-light);
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-primary);
    color: white;
}

/* Projects Showcase */
.projects-showcase {
    padding: 4rem 0;
    background: white;
}

.projects-swiper {
    padding: 2rem 0;
    position: relative;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.1);
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__content h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.project-card__content p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card__link:hover {
    color: var(--color-primary-dark);
}

/* Swiper Navigation */
.projects-swiper .swiper-button-next,
.projects-swiper .swiper-button-prev {
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.projects-swiper .swiper-button-next:after,
.projects-swiper .swiper-button-prev:after {
    font-size: 1.25rem;
}

.projects-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    opacity: 0.5;
}

.projects-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Project Stats */
.project-stats {
    padding: 4rem 0;
    background: var(--color-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--color-text);
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-buttons {
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .project-card__image {
        height: 200px;
    }

    .project-card__content {
        padding: 1rem;
    }

    .project-card__content h3 {
        font-size: 1.1rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .category-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .category-btn {
        width: 100%;
        text-align: center;
    }

    .project-card__image {
        height: 180px;
    }

    .stat-item {
        padding: 1rem;
    }
}

/* Instagram Showcase */
.instagram-showcase {
    padding: 80px 0;
    background-color: var(--color-light);
}

.instagram-showcase .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.instagram-showcase .section-subtitle {
    color: var(--color-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.instagram-showcase .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.instagram-showcase .section-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.instagram-slider-container {
    margin-top: 40px;
    padding: 20px 0;
}

.swiper-3d {
    width: 100%;
    padding: 50px 0;
}

.swiper-3d .swiper-slide {
    width: 350px;
    height: auto;
}

.instagram-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-container {
    width: 100%;
    position: relative;
    background: #000;
    aspect-ratio: 1/1;
}

.video-container iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

.instagram-card__content {
    padding: 20px;
    background: #fff;
    flex: 1;
}

.instagram-card__content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.instagram-card__content .tamil-title {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.instagram-card__content .description {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.instagram-card__content .tamil-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

.swiper-pagination-bullet {
    background: var(--color-primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .swiper-3d .swiper-slide {
        width: 300px;
    }
    
    .instagram-card__content {
        padding: 15px;
    }
    
    .instagram-card__content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .swiper-3d .swiper-slide {
        width: 280px;
    }
    
    .instagram-card__content {
        padding: 12px;
    }
    
    .instagram-card__content h3 {
        font-size: 1rem;
    }
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Changed from 177.78% to 100% for square aspect ratio */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-btn i {
    font-size: 24px;
    color: var(--color-primary);
    margin-left: 4px;
}

.play-btn:hover {
    background: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn:hover i {
    color: white;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 20px;
    aspect-ratio: 16/9; /* Added for better video display */
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 1;
}

.video-modal__player {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal__player iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Swiper Adjustments */
.swiper-3d {
    padding: 50px 0;
}

.swiper-3d .swiper-slide {
    width: 500px;
    transition: transform 0.3s ease;
}

.swiper-3d .swiper-slide-active {
    transform: scale(1.05);
}

/* Footer styling */
.footer {
    background: #121820;
    color: #ffffff;
    padding: 80px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer a {
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
}

.footer__bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-modal__content {
        width: 95%;
    }

    .video-modal__close {
        top: -30px;
        right: 0;
    }

    .swiper-3d .swiper-slide {
        width: 400px;
    }
}

@media (max-width: 480px) {
    .swiper-3d .swiper-slide {
        width: 300px;
    }
} 