/* 
 * Premium Dark Mode Theme
 * Author: Antigravity
 */

:root {
    /* Colors */
    --bg-dark: #111827;
    --bg-alt: #1f2937;
    /* New alternate background color */
    --bg-card: #262f3b;
    --bg-card-hover: #374151;

    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --text-accent: #60a5fa;
    /* Blue-400 */

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #374151;
    --secondary-hover: #4b5563;

    --glass-bg: rgba(17, 24, 39, 0.8);
    --glass-border: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 0;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Focus styles for keyboard users */
.btn:focus-visible,
.nav-link:focus-visible,
.mobile-toggle:focus-visible,
.read-more-btn:focus-visible,
.icon-btn:focus-visible,
.logo:focus-visible,
.skip-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    color: var(--text-accent);
    font-weight: 600;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-text {
    background: none;
    color: var(--text-accent);
    padding: 0;
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.read-more-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.read-more-btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform var(--transition-fast);
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

.icon-btn {
    gap: 0.75rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo .dot {
    color: var(--primary);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: var(--primary);
    position: relative;
}

.nav-desktop .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.bar {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition-fast);
}

.mobile-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 90;
}

.mobile-menu.active {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
}

.nav-mobile .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.nav-mobile .btn {
    margin-top: 1.5rem;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 1rem 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Background image with overlay */
    background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 100%), url('../assets/images/hero/Hero-background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 600px;
    /* Limit width on mobile/tablet */
    margin-left: auto;
    margin-right: auto;
}

.kpi-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 200px;
}

.hero-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* Sections General */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* About Section */
.section-about {
    background-color: var(--bg-alt);
}

/* Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
    transform: none;
}

/* Expertise */
.expertise-card .card-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}


/* Testimonials */
.section-testimonials {
    position: relative;
    background-color: var(--bg-alt);
}


.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-brief {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.testimonial-full {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary);
    background: rgba(37, 99, 235, 0.02);
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-full p {
    margin-bottom: 0.75rem;
}


.read-more-btn {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.testimonial-author {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    margin-top: auto;
}

.author-info strong {
    display: block;
    color: white;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Experience (Timeline) */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    border-radius: 2px;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    display: block;
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.timeline-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* DBA Section */
.section-dba {
    background-color: var(--bg-alt);
}

.dba-features {
    margin-top: 3rem;
}

.dba-feature {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dba-feature .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.dba-feature:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.dba-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.dba-feature p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact */
.section-contact {
    position: relative;
    /* Background removed to alternate with DBA section */
}

.contact-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.contact-actions .btn {
    width: 100%;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Media Queries */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-inner {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-subtitle {
        margin-left: 0;
    }

    .hero-kpis {
        justify-content: flex-start;
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 Grid on Desktop */
        max-width: 380px;
        /* Limit width to keep blocks compact */
        margin-left: 0;
        margin-right: auto;
        gap: 0.75rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image-wrapper {
        max-width: 400px;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-actions .btn {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Reduce Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }
}