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

/* Light Mode Theme */
:root {
    --primary-color: #19defc;
    --secondary-color: #29d4b3;
    --accent-color: #1fb79a;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-light: #f8f9fa;
    --background-main: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px 0 rgba(25, 222, 252, 0.37);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-overlay: rgba(25, 222, 252, 0.7);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --primary-color: #19defc;
    --secondary-color: #1fb79a;
    --accent-color: #15a087;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --background-light: #1a1a1a;
    --background-main: #2d2d2d;
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(25, 222, 252, 0.3);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --hero-overlay: rgba(25, 222, 252, 0.8);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--glass-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

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

/* Glassmorphism Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}

/* Glasses Lens Style - Oval/Elliptical */
.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 
        0 8px 32px 0 rgba(25, 222, 252, 0.37),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    max-width: 550px;
    max-height: 370px;
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 50% / 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Ensure both lenses are same size */
.hero-lens-left .hero-card,
.hero-lens-right .hero-card {
    max-width: 550px;
    max-height: 370px;
    width: 100%;
    height: 370px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-lens-left h1,
.hero-lens-right h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-align: center;
    padding: 0 1rem;
}

.hero-tagline {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 1rem;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Default gap for larger screens */
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 500;
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    white-space: nowrap;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 25%;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: rotate(-45deg) scale(1.2, 0.8);
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 25%;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: rotate(45deg) scale(1.2, 0.8);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    transform: rotate(20deg);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero.png') center/cover;
    filter: brightness(0.8);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hero-overlay) 0%, rgba(41, 212, 179, 0.8) 100%);
    z-index: 2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-glasses {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}

.hero-lens-left,
.hero-lens-right {
    position: relative;
}

.hero-lens-left h1,
.hero-lens-right h1 {
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-align: center;
    padding: 0 1rem;
}

.hero-lens-left h1 {
    text-align: center;
}

.hero-lens-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tagline {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 0.8rem;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 4;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 80px 20px;
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature i {
    color: var(--accent-color);
}

.about-image {
    display: flex;
    justify-content: center;
}

.caroline-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 300px;
    margin: 0 auto;
}

.caroline-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.image-caption {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.image-caption h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.image-caption p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Services Section */
.services {
    padding: 80px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

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

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

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

/* Google Map Section */
.map-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.map-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.map-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 
        0 8px 32px 0 rgba(25, 222, 252, 0.37),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.map-btn, .street-view-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(25, 222, 252, 0.3);
    font-size: 0.9rem;
}

.street-view-btn {
    background: var(--secondary-color);
}

.map-btn:hover, .street-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 222, 252, 0.4);
}

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

.street-view-btn:hover {
    background: var(--accent-color);
}

.info-card h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.form-card h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.4);
}

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

/* Team Section */
.team {
    padding: 80px 20px;
    background: var(--background-light);
}

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

/* Center Caroline Berry in first row */
.centered-member {
    grid-column: 1 / -1; /* Spans all columns in first row */
    text-align: center;
    justify-self: center;
}

/* Responsive team layout */
@media (min-width: 768px) {
    .team-grid {
        grid-template-areas: 
            "caroline caroline caroline"
            "colleen lana elrie";
    }
    
    .centered-member {
        grid-area: caroline;
    }
}

.team-member {
    text-align: center;
    padding: 2rem;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Add transition for smooth effect */
}

.member-image:hover .member-photo {
    transform: scale(1.1); /* Grow effect on hover */
}

.team-member h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.member-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-credit a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 767px) {
    /* General section padding */
    section {
        padding: 60px 15px; /* Reduced padding for sections on mobile */
    }

    .hero-glasses {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Ensure both lenses are same size on mobile */
    .hero-lens-left .hero-card,
    .hero-lens-right .hero-card {
        max-width: 320px; /* Reduced max-width for smaller screens */
        max-height: 250px; /* Reduced max-height for smaller screens */
        padding: 2rem 1.5rem; /* Adjusted padding */
        aspect-ratio: 4/3; /* Adjusted aspect ratio */
        border-radius: 50% / 40%; /* Adjusted border-radius */
    }
    
    .hero-card::before,
    .hero-card::after {
        top: 10%; /* Adjusted position */
        transform: rotate(-45deg) scale(1, 0.7); /* Adjusted scale */
    }
    
    .hero-card::after {
        transform: rotate(45deg) scale(1, 0.7); /* Adjusted scale */
    }

    .hero-lens-left h1 {
        font-size: clamp(1.5rem, 4vw, 2rem); /* Adjusted font size */
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: clamp(1rem, 2vw, 1.2rem); /* Adjusted font size */
        margin-bottom: 1rem;
    }
    
    .hero-info {
        flex-direction: column; /* Stack items vertically */
        gap: 0.3rem; /* Smaller gap */
        margin-bottom: 1rem; /* Reduced margin */
    }

    .info-item {
        font-size: clamp(1rem, 1.8vw, 1.2rem); /* Adjusted font size */
        margin-bottom: 0.3rem; /* Reduced margin */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem; /* Adjusted margin */
    }
    
    /* Team section responsive */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .map-container {
        padding: 1.5rem;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .map-overlay {
        bottom: 15px;
        right: 15px;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .map-btn, .street-view-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: 0.3s;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

    .about-features {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .about-card {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .map-container {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scroll-Triggered Animations - Both Directions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in.visible-exit {
    opacity: 0;
    transform: translateY(-30px);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-left.visible-exit {
    opacity: 0;
    transform: translateX(-80px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-right.visible-exit {
    opacity: 0;
    transform: translateX(80px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scale-in.visible-exit {
    opacity: 0;
    transform: scale(0.7);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-5deg) scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.rotate-in.visible-exit {
    opacity: 0;
    transform: rotate(5deg) scale(0.85);
}

.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animation.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-animation.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-animation.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-animation.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-animation.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-animation.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-animation.visible-exit > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-animation.visible-exit > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-animation.visible-exit > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-animation.visible-exit > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-animation.visible-exit > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-animation.visible-exit > *:nth-child(6) { transition-delay: 0.3s; }

@keyframes float-in {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.float-in {
    animation: float-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slide-up 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(25, 222, 252, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(25, 222, 252, 0.8), 0 0 30px rgba(25, 222, 252, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(25, 222, 252, 0.5);
    }
}

.glow-on-scroll.visible {
    animation: glow 2s ease-in-out infinite;
}

.glow-on-scroll.visible-exit {
    animation: none;
    box-shadow: var(--shadow);
}

/* Form Validation */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: var(--accent-color);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #27ae60;
}

/* Success Message */
.success-message {
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--accent-color);
}

/* Error Message */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e74c3c;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}