/* ======================== */
/* VARIABLES & BASE STYLES */
/* ======================== */
:root {
    /* Primary Colors */
    --primary: #3B82F6;  /* Bright, vibrant blue */
    --primary-dark: #2563EB; /* Deeper blue for contrast */
    --primary-darker: #1D4ED8; /* Even darker for text/buttons */
    --primary-light: #93C5FD; /* Light blue for accents */
    
    /* Secondary Colors */
    --secondary: #6366F1; /* Vibrant indigo */
    --accent: #06B6D4; /* Bright cyan for highlights */
    --accent-dark: #0891B2; /* Darker cyan for contrast */
    
    /* Neutral Colors */
    --dark: #111827; /* Almost black for text */
    --darker: #030712; /* Pure black for high contrast */
    --light: #F9FAFB; /* Off-white background */
    --lighter: #FFFFFF; /* Pure white */
    --gray: #6B7280; /* Medium gray */
    --light-gray: #E5E7EB; /* Light gray for borders */
    
    /* Success/Warning Colors */
    --success: #10B981; /* Vibrant green */
    --warning: #F59E0B; /* Golden yellow */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-dark: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--lighter);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    [class*="hover-grow"],
    [class*="pulse-animation"] {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--darker);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ======================== */
/* REUSABLE COMPONENTS */
/* ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: var(--gradient-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--lighter);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    width: auto;
    height: 60px;
    transition: var(--transition);
}

/* Desktop Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

nav ul li a:hover:after {
    width: 100%;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Enhanced Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Make sure header stays fixed and on top */
    header {
        z-index: 1003;
        position: fixed;
    }
    
    .logo img {
        height: 40px;
    }

    /* Mobile toggle button styling */
    .mobile-toggle {
        position: relative;
        z-index: 1002;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        transition: var(--transition);
        display: block;
    }

    .mobile-toggle i {
        font-size: 1.8rem;
        color: var(--primary);
        transition: var(--transition);
    }

    .mobile-toggle:hover i {
        color: var(--primary-dark);
        transform: scale(1.1);
    }

    /* Mobile menu overlay styles */
    nav ul.show {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        padding-top: 80px;
        z-index: 1001;
        animation: fadeIn 0.3s ease-out;
    }

    /* Close button positioning */
    .mobile-toggle.menu-open {
        position: fixed;
        top: 1.5rem;
        right: 2rem;
    }

    /* Menu item animations */
    nav ul.show li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    }

    /* Staggered animation delays */
    nav ul.show li:nth-child(1) { animation-delay: 0.1s; }
    nav ul.show li:nth-child(2) { animation-delay: 0.2s; }
    nav ul.show li:nth-child(3) { animation-delay: 0.3s; }
    nav ul.show li:nth-child(4) { animation-delay: 0.4s; }

    /* Menu link styles */
    nav ul.show li a {
        font-size: 1.8rem;
        color: var(--darker);
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        transition: var(--transition);
    }

    nav ul.show li a:hover {
        color: var(--primary);
        background: rgba(59, 130, 246, 0.1);
    }
}

/* ======================== */
/* MAIN PAGE STYLES */
/* ======================== */
/* Hero Section - Enhanced */
.hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1 1 50%;
    min-width: 300px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--darker);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
    color: var(--gray);
}

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

.hero-image {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 500px;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    object-fit: cover;
}

.hero-image img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hero-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    top: -150px;
    right: -150px;
    z-index: 1;
}

/* Services */
.services {
    background-color: var(--lighter);
}

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

.service-card {
    background: var(--lighter);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

/* Team */
.team {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

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

.team-member {
    background: var(--lighter);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--light-gray);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    background: var(--lighter);
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.member-info p.position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: var(--lighter);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--light-gray);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* CTA */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    color: white;
    position: relative;
    z-index: 2;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.cta .btn {
    background: var(--lighter);
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.cta .btn:hover {
    color: var(--primary-dark);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(var(--light) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Contact */
.contact-form {
    background: var(--lighter);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--light-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--lighter);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Form Error Styling */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error {
    border-color: #dc3545 !important;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.25rem;
}

/* ======================== */
/* TEAM PAGE STYLES */
/* ======================== */
/* Team Member Hero */
.team-hero {
    padding: 12rem 0 4rem;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.team-hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.team-member-image {
    position: relative;
}

.team-member-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.team-member-basic-info h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.position {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.team-member-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.team-member-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    font-size: 1.25rem;
}

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

.team-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.team-social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Team Main Content */
.team-main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
    padding: 4rem 0;
}

/* Sidebar */
.team-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.expertise-card {
    background: var(--lighter);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--light-gray);
}

.expertise-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark);
    border: 1px solid var(--light-gray);
}

.contact-card {
    background: var(--lighter);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
}

.contact-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 20px;
    color: var(--primary);
}

/* Content */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    margin-bottom: 2rem;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    height: calc(100% - 8px);
    width: 2px;
    background: var(--light-gray);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--gray);
}

/* Education */
.education-list {
    display: grid;
    gap: 1.5rem;
}

.education-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
}

.education-degree {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.education-institution {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-date {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.certification-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.certification-issuer {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.certification-date {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Projects */
.projects-grid {
    display: grid;
    gap: 1.5rem;
}

.project-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.project-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Team CTA Section */
.team-cta {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.team-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.team-cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ======================== */
/* FOOTER */
/* ======================== */
footer {
    background: var(--darker);
    color: white;
    padding: 6rem 0 2rem;
}

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

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--lighter);
}

.footer-heading:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

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

/* ======================== */
/* ANIMATIONS & EFFECTS */
/* ======================== */
.highlight-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.hover-grow {
    transition: var(--transition);
}

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

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Element-specific animations */
.hero-content {
    animation: fadeIn 1s ease-out both;
}

.hero-text {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-image {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.services-grid {
    perspective: 1000px;
}

.service-card {
    transform-style: preserve-3d;
    animation: scaleIn 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.team-member {
    animation: fadeIn 0.8s ease-out both;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

.process-steps {
    counter-reset: step-counter;
}

.step {
    position: relative;
    animation: slideUp 0.6s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }

/* Scroll-based animations */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fadeIn"] {
    transform: translateY(20px);
}

[data-animate="fadeIn"].animate {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="slideLeft"] {
    transform: translateX(-30px);
}

[data-animate="slideLeft"].animate {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slideRight"] {
    transform: translateX(30px);
}

[data-animate="slideRight"].animate {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scaleIn"] {
    transform: scale(0.95);
}

[data-animate="scaleIn"].animate {
    opacity: 1;
    transform: scale(1);
}

.hero-image, .service-card, .team-member, .step, .btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Floating animation for hero image */
@media (min-width: 992px) {
    .hero-image img {
        animation: float 6s ease-in-out infinite;
    }
}

/* ======================== */
/* RESPONSIVE STYLES */
/* ======================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }

    /* Team page responsive */
    .team-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .team-member-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .team-member-meta {
        justify-content: center;
    }
    
    .team-social-links {
        justify-content: center;
    }
    
    .team-main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 3rem;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary);
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-image img {
        max-height: 350px;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }

    /* Team page mobile */
    header {
        padding: 1rem 0;
    }
    
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--lighter);
        box-shadow: var(--shadow-md);
        padding: 1.5rem;
    }
    
    nav ul li {
        margin: 0.75rem 0;
    }
    
    .team-hero {
        padding: 7rem 0 3rem;
    }
    
    .team-member-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Team page mobile */
    .expertise-card,
    .contact-card {
        padding: 1.5rem;
    }
}