:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(24, 27, 33, 0.6);
    --bg-glass: rgba(15, 17, 21, 0.7);
    --text-main: #ffffff;
    --text-muted: #9ba1a6;
    --accent-emerald: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.35);
    --border-color: rgba(255, 255, 255, 0.08);
    --btn-text: #000000;
    --marquee-text: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent-emerald: #059669;
    --accent-glow: rgba(5, 150, 105, 0.2);
    --border-color: rgba(0, 0, 0, 0.1);
    --btn-text: #ffffff;
    --marquee-text: rgba(0, 0, 0, 0.15);
    --input-bg: #f1f5f9;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Global Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.03), transparent 40%);
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.animated-bg::before, .animated-bg::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrbs 25s infinite alternate ease-in-out;
}

.animated-bg::before {
    background: var(--accent-emerald);
    top: -10%;
    left: -10%;
}

.animated-bg::after {
    background: #0ea5e9;
    bottom: -20%;
    right: -10%;
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

@keyframes floatOrbs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10vw, 15vh) scale(1.2); }
    100% { transform: translate(-10vw, 30vh) scale(0.9); }
}

[data-theme="light"] .animated-bg::before,
[data-theme="light"] .animated-bg::after {
    display: none;
}

.mesh-bg-1 { background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1), transparent 50%); }
.mesh-bg-2 { background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1), transparent 50%); }
.mesh-bg-3 { background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1), transparent 50%); }

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

.highlight {
    color: var(--accent-emerald);
    text-shadow: 0 0 25px var(--accent-glow);
}

a {
    text-decoration: none;
    color: inherit;
}

.block-link {
    display: block;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 0;
}

nav.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-img-dark, .logo-img-light {
    max-height: 140px;
    display: none;
}

.logo-img-dark {
    display: block;
}

[data-theme="light"] .logo-img-dark {
    display: none;
}

[data-theme="light"] .logo-img-light {
    display: block;
}

.dot {
    color: var(--accent-emerald);
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    color: var(--text-muted);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-emerald);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-emerald);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.2);
}

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

.bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-small {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.primary-btn {
    background: var(--accent-emerald);
    color: var(--btn-text);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    background: #34d399;
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-3px);
}

/* Layout Utilities */
.section-padding {
    padding: 120px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.col-span-2 {
    grid-column: span 2;
}

/* Immersive Subpage Hero */
.immersive-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 5% 50px 5%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-emerald);
    top: -20%;
    left: -10%;
    animation: drift 15s infinite alternate ease-in-out;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #0ea5e9;
    bottom: -10%;
    right: -10%;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.immersive-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.immersive-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.hero-overlap-card {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
    font-size: 1.2rem;
    line-height: 1.8;
    transform: translateY(50px);
}

/* Home Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 5% 50px 5%;
    overflow: hidden;
}

.hero-content {
    max-width: 750px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

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

.hero-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    top: 10%;
    right: -15%;
    filter: blur(80px);
    z-index: 1;
    animation: float 12s infinite ease-in-out alternate;
}

.hero-shape.shape-2 {
    width: 400px;
    height: 400px;
    top: 60%;
    left: -10%;
    animation-delay: -6s;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-40px, 40px) rotate(10deg); }
}

/* Shared Section Title */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.impact-item {
    padding: 2rem;
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.impact-number .accent {
    color: var(--accent-emerald);
}

.impact-item p {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.bento-card {
    padding: 2.5rem;
    border-radius: 20px;
}
.card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-emerald);
    margin-bottom: 1.5rem;
}
.check-list {
    list-style: none;
    margin-top: 1rem;
}
.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
}

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

.service-card {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(16, 185, 129, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.1);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.card-arrow {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-emerald);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Why Choose Us & Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.check-icon {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.feature-item h4 {
    font-size: 1.1rem;
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}
.step-num {
    position: absolute;
    left: 16px;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent-emerald);
    z-index: 2;
}
.timeline-item h4 {
    font-size: 1.3rem;
    padding-top: 12px;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}
.tags-container.center {
    justify-content: center;
}
.tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Interactive Tabs */
.tabs-container {
    padding: 2rem;
    border-radius: 20px;
}
.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.tab-btn:hover {
    color: var(--text-main);
}
.tab-btn.active {
    color: var(--accent-emerald);
    border-bottom: 2px solid var(--accent-emerald);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Process Accordion & Horizontal Timeline */
.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 3rem;
    margin-top: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
}

.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.ht-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 120px;
    font-weight: 600;
    font-size: 0.95rem;
}

.ht-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--accent-emerald);
    color: var(--accent-emerald);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.accordion-item {
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.accordion-item h4 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
}
.accordion-item h4::after {
    content: '+';
    color: var(--accent-emerald);
}
.accordion-item.active h4::after {
    content: '−';
}
.accordion-item ul {
    max-height: 0;
    overflow: hidden;
    list-style: inside;
    color: var(--text-muted);
    margin-top: 0;
    transition: all 0.4s ease;
}
.accordion-item.active ul {
    max-height: 200px;
    margin-top: 1rem;
}

/* Benefits Card */
.benefits-card {
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 4px solid var(--accent-emerald);
}
.benefits-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.benefits-list {
    list-style: none;
}
.benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.benefits-list .icon {
    color: var(--accent-emerald);
    font-weight: 800;
}

/* Tech Stack Marquee */
.tech-stack {
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    gap: 3rem;
    padding: 2rem 0;
}

.marquee span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--marquee-text);
    transition: color 0.3s ease;
}

.marquee span:not(.dot):hover {
    color: var(--accent-emerald);
    text-shadow: 0 0 20px var(--accent-glow);
}

.marquee .dot {
    color: var(--accent-emerald);
    opacity: 0.5;
}

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

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

.portfolio-card {
    border-radius: 24px;
    overflow: hidden;
    group: hover;
}

.portfolio-img {
    height: 300px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.portfolio-img.img-1 { background: linear-gradient(135deg, #10b981 0%, #064e3b 100%); }
.portfolio-img.img-2 { background: linear-gradient(135deg, #0ea5e9 0%, #0c4a6e 100%); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.category {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 5rem;
    color: var(--accent-emerald);
    line-height: 1;
    opacity: 0.2;
    position: absolute;
    top: 2rem;
    left: 4rem;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

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

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
}

.client-details {
    text-align: left;
}

.client-details strong {
    display: block;
    font-size: 1.1rem;
}

.client-details span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Us */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.about-features li svg {
    width: 24px;
    height: 24px;
    color: var(--accent-emerald);
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-sphere {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tech-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-emerald);
    border-bottom: 2px solid var(--accent-emerald);
    box-shadow: 0 0 20px var(--accent-glow) inset, 0 0 20px var(--accent-glow);
}

.ring-1 {
    animation: spin-3d-1 8s linear infinite;
}

.ring-2 {
    animation: spin-3d-2 12s linear infinite;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: #0ea5e9;
    border-left: 2px solid #0ea5e9;
    border-right: 2px solid #0ea5e9;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3) inset, 0 0 20px rgba(14, 165, 233, 0.3);
}

.ring-3 {
    animation: spin-3d-3 15s linear infinite;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-top: 2px dashed var(--accent-emerald);
    border-bottom: 2px dashed var(--accent-emerald);
    opacity: 0.5;
}

.core-glow {
    position: absolute;
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 60px 30px var(--accent-glow);
    animation: pulse-core 2s ease-in-out infinite alternate;
}

@keyframes spin-3d-1 {
    0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}
@keyframes spin-3d-2 {
    0% { transform: rotateX(0deg) rotateY(60deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(60deg) rotateZ(360deg); }
}
@keyframes spin-3d-3 {
    0% { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); }
    100% { transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg); }
}
@keyframes pulse-core {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.glass-float {
    position: absolute;
    bottom: 10%;
    right: -10%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 800;
    font-size: 1.2rem;
    animation: float 6s infinite ease-in-out alternate;
}



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

.team-card {
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 2rem;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #2a2d35; /* placeholder */
    margin-bottom: 1.5rem;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.team-info span {
    color: var(--accent-emerald);
    font-weight: 600;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-toggle::before, .faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--accent-emerald);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq-toggle::before {
    width: 16px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 16px;
}

.faq-item.active .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-top: 1rem;
}

/* Global CTA */
.global-cta {
    text-align: center;
}
.cta-card {
    padding: 4rem;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    border-color: rgba(16, 185, 129, 0.3);
}
.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}


/* Contact */
.contact-wrapper {
    border-radius: 30px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 3rem;
}

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

.info-item svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.info-item strong {
    color: var(--text-main);
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

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

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

input, textarea {
    width: 100%;
    padding: 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-emerald);
    background: var(--bg-card);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Fix browser autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.submit-btn {
    width: 100%;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 5%;
    text-align: center;
    background: #000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: inline-block;
}

.footer-logo-img {
    max-height: 90px;
    display: none;
}

[data-theme="light"] .footer-logo .logo-img-light {
    display: block;
}

[data-theme="light"] .footer-logo .logo-img-dark {
    display: none;
}

[data-theme="dark"] .footer-logo .logo-img-dark,
:not([data-theme="light"]) .footer-logo .logo-img-dark {
    display: block;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Why Card & Check List */
.why-card {
    padding: 3rem;
    border-radius: 24px;
}
.why-card h3 {
    margin-bottom: 2rem;
    font-size: 1.6rem;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}
.check-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: 800;
}

/* Responsive */
@media (max-width: 900px) {
    .about, .contact-wrapper, .form-row, .split-layout {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .contact-wrapper {
        padding: 2.5rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .cta-btns {
        flex-direction: column;
    }
    .timeline::before {
        left: 20px;
    }
    .step-num {
        left: -5px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .timeline-item {
        padding-left: 60px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 5%;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .testimonial-slider, .cta-card {
        padding: 2rem;
    }
    .quote-icon {
        left: 1rem;
    }
}
