:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-glass: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--secondary);
    mix-blend-mode: screen;
}

::-webkit-scrollbar {
    width: 8px;
}

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

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

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

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--primary);
}

.lang-switch span {
    color: var(--border-glass);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-btn):hover {
    color: var(--secondary);
}

.nav-links a:not(.cta-btn):hover::after {
    width: 100%;
}

.nav-links a.cta-btn {
    color: var(--primary);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    font-weight: 600;
}

.nav-links a.cta-btn:hover {
    color: #ffffff;
}

.cta-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width 0.3s ease;
}

.cta-btn:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.cta-btn:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

header {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

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

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    position: relative;
    display: inline-block;
}

h1 span.glow {
    -webkit-text-stroke: 0;
    color: var(--secondary);
    text-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

section {
    padding: 6rem 5%;
}

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

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
}

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

.service-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-tag {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.stats-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 4rem 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stat-item h2 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--secondary);
    width: 40px;
    height: 40px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

.contact-item a:hover {
    color: var(--secondary);
}

.contact-item a:hover::after {
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    margin-bottom: 1.5rem;
}

.socials a {
    color: var(--text-main);
    font-size: 1.2rem;
    margin: 0 0.8rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--secondary);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface-color);
    border-left: 4px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(200%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    color: #10b981;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: var(--text-main);
        cursor: pointer;
        z-index: 2000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: auto;
        min-height: auto;
        background: rgba(5, 5, 5, 0.98);
        border-bottom-left-radius: 20px;
        box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--border-glass);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
        padding: 5rem 0 2rem 0;
        transition: right 0.3s ease;
        z-index: 1500;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.8rem 0;
        width: 100%;
        text-align: center;
       justify-content: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .stats-section {
        flex-direction: column;
        gap: 3rem;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto;
    }
}

@media (max-width: 400px) {
    .nav-left {
        gap: 35px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

.service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.service-card p:last-of-type {
    margin-bottom: 4rem !important;
}

.service-card .cta-btn {
    margin-top: auto !important;
    width: 100%;
    display: block;
    text-align: center;
}

.service-card h3 span {
    color: var(--primary);
}

.service-card .cta-btn {
    font-size: 0.8rem;
    width: 100%;
    display: block;
    text-align: center;
    margin-top: auto !important;
}
