/* Root Variables - Brand Enclave Theme */
:root {
    /* Brand colors - constant */
    --brand-magenta: #5a0039;
    --brand-deep-magenta: #3d0026;
    --brand-rich-magenta: #7a0049;
    --brand-pastel-orange: #e7cb91;
    --brand-gold: #d4b87f;

    /* Typography */
    --font-display: 'Source Serif Pro', serif;
    --font-body: 'Poppins', sans-serif;
    --font-accent: 'Source Serif Pro', serif;

    /* Spacing & Layout */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (Default) */
:root,
[data-theme="dark"] {
    /* Semantic colors - Dark Theme */
    --bg-primary: #4d4647;
    --bg-secondary: #3a3637;
    --bg-tertiary: #2d2627;
    --bg-elevated: rgba(90, 0, 57, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #b8b0ad;
    --text-tertiary: #8a8280;

    --accent-primary: var(--brand-magenta);
    --accent-secondary: var(--brand-pastel-orange);
    --accent-hover: var(--brand-rich-magenta);

    --border-subtle: rgba(90, 0, 57, 0.1);
    --border-medium: rgba(90, 0, 57, 0.2);
    --border-strong: rgba(90, 0, 57, 0.3);

    --overlay-dark: rgba(90, 0, 57, 0.9);
    --overlay-medium: rgba(90, 0, 57, 0.5);
    --overlay-light: rgba(90, 0, 57, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-rich-magenta) 0%, var(--brand-deep-magenta) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-pastel-orange) 0%, var(--brand-gold) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(90, 0, 57, 0.9) 0%, rgba(61, 0, 38, 0.9) 100%);

    /* Shadows */
    --shadow-subtle: 0 2px 20px rgba(90, 0, 57, 0.1);
    --shadow-medium: 0 8px 40px rgba(90, 0, 57, 0.15);
    --shadow-heavy: 0 20px 60px rgba(90, 0, 57, 0.25);
    --shadow-glow: 0 0 40px rgba(122, 0, 73, 0.3);
}

/* Light Theme */
[data-theme="light"] {
    /* Semantic colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f5f4;
    --bg-tertiary: #efe9e7;
    --bg-elevated: rgba(90, 0, 57, 0.02);

    --text-primary: #2d2627;
    --text-secondary: #4d4647;
    --text-tertiary: #6d6665;

    --accent-primary: var(--brand-magenta);
    --accent-secondary: #c89b3c;
    --accent-hover: var(--brand-deep-magenta);

    --border-subtle: rgba(90, 0, 57, 0.08);
    --border-medium: rgba(90, 0, 57, 0.15);
    --border-strong: rgba(90, 0, 57, 0.25);

    --overlay-dark: rgba(90, 0, 57, 0.85);
    --overlay-medium: rgba(90, 0, 57, 0.4);
    --overlay-light: rgba(90, 0, 57, 0.05);

    /* Gradients - Better contrast for light theme */
    --gradient-primary: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-deep-magenta) 100%);
    --gradient-accent: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(90, 0, 57, 0.85) 0%, rgba(61, 0, 38, 0.85) 100%);

    /* Shadows */
    --shadow-subtle: 0 2px 20px rgba(90, 0, 57, 0.08);
    --shadow-medium: 0 8px 40px rgba(90, 0, 57, 0.12);
    --shadow-heavy: 0 20px 60px rgba(90, 0, 57, 0.18);
    --shadow-glow: 0 0 40px rgba(122, 0, 73, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    transition: background-color var(--transition), color var(--transition);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

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

.loading-line {
    width: 200px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 0 auto;
    transform-origin: left;
    animation: loadingLine 2s ease-in-out infinite;
}

@keyframes loadingLine {
    0%, 100% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: brightness(1.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    opacity: 0.95;
}

.navbar.scrolled {
    opacity: 1;
    box-shadow: var(--shadow-subtle);
    padding: 0.5rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

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

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
}

.nav-link:hover::before {
    transform: translateY(0);
    opacity: 1;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    margin-left: 1rem;
}

/* Light theme - ensure CTA text is white */
[data-theme="light"] .nav-cta {
    color: #ffffff !important;
}

.nav-cta::before {
    display: none;
}

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

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

.btn-secondary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Better contrast for secondary button in light theme */
[data-theme="light"] .btn-secondary {
    background: rgba(90, 0, 57, 0.05);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    font-weight: 600;
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

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

.btn:hover .btn-shine {
    left: 100%;
}

.full-width {
    width: 100%;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

/* Light theme hero background */
[data-theme="light"] .hero-gradient {
    background: linear-gradient(135deg, #faf8f7 0%, #f5f0ee 50%, #fdf9f7 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, var(--overlay-light) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--overlay-light) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--overlay-light) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

/* Light theme hero particles - more subtle */
[data-theme="light"] .hero-particles {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(90, 0, 57, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 203, 145, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(90, 0, 57, 0.02) 0%, transparent 50%);
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    padding-top: 100px;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(90, 0, 57, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

[data-theme="light"] .hero-logo-img {
    filter: drop-shadow(0 4px 20px rgba(90, 0, 57, 0.2));
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.2s both;
}

/* Better contrast for hero badge in light theme */
[data-theme="light"] .hero-badge {
    background: rgba(90, 0, 57, 0.08);
    border: 1px solid rgba(90, 0, 57, 0.2);
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Better contrast for hero subtitle in light theme */
[data-theme="light"] .hero-subtitle {
    color: var(--text-primary);
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    animation: fadeInUp 1s ease 1s both;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-hover), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: fadeInUp 1s ease 1.2s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gradient-primary);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.5); }
}

/* Section Styling */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.about-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.card-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--border-medium);
    line-height: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

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

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

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--overlay-light), transparent);
    transition: left 0.8s ease;
}

.about-card:hover .card-shine {
    left: 100%;
}

/* Services Section */
.services {
    background: var(--bg-primary);
}

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

.service-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--accent-secondary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

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

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
    transition: var(--transition);
}

.service-card:hover .service-features li::before {
    transform: translateX(5px);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover .service-overlay {
    opacity: 0.05;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-strong);
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-content {
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.portfolio-content h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.portfolio-content p {
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-tags {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.portfolio-tags span {
    background: rgba(231, 203, 145, 0.3);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Testimonials */
.testimonials {
    background: var(--bg-primary);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition);
    position: absolute;
    width: 100%;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.quote-icon {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-secondary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.author-info span {
    color: var(--accent-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    margin-top: 0.25rem;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-form-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-medium);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 4px var(--overlay-light);
}

.form-group label {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-secondary);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-secondary);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    margin: 0;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition);
        z-index: 999;
        opacity: 0.98;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--accent-hover), transparent);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

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

    .logo-img {
        height: 35px;
    }

    .loading-logo-img {
        height: 60px;
    }

    .hero-logo-img {
        height: 80px;
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
        text-align: center;
    }

    .testimonial-card {
        padding: 2.5rem 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease both;
}

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

/* Smooth scrolling enhancements */
html {
    scroll-padding-top: 100px;
}

/* Selection styles */
::selection {
    background: var(--accent-hover);
    color: #ffffff;
}

::-moz-selection {
    background: var(--accent-hover);
    color: #ffffff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #ffffff;
}

.theme-toggle:hover {
    transform: translateY(-5px) rotate(180deg);
    box-shadow: var(--shadow-glow);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

/* Mobile adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}