:root {
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #18181b;
    --radius: 0.5rem;
    --font-sans: 'Inter', sans-serif;
    --dot-color: #ef0b48;
}

.dark-theme {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #18181b;
    --card-foreground: #fafafa;
    --popover: #09090b;
    --popover-foreground: #fafafa;
    --primary: #fafafa;
    --primary-foreground: #18181b;
    --secondary: #27272a;
    --secondary-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --accent: #27272a;
    --accent-foreground: #fafafa;
    --destructive: #7f1d1d;
    --destructive-foreground: #fafafa;
    --border: #27272a;
    --input: #27272a;
    --ring: #d4d4d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}


/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 100;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: background 0.3s, border-color 0.3s;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-header.scrolled {
    background: #ffffff;
    border-bottom-color: var(--border);
}

.dark-theme .glass-header {
    background: rgba(9, 9, 11, 0.8);
    border-bottom-color: transparent;
}

.dark-theme .glass-header.scrolled {
    background: #09090b;
    border-bottom-color: var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.dot {
    color: var(--dot-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    body.menu-open .menu-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    nav {
        padding: 1rem;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--card);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 99;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        margin-left: 0;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.nav-active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.nav-active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.nav-active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.nav-active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.nav-active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.nav-active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.nav-active li:nth-child(6) { transition-delay: 0.3s; }

    .nav-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1rem;
        width: 100%;
        display: block;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .nav-links a.active {
        text-align: center;
    }

    .nav-links .cta-btn {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .nav-links .cta-btn.active {
        text-align: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--foreground);
    background: var(--accent);
}

.nav-links a.active {
    background: var(--primary);
    color: var(--primary-foreground) !important;
    font-weight: 600;
}

.nav-links a.active:hover {
    opacity: 0.9;
    background: var(--primary);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--foreground);
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: var(--accent);
    opacity: 0.8;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.cta-btn {
    background: transparent;
    color: var(--muted-foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    color: var(--foreground);
    background: var(--accent);
}

.cta-btn.active {
    background: var(--primary);
    color: var(--primary-foreground) !important;
    font-weight: 600;
}

.cta-btn.active:hover {
    opacity: 0.9;
    background: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, var(--foreground), var(--muted-foreground));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-content h1 {
        min-height: 2.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        min-height: 2.2rem;
    }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-block;
    text-align: center;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.primary-btn {
    background: var(--primary);
    color: var(--primary-foreground);
}

.primary-btn:hover {
    opacity: 0.9;
}

.secondary-btn {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.secondary-btn:hover {
    background: var(--accent);
}

/* Sections */
section {
    padding: 6rem 2rem;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
    text-align: center;
    color: var(--foreground);
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--muted-foreground);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:focus-within {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--accent);
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.card-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.1);
}

.card:hover .card-icon svg {
    transform: rotate(5deg);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-size: 1.25rem;
}

.card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* About */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--foreground);
    font-weight: 700;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius);
    color: var(--foreground);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.info-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--foreground);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.info-value strong {
    color: var(--foreground);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.info-value a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: var(--muted-foreground);
}

.company-details {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.detail-item:hover {
    color: var(--foreground);
}

.detail-label {
    font-weight: 600;
    color: var(--muted-foreground);
    min-width: 60px;
}

.detail-value {
    color: var(--foreground);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--input);
    border: 1px solid var(--border);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--ring);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--foreground);
}

.hamburger:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

.hamburger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle .line2 {
    opacity: 0;
}

.hamburger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Active Link State */

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 6rem;
        min-height: 90vh;
        padding-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Sections */
    section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Services */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    /* About */
    .about p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .info-item {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .info-icon svg {
        width: 20px;
        height: 20px;
    }

    .info-content {
        flex: 1;
    }

    .info-label {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
    }

    .info-value {
        font-size: 0.875rem;
    }

    .company-details {
        margin-top: 2rem;
        padding-top: 1.5rem;
        gap: 0.625rem;
    }

    .detail-item {
        font-size: 0.8125rem;
        flex-wrap: wrap;
    }

    .detail-label {
        min-width: 50px;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 0.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .container {
        padding: 0 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    color: var(--card-foreground);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 420px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.toast-icon {
    flex-shrink: 0;
    color: #22c55e;
    margin-top: 2px;
}

.toast-icon i {
    width: 24px;
    height: 24px;
}

.toast-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--card-foreground);
    line-height: 1.4;
}

.toast-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-foreground);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Print styles */
@media print {
    .glass-header,
    .hamburger,
    .nav-links {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}