/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal overflow */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    height: 70px; /* Fixed height */
    width: 100%;
    border: none;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Full height of header */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px; /* Slightly smaller to fit better */
    width: 200px;
    object-fit: cover;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav ul li {
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

/* Main Content */
main {
    margin-top: 70px; /* Match header height exactly */
    min-height: calc(100vh - 70px);
    padding: 0; /* Remove any default padding */
    width: 100%;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px); 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: transparent;
    position: relative;
    overflow: hidden;
    margin: 0; /* Remove any margin */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: rgb(14, 14, 14);
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    filter: brightness(0.6) contrast(1.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    transform: none !important; /* Prevent any transforms from hiding images */
}

/* Custom Cursor - DISABLED */
.custom-cursor {
    display: none !important;
}

.cursor-dot {
    display: none !important;
}

.cursor-hover {
    display: none !important;
}

/* Stats Section */
.stats {
    background: white;
    padding: 4rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: #3498db;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Intro Section */
.intro {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Focus Areas */
.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.focus-area {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.focus-area:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.focus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.focus-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.focus-area p {
    color: #555;
    line-height: 1.6;
}

/* Featured Story */
.featured-story {
    background: #f8f9fa;
    padding: 5rem 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.story-text h3 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

/* Page Hero (for About page) */
.page-hero {
    position: relative;
    height:89vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/3.jpg');
    background-size: cover;
    background-position: center 20%; /* Adjusted to show more of the image and avoid cutting heads */
    background-attachment: fixed;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: pageHeroFadeIn 1.5s ease-out;
}

@keyframes pageHeroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.about-us {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-content {
    padding: 0 2rem;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Vision Section - Modern Design */
.vision-section {
    margin: 4rem 0;
}

.vision-card {
    background: white;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%232c3e50" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%232c3e50" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%232c3e50" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%232c3e50" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%232c3e50" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.vision-icon {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
}

.vision-icon span {
    font-size: 4rem;
    display: inline-block;
    animation: visionIconFloat 3s ease-in-out infinite;
}

@keyframes visionIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.vision-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.vision-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.vision-statement {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.vision-pillars {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pillar:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pillar-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #495057;
}

/* Mission Section - Modern Design */
.mission-section {
    margin: 4rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: white;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #34495e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mission-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mission-icon span {
    font-size: 3rem;
    display: inline-block;
    color: #2c3e50; /* Solid color instead of gradient */
    animation: missionIconPulse 2s ease-in-out infinite;
}

@keyframes missionIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.mission-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    text-align: center;
}

/* Focus Sections */
.focus-sections {
    margin: 4rem 0;
}

.focus-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.focus-section.reverse {
    direction: rtl;
}

.focus-section.reverse .focus-section-content {
    direction: ltr;
}

.focus-section-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.focus-section-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.focus-section-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.focus-section-content ul {
    list-style: none;
    padding-left: 0;
}

.focus-section-content li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.focus-section-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Values Section */
.values-section {
    margin: 4rem 0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.value-item h4 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.value-item p {
    color: #555;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: white;
    color: #333;
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-header {
    margin-bottom: 3rem;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-feature {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cta-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cta-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.cta-feature p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

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

.cta-button.primary {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.cta-button.secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.cta-button.primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.cta-button.secondary:hover {
    background: #3498db;
    color: white;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section {
    padding: 0;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.social-links a:hover {
    opacity: 1;
}

/* Projects Page Specific Styles */
.projects-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 89vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-position: center 20%;
    margin-top: 10px;
    position: relative;
}

.projects-hero .page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.projects-hero .page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.projects-stats {
    background: white;
    padding: 4rem 0;
    border-bottom: 1px solid #e9ecef;
}

.projects-stats .stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.projects-stats .stat-item h3 {
    color: #3498db;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.projects-stats .stat-item p {
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
}

.projects {
    padding: 5rem 0;
    background: #f8f9fa;
}

.projects-intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.projects-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.projects-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Ensure gallery images display properly */
.gallery-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Projects page responsive */
@media (max-width: 768px) {
    .projects-hero .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .projects-stats .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .projects-intro h2 {
        font-size: 2rem;
    }
    
    .gallery {
        padding: 0 1rem;
    }
}

/* Projects Page Gallery */
.projects {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.projects h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item-info {
    padding: 2rem;
}

.gallery-item-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.gallery-item-info p {
    color: #555;
    line-height: 1.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #3498db;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
    background: white;
}

.modal-info .project-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

/* Gallery Items */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1) !important;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(155, 89, 182, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.gallery-overlay-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.gallery-overlay-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.view-project-btn {
    background: white;
    color: #3498db;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-project-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item-info .project-category {
    background: #3498db;
    color: white;
    margin-bottom: 1rem;
}

.gallery-item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.gallery-item-info p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Enhanced Counter Animation */
.counter {
    transition: all 0.3s ease;
}

.counter.animate {
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Approach Section - Modern Design */
.approach-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 20px;
}

.approach-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.approach-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.approach-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.approach-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.approach-icon {
    margin-bottom: 1.5rem;
    color: #1976d2;
}

.approach-icon span {
    font-size: 3rem;
    display: inline-block;
    animation: approachIconRotate 4s ease-in-out infinite;
}

@keyframes approachIconRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.approach-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.approach-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.stat-highlight {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-width: 150px;
}

.stat-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design for Approach Section */
@media (max-width: 768px) {
    .approach-section {
        margin: 2rem 1rem;
        padding: 2rem 0;
    }
    
    .approach-header h2 {
        font-size: 2rem;
    }
    
    .approach-header p {
        font-size: 1.1rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .approach-card {
        padding: 2rem;
    }
    
    .approach-stats {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-highlight {
        padding: 1.5rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .approach-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-highlight {
        width: 100%;
        max-width: 200px;
    }
}

/* Poster Gallery */
.poster-gallery {
    padding: 5rem 0;
    background: #f8f9fa;
    margin-top: 3rem;
}

.poster-gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.poster-gallery-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.poster-gallery-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.poster-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    animation: posterFloat 6s ease-in-out infinite;
}

.poster-item:nth-child(odd) {
    animation-delay: 0s;
}

.poster-item:nth-child(even) {
    animation-delay: 3s;
}

.poster-item:hover {
    transform: translateY(-15px) scale(1.02) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation-play-state: paused;
}

.poster-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.poster-item:hover::before {
    opacity: 1;
}

.poster-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.poster-item:hover::after {
    transform: translateX(100%);
}

.poster-image {
    position: relative;
    overflow: hidden;
}

.poster-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.poster-item:hover .poster-image img {
    transform: scale(1.1) rotate(0.5deg) !important;
    filter: brightness(1.1);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(155, 89, 182, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 2rem;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.poster-item:hover .poster-overlay {
    opacity: 1;
}

.poster-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(30px) scale(0.9);
    transition: transform 0.4s ease;
    opacity: 0;
}

.poster-item:hover .poster-overlay-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.poster-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.poster-item:hover .poster-category {
    transform: translateY(0);
}

.poster-overlay-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.poster-item:hover .poster-overlay-content h3 {
    transform: translateY(0);
}

.poster-overlay-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.3s;
}

.poster-item:hover .poster-overlay-content p {
    transform: translateY(0);
}

.view-poster-btn {
    background: white;
    color: #3498db;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    transform: translateY(20px) scale(0.9);
    transition: transform 0.4s ease 0.4s, all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poster-item:hover .view-poster-btn {
    transform: translateY(0) scale(1);
}

.view-poster-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-poster-btn:hover::before {
    left: 100%;
}

.view-poster-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Enhanced Poster Gallery Animations */
.poster-item {
    opacity: 0;
    transform: translateY(50px) rotate(5deg);
    animation: posterFadeIn 0.8s ease-out forwards, posterFloat 6s ease-in-out infinite 0.8s;
}

.poster-item:nth-child(1) { animation-delay: 0.1s, 0.9s; }
.poster-item:nth-child(2) { animation-delay: 0.2s, 1.0s; }
.poster-item:nth-child(3) { animation-delay: 0.3s, 1.1s; }
.poster-item:nth-child(4) { animation-delay: 0.4s, 1.2s; }
.poster-item:nth-child(5) { animation-delay: 0.5s, 1.3s; }
.poster-item:nth-child(6) { animation-delay: 0.6s, 1.4s; }
.poster-item:nth-child(7) { animation-delay: 0.7s, 1.5s; }
.poster-item:nth-child(8) { animation-delay: 0.8s, 1.6s; }
.poster-item:nth-child(9) { animation-delay: 0.9s, 1.7s; }

@keyframes posterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes posterFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Add pulse animation for attention */
.poster-item:nth-child(3n+1) {
    animation: posterFadeIn 0.8s ease-out forwards, posterFloat 6s ease-in-out infinite 0.8s, posterPulse 4s ease-in-out infinite 2s;
}

@keyframes posterPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
    }
}

/* Poster Gallery Responsive */
@media (max-width: 768px) {
    .poster-gallery {
        padding: 3rem 0;
    }
    
    .poster-gallery-header h2 {
        font-size: 2rem;
    }
    
    .poster-gallery-header p {
        font-size: 1rem;
    }
    
    .poster-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .poster-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .poster-grid {
        grid-template-columns: 1fr;
    }
    
    .poster-image img {
        height: 280px;
    }
}

/* Poster Modal */
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.poster-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.close-poster-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.close-poster-modal:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.poster-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
}

.poster-modal-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.poster-modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.poster-modal-header p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.poster-modal-image {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.poster-modal-image img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.poster-modal-image img:hover {
    transform: scale(1.05);
}

.poster-modal-actions {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: white;
}

.download-poster-btn, .share-poster-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-poster-btn {
    background: #3498db;
    color: white;
}

.download-poster-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.share-poster-btn {
    background: #9b59b6;
    color: white;
}

.share-poster-btn:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

/* Poster Modal Responsive */
@media (max-width: 768px) {
    .poster-modal {
        padding: 1rem;
    }
    
    .poster-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .poster-modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .poster-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .poster-modal-image {
        padding: 1rem;
    }
    
    .poster-modal-actions {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .download-poster-btn, .share-poster-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .poster-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .poster-modal-header p {
        font-size: 0.9rem;
    }
}

/* Modern Interactive Features */

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(52, 152, 219, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #3498db;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
}

.cursor-hover {
    transform: scale(2);
    background: rgba(52, 152, 219, 0.8);
}

.cursor-dot.cursor-hover {
    transform: scale(0.5);
    opacity: 0;
}

/* Particle Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Text Reveal Animation */
h1, h2, h3, p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.text-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button Effect */
.btn, .view-poster-btn, .download-poster-btn, .share-poster-btn {
    transition: transform 0.3s ease;
}

/* Enhanced Card Interactions */
.poster-item, .card, .gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Parallax Effect */
.hero-image, .poster-image img {
    transition: transform 0.1s ease;
}

/* Tilt Effect */
.poster-item, .card, .gallery-item {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Hover Effects Enhancement */
.poster-item:hover, .card:hover, .gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Glow Effects */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.glow-on-hover:hover::before {
    left: 100%;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Modal Animations */
.modal, .poster-modal {
    backdrop-filter: blur(10px);
}

/* Dynamic Background Colors */
:root {
    --section-bg-color: #ffffff;
}

section {
    background: var(--section-bg-color);
    transition: background-color 0.5s ease;
}

/* Enhanced Typography Animations */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #3498db;
    color: #1976d2;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #3498db; }
}

/* Floating Animation for Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shake Animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Bounce Animation */
.bounce {
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Rotate Animation */
.rotate {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Enhanced Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid #1976d2;
    color: #1976d2;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* Responsive Design for Interactive Features */
@media (max-width: 768px) {
    .custom-cursor, .cursor-dot {
        display: none;
    }
    
    .particles-container {
        display: none;
    }
    
    .scroll-progress {
        height: 2px;
    }
    
    .poster-item:hover, .card:hover, .gallery-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .custom-cursor, .cursor-dot, .particles-container {
        display: none;
    }
}

/* Container and Grid Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Vision Mission Section */
.vision-mission {
    padding: 5rem 0;
    background: white;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.vision-card, .mission-card {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.vision-card {
    background: white;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.mission-card {
    background: white;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.vision-card h3, .mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.vision-card p, .mission-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Approach Section */
.approach {
    padding: 5rem 0;
    background: white;
}

.approach h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.approach-card {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.approach-card .card-icon {
    font-size: 2.5rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.approach-card p {
    color: #666;
    line-height: 1.6;
}

/* Join Movement Section */
.join-movement {
    padding: 5rem 0;
    background: #f8f9fa;
    text-align: center;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.join-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Intro Section */
.intro {
    padding: 5rem 0;
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.focus-area {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.focus-area:hover {
    transform: translateY(-5px);
}

.focus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.focus-area h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.focus-area p {
    color: #666;
    line-height: 1.6;
}

/* Featured Story Section */
.featured-story {
    padding: 5rem 0;
    background: #f8f9fa;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.story-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.story-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #3498db;
    font-weight: 600;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    /* background: linear-gradient(135deg, #2c3e50, #34495e); */
    color: white;
    text-align: center;
}

.cta-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-header p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-feature {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-feature p {
    opacity: 0.8;
    line-height: 1.6;
}

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

.cta-button.primary {
    background: #3498db;
    color: white;
}



.cta-button.secondary:hover {
    background: white;
    color: #2c3e50;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section {
    padding: 0;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.social-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .intro-content, .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .focus-areas {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Comprehensive fix to prevent images from disappearing during scroll */
img {
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Override any problematic transforms */
.hero-image,
.poster-image,
.gallery-image,
.intro-image,
.story-image {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ensure images in these containers stay visible */
.hero-image img,
.poster-image img,
.gallery-image img,
.intro-image img,
.story-image img {
    position: relative;
    z-index: 1;
    transform: none !important;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Only apply transforms on hover, not on scroll */
.poster-item:hover .poster-image img {
    transform: scale(1.1) rotate(0.5deg) !important;
    filter: brightness(1.1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1) !important;
}

/* Remove any scroll-based transforms */
* {
    transform-style: preserve-3d;
}

/* Ensure containers don't cause clipping */
.gallery-item,
.poster-item,
.hero-image,
.intro-image,
.story-image {
    overflow: visible;
    position: relative;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Responsive styles for About page */
@media (max-width: 768px) {
    .page-hero {
        height: calc(60vh - 70px); /* Slightly smaller on mobile but still larger than before */
        background-position: center 25%; /* Adjusted for mobile */
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .vision-card {
        padding: 2rem;
    }
    
    .vision-content h2 {
        font-size: 2rem;
    }
    
    .vision-pillars {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .focus-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .focus-section.reverse {
        direction: ltr;
    }
    
    .focus-section-content h3 {
        font-size: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .approach-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: calc(55vh - 70px); /* Maintain good size even on small screens */
        background-position: center 30%; /* Further adjusted for small screens */
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .vision-card {
        padding: 1.5rem;
    }
    
    .mission-card {
        padding: 1.5rem;
    }
    
    .focus-section-content h3 {
        font-size: 1.3rem;
    }
    
    .values-section h2 {
        font-size: 1.8rem;
    }
    
    .approach-header h2 {
        font-size: 1.8rem;
    }
}