/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Color Variables */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --accent-blue: #60a5fa;
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

/* Logo Styling */
.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
    object-fit: cover;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 64, 175, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(30, 64, 175, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    width: 0%;
    transition: width 0.1s ease;
}

/* Hero Section with Card Carousel */
.hero {
    min-height: 100vh;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 600;
}

.stat-item i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent-blue);
}

/* Interactive Card Carousel */
.hero-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    perspective: 1200px;
}

.card-carousel {
    position: relative;
    width: 350px;
    height: 450px;
    margin-bottom: 2rem;
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
            opacity 1.2s ease-in-out,
            box-shadow 1.2s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform-origin: center;
}

.carousel-card.active {
    z-index: 3;
    opacity: 1;
    transform: translateZ(0px) scale(1) rotateY(0deg);
    background-blend-mode: normal;
}

.carousel-card:not(.active):nth-child(1) {
    z-index: 1;
    opacity: 0.7;
    transform: translateZ(-100px) translateX(-80px) scale(0.85) rotateY(25deg);
}

.carousel-card:not(.active):nth-child(2) {
    z-index: 1;
    opacity: 0.7;
    transform: translateZ(-100px) translateX(80px) scale(0.85) rotateY(-25deg);
}

.carousel-card:not(.active):nth-child(3) {
    z-index: 2;
    opacity: 0.8;
    transform: translateZ(-50px) translateX(-40px) scale(0.9) rotateY(15deg);
}

.carousel-card:hover:not(.active) {
    opacity: 0.9;
    transform: translateZ(-50px) scale(0.9) rotateY(0deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.carousel-card.active:hover {
    transform: translateZ(20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1.2s ease;
    background-color: rgba(97, 19, 19, 0.2); /* dark base */
    background-blend-mode: multiply; /* mix with image */
}

.carousel-card:hover .card-background {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.8) 0%, 
        rgba(59, 130, 246, 0.7) 50%,
        rgba(96, 165, 250, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
}


.carousel-card.active .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,   /* 10% black, transparent top */
        rgba(0,0,0,0.6) 100% /* dark fade bottom */
    );
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.carousel-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.card-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-overlay p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-stats span {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Common Button Styling */
.cta-button, .whatsapp-button {
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px; /* pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); /* same depth */
    text-decoration: none;
}

/* CTA Button (Orange Gradient) */
.cta-button {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* WhatsApp Button (Green) */
.whatsapp-button {
    background: #25D366; /* WhatsApp green */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    background: #1ebc59; /* Slightly darker */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* WhatsApp Icon inside */
.whatsapp-button .whatsapp-logo {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* ensures white logo */
}



/* Section Styles - Fixed spacing */
section {
    padding: 6rem 0;
    position: relative;
}

/* About Section - Fixed to prevent overlap */
.about {
    background: var(--light-blue);
    margin-top: 0;
    padding-top: 6rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

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

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.2);
}

.about-card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.schedule-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.schedule-info i {
    font-size: 1.5rem;
    color: var(--secondary-blue);
}

/* Process Section */
.process {
    background: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-blue);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin: 0 2rem;
}

.step-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    flex: 1;
    max-width: 300px;
}

.step-content i {
    font-size: 2rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Modules Section - Updated for hover interaction */
.modules {
    background: var(--light-blue);
}

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

.module-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transition: left 0.3s ease;
}

.module-card:hover::before {
    left: 0;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25);
}

.module-card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.module-card:hover i {
    transform: scale(1.1);
    color: var(--primary-blue);
}

.module-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.module-card p {
    transition: color 0.3s ease;
}

.module-card:hover p {
    color: var(--text-dark);
}

/* Features Section */
.features {
    background: var(--white);
}

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

.feature-item {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-blue);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Careers Section */
.careers {
    background: var(--light-blue);
}

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

.career-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transition: left 0.3s ease;
}

.career-card:hover::before {
    left: 0;
}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.2);
}

.career-card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.career-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    background: var(--white);
}

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

.project-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.2);
}

.project-card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-card p {
    position: relative;
    z-index: 1;
}

/* Skills Section */
.skills {
    background: var(--light-blue);
}

.skills-list {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
}

.skill-item i {
    font-size: 2rem;
    color: var(--secondary-blue);
    margin-right: 1rem;
    min-width: 50px;
}

/* CTA Section */
.cta {
    background: var(--gradient-blue);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Glassmorphism Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s ease;
    max-height: 85vh;
    overflow: hidden;
}

.modal-content.wide {
    max-width: 1000px;
}

.modal-header {
    background: rgba(30, 64, 175, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-radius: 0 0 20px 20px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.modal-body h4 {
    color: var(--secondary-blue);
    margin: 1.5rem 0 0.5rem 0;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.roadmap-step {
    background: var(--light-blue);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-blue);
}

.roadmap-step h4 {
    color: var(--primary-blue);
    margin: 0 0 0.5rem 0;
}

.salary-info {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
}

.week-breakdown {
    background: var(--white);
    border: 1px solid var(--light-blue);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.week-breakdown h4 {
    color: var(--primary-blue);
    margin: 0 0 0.5rem 0;
}

.week-day {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.week-day strong {
    color: var(--secondary-blue);
}

/* Animation Classes */
.fade-in, .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animate, .fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Modal Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Carousel Animation on Load */
@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(90deg);
    }
    100% {
        opacity: 1;
    }
}

.carousel-card:nth-child(1) {
    animation: cardSlideIn 0.8s ease-out 0.2s both;
}

.carousel-card:nth-child(2) {
    animation: cardSlideIn 0.8s ease-out 0.4s both;
}

.carousel-card:nth-child(3) {
    animation: cardSlideIn 0.8s ease-out 0.6s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
        gap: 2rem;
    }
    
    .hero-content {
        margin-top: 3rem; /* Add this new property */
    }

    .hero-content h1 {
        padding-top: 80px;
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .card-carousel {
        width: 280px;
        height: 360px;
        margin-bottom: 1rem;
    }

    .carousel-card:not(.active):nth-child(1) {
        transform: translateZ(-80px) translateX(-60px) scale(0.8) rotateY(20deg);
    }

    .carousel-card:not(.active):nth-child(2) {
        transform: translateZ(-80px) translateX(60px) scale(0.8) rotateY(-20deg);
    }

    .carousel-card:not(.active):nth-child(3) {
        transform: translateZ(-40px) translateX(-30px) scale(0.85) rotateY(10deg);
    }

    .card-overlay {
        padding: 1.5rem;
    }

    .card-overlay h3 {
        font-size: 1.5rem;
    }

    .card-overlay p {
        font-size: 1rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        flex-direction: row !important;
        padding-left: 80px;
    }

    .step-number {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .step-content {
        max-width: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .card-carousel {
        width: 240px;
        height: 300px;
    }

    .carousel-card:not(.active) {
        opacity: 0.6;
    }

    .carousel-card:not(.active):nth-child(1),
    .carousel-card:not(.active):nth-child(2) {
        transform: translateZ(-60px) scale(0.75) rotateY(15deg);
    }

    .carousel-card:not(.active):nth-child(3) {
        transform: translateZ(-30px) scale(0.8) rotateY(10deg);
    }

    .about-grid,
    .modules-grid,
    .features-grid,
    .careers-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 98%;
        margin: 5% auto;
        border-radius: 15px;
    }

    .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 15px 15px 0 0;
    }

    .modal-body {
        padding: 1rem;
        border-radius: 0 0 15px 15px;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .carousel-card {
        transition: none;
    }

    .card-background {
        transition: none;
    }

    @keyframes cardSlideIn {
        0%, 100% { 
            opacity: 1; 
            transform: none;
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .dot {
        border: 2px solid white;
    }
}