:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f0f7;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #381054;
    --accent-hover: #501b7a;
    --accent-text: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(56, 16, 84, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --section-bg-odd: #ffffff;
    --section-bg-even: #f7f5fa;
    --section-bg-alt: #f0ecf5;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px rgba(56, 16, 84, 0.08);
    --footer-bg: #0f172a; /* Dark Blue */
    --footer-text: #f8fafc;
    --hero-bg: linear-gradient(135deg, #f8f6fc 0%, #ebe4f2 100%); /* Little dark bg */
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #050505; /* Dark Black */
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #ffffff;
    --accent-hover: #d4d4d4;
    --accent-text: #381054;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 5, 0.95);
    --section-bg-odd: #050505;
    --section-bg-even: #0a0a0a;
    --section-bg-alt: #111111;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --footer-bg: #000000; /* Black */
    --footer-text: #ffffff;
    --hero-bg: radial-gradient(circle at top right, #1a0a29 0%, #050505 60%); /* Black with subtle purple glow */
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 16, 84, 0.4);
    background: var(--accent-hover);
}

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

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

/* Hero Section */
.hero-section {
    padding: 7rem 5% 3rem;
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    border-radius: 0 0 40px 40px;
    box-shadow: var(--card-shadow);
    width: 100%;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-form-container {
    padding: 2rem;
    max-width: 400px;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-form input, .hero-form select {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.hero-form input:focus, .hero-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.hero-form select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* 3D Orbit Animation for Hero */
.hero-3d-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    z-index: 1;
    min-height: 400px;
}

.orbit-container {
    position: relative;
    width: 440px;
    height: 440px;
    transform-style: preserve-3d;
    transform: rotateX(-15deg);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 440px;
    transform: translate(-50%, -50%) rotateX(90deg);
    border-radius: 50%;
    border: 2px dashed var(--glass-border);
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(15deg);
    width: 140px;
    height: 140px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-text);
    box-shadow: 0 0 50px var(--glass-border);
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    transform-style: preserve-3d;
    animation: orbit 24s infinite linear;
}

.orbit-1 { animation-delay: calc(-24s * 0 / 6); }
.orbit-2 { animation-delay: calc(-24s * 1 / 6); }
.orbit-3 { animation-delay: calc(-24s * 2 / 6); }
.orbit-4 { animation-delay: calc(-24s * 3 / 6); }
.orbit-5 { animation-delay: calc(-24s * 4 / 6); }
.orbit-6 { animation-delay: calc(-24s * 5 / 6); }

.orbit-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50%;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    box-shadow: var(--card-shadow);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    animation: face-forward 24s infinite linear;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.orbit-item:hover .orbit-content {
    border-color: var(--accent-hover);
    box-shadow: 0 0 30px var(--glass-border);
}

.orbit-1 .orbit-content { animation-delay: calc(-24s * 0 / 6); }
.orbit-2 .orbit-content { animation-delay: calc(-24s * 1 / 6); }
.orbit-3 .orbit-content { animation-delay: calc(-24s * 2 / 6); }
.orbit-4 .orbit-content { animation-delay: calc(-24s * 3 / 6); }
.orbit-5 .orbit-content { animation-delay: calc(-24s * 4 / 6); }
.orbit-6 .orbit-content { animation-delay: calc(-24s * 5 / 6); }

@keyframes orbit {
    0% { transform: rotateY(0deg) translateZ(220px); }
    100% { transform: rotateY(360deg) translateZ(220px); }
}

@keyframes face-forward {
    0% { transform: rotateY(0deg) rotateX(15deg); }
    100% { transform: rotateY(-360deg) rotateX(15deg); }
}

/* Ticker Section */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--accent);
    padding: 1rem 0;
    color: var(--accent-text);
    box-shadow: var(--card-shadow);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0 2rem;
    display: inline-block;
}

.ticker-item.separator {
    opacity: 0.5;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Common */
.services-section, .portfolio-section, .testimonials-section, .cta-section {
    padding: 6rem 5%;
    max-width: 100%;
}

.section-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.services-section {
    background: var(--section-bg-odd);
}

.portfolio-section {
    background: var(--section-bg-even);
}

.testimonials-section {
    background: var(--section-bg-odd);
}

.cta-section {
    background: var(--section-bg-alt);
}

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

.section-header h2 {
    font-size: 3rem;
    color: var(--text-primary);
}

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

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

.service-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Portfolio Carousel */
.carousel-container {
    position: relative;
    padding: 0 50px;
}

.carousel-track-container {
    overflow: hidden;
    padding: 1rem 0; /* extra padding for hover scale */
}

.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 calc(100% / 3); /* default 3 items */
    padding: 0 1rem;
}

.portfolio-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: 1px solid var(--glass-border);
    color: var(--accent-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.carousel-btn:hover {
    background: var(--accent);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-height: 700px;
    overflow-y: auto;
    padding: 1rem;
}

/* Custom Scrollbar */
.testimonials-grid::-webkit-scrollbar {
    width: 8px;
}
.testimonials-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.testimonials-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.feedback {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feedback::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -15px;
    opacity: 0.08;
    color: var(--accent);
    font-family: serif;
    z-index: -1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.details h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-content {
    padding: 3rem 2rem;
    text-align: center;
    background: transparent;
    border-color: var(--accent);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-desc {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-col h3 {
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-col a {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-col a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-col p {
    color: var(--footer-text);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--accent-text);
    transform: translateY(-3px);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .carousel-slide {
        flex: 0 0 calc(100% / 2);
    }
    
    .carousel-btn {
        display: none !important;
    }
    
    .carousel-container {
        padding: 0;
    }
    
    .carousel-slide {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-3d-visual {
        transform: scale(0.8);
        min-height: 350px;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.theme-toggle-btn:hover {
    background: var(--glass-bg);
}

[data-theme='dark'] .sun-icon {
    display: none !important;
}

[data-theme='dark'] .moon-icon {
    display: block !important;
}

[data-theme='light'] .sun-icon {
    display: block !important;
}

[data-theme='light'] .moon-icon {
    display: none !important;
}

/* Page Hero Section */
.page-hero-section {
    padding: 10rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    border-radius: 0 0 40px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-hero-inner h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 900;
    color: var(--text-primary);
}

.page-hero-inner .hero-quote {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Feature Circles */
.feature-circle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.feature-circle:hover {
    transform: translateY(-10px) scale(1.05);
}

.feature-circle .circle-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-circle h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

/* Pulse Animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.pulse-1 { animation: pulseGlow 2s infinite; animation-delay: 0s; }
.pulse-2 { animation: pulseGlow 2s infinite; animation-delay: 0.3s; }
.pulse-3 { animation: pulseGlow 2s infinite; animation-delay: 0.6s; }
.pulse-4 { animation: pulseGlow 2s infinite; animation-delay: 0.9s; }
.pulse-5 { animation: pulseGlow 2s infinite; animation-delay: 1.2s; }
.pulse-6 { animation: pulseGlow 2s infinite; animation-delay: 1.5s; }
.pulse-7 { animation: pulseGlow 2s infinite; animation-delay: 1.8s; }
.pulse-8 { animation: pulseGlow 2s infinite; animation-delay: 2.1s; }
.pulse-9 { animation: pulseGlow 2s infinite; animation-delay: 2.4s; }
.pulse-10 { animation: pulseGlow 2s infinite; animation-delay: 2.7s; }

