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

/* Tailwind CSS compatibility */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

/* Navigation styles for new design */
.nav-link {
    @apply px-3 py-2 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 hover:text-primary dark:hover:text-primary transition-colors duration-200;
}

.nav-link.active {
    @apply text-primary dark:text-primary font-semibold;
}

.mobile-nav-link {
    @apply block px-3 py-2 rounded-md text-base font-medium text-gray-700 dark:text-gray-300 hover:text-primary hover:bg-gray-50 dark:hover:bg-gray-800 transition-all duration-200;
}

.mobile-nav-link.active {
    @apply text-primary bg-primary/10 font-semibold;
}

/* Skip link accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

:root {
    --primary: #2d5a54;
    --primary-light: #4a7c75;
    --primary-dark: #1e3d38;
    --accent: #d97706;
    --accent-light: #f59e0b;

    /* Africa theme colors - more subtle */
    --africa-gold: #b45309;
    --africa-earth: #92400e;
    --africa-sunset: #c2410c;

    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover: #f8fafc;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    
    /* Common variables */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --max-width: 1400px;
    --section-padding: 120px;
    --container-padding: 40px;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.98);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px var(--container-padding);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 16px var(--container-padding);
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    padding: 5px 0;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
    opacity: 0.8;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: 50px;
    height: 28px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(64, 167, 152, 0.1);
}

.theme-toggle-slider {
    background: var(--primary);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(22px);
}

.theme-toggle-icon {
    font-size: 10px;
    opacity: 0.8;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--card-hover);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(64, 167, 152, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 44%, rgba(64, 167, 152, 0.04) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%;
    background-position: 0 0, 0 0;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 30px;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
    position: relative;
    padding-bottom: 20px;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.hero .tagline {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .author {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    animation: fadeInUp 1s ease 0.4s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Sections */
section {
    padding: var(--section-padding) var(--container-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    margin: 40px var(--container-padding);
}

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

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 8px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 167, 152, 0.05), rgba(255, 255, 255, 0));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* Team Section */
.team {
    background: var(--bg-primary);
    position: relative;
}

.team-container {
    margin-top: 60px;
}

.team-group {
    margin-bottom: 80px;
}

.team-group h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
    font-weight: 700;
    transition: var(--transition);
}

.team-member:hover .member-avatar {
    box-shadow: 0 10px 30px var(--shadow);
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.member-role {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    margin: 40px var(--container-padding);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 8px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
    z-index: -1;
}

.project-card:hover {
    background: var(--card-hover);
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.project-card:hover::before {
    height: 100%;
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(64, 167, 152, 0.2);
    transition: var(--transition);
}

.project-card:hover .project-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(64, 167, 152, 0.3);
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, rgba(64, 167, 152, 0.08), rgba(255, 255, 255, 0.01));
    padding: 100px 40px;
    margin: 120px 0;
    border-top: 1px solid rgba(64, 167, 152, 0.1);
    border-bottom: 1px solid rgba(64, 167, 152, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    transition: var(--transition);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0;
    transition: var(--transition);
}

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

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

.stat-number {
    font-size: 56px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 80px var(--container-padding) 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--primary-light) 50%, 
        var(--accent) 100%);
    opacity: 0.8;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        gap: 30px;
    }
    
    section {
        padding: 100px 30px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg-scrolled);
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px var(--shadow-light);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        z-index: 1;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 20px;
        padding: 8px 12px;
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .mobile-menu-btn:hover {
        background: var(--card-hover);
        border-color: var(--primary);
    }

    section {
        padding: 80px 20px;
    }
    
    .about,
    .projects {
        margin: 20px;
        border-radius: var(--border-radius);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
        padding-bottom: 15px;
    }
    
    .hero h1::after {
        width: 60px;
        height: 3px;
    }
    
    .hero .tagline {
        font-size: clamp(1.1rem, 3vw, 1.6rem);
    }
    
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .stats {
        padding: 60px 20px;
        margin: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .about-card,
    .project-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --card-bg: rgba(255, 255, 255, 0.1);
        --card-border: rgba(255, 255, 255, 0.2);
    }
}

/* Animation Classes */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Subtle hover effect for all interactive elements */
button, 
a, 
.about-card, 
.project-card,
.team-member {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease;
    will-change: transform, box-shadow;
}

.animate-fadeInUp[data-animate-delay="0.1"] {
    transition-delay: 0.1s;
}

.animate-fadeInUp[data-animate-delay="0.2"] {
    transition-delay: 0.2s;
}

.animate-fadeInUp[data-animate-delay="0.3"] {
    transition-delay: 0.3s;
}

.animate-fadeInUp[data-animate-delay="0.4"] {
    transition-delay: 0.4s;
}

.animate-fadeInUp[data-animate-delay="0.5"] {
    transition-delay: 0.5s;
}

/* Glassmorphism effect for cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Professional Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 15px rgba(64, 167, 152, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(64, 167, 152, 0.4);
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(64, 167, 152, 0.3);
}

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

.btn-outline:hover {
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Gradient borders */
.gradient-border {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

/* Enhanced animations for the new design */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(45, 90, 84, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(45, 90, 84, 0.4), 0 0 35px rgba(45, 90, 84, 0.2);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 90, 84, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(45, 90, 84, 0);
    }
}

/* Floating animation for hero elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating:nth-child(2) {
    animation-delay: -2s;
}

.floating:nth-child(3) {
    animation-delay: -4s;
}

/* Glowing effect for important elements */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Rotating elements */
.rotate-slow {
    animation: rotate 20s linear infinite;
}

/* Pulse glow for interactive elements */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Enhanced card hover effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(50px);
}

/* Parallax scrolling effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Advanced background patterns */
.bg-pattern-1 {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(64, 167, 152, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.bg-pattern-2 {
    background-image:
        linear-gradient(45deg, rgba(64, 167, 152, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 215, 0, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(64, 167, 152, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 215, 0, 0.05) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Morphing shapes */
.morphing {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        border-radius: 60% 40% 60% 30% / 60% 30% 60% 70%;
    }
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.animate span {
    transform: translateY(0);
}

/* Stagger animation for lists */
.stagger-animate > * {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Interactive hover states */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Magnetic hover effect */
.magnetic {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic:hover {
    transform: scale(1.05);
}

/* Breathing effect */
.breathing {
    animation: breathe 4s ease-in-out infinite;
}

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

/* Liquid button effect */
.liquid-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
}

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

.liquid-button:hover::before {
    left: 100%;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    transition: width 0.1s ease;
}
