/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-light: #111111;
    --gray-dark: #1a1a1a;
    --gray: #333333;
    --gray-light: #888888;
    --white: #ffffff;
    --white-muted: #cccccc;
    --accent: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--black);
    color: var(--white-muted);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--white);
    font-weight: 600;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-dark);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--dark) 100%);
    opacity: 0.5;
}

.hero .container {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 20px;
    margin-top: 70px;
}

.hero-title {
    font-size: clamp(48px, 7vw, 80px);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.title-line {
    width: 60px;
    height: 1px;
    background: var(--gray-light);
    margin-bottom: 20px;
}

.hero-role {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--gray-light);
    margin-bottom: 10px;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 1px;
}

.hero-subrole {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 20px;
    font-family: 'Barlow', sans-serif;
    border-left: 2px solid var(--gray);
    padding-left: 14px;
}

.hero-description {
    font-size: 16px;
    color: var(--gray-light);
    max-width: 500px;
    margin-bottom: 18px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Barlow', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-light);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray);
}

.btn-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

/* ===== HERO DECORATION ===== */
.hero-decoration {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-40%);
    width: 440px;
    height: 440px;
    pointer-events: none;
}

.deco-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.deco-ring-1 {
    width: 440px;
    height: 440px;
    border-color: rgba(255, 255, 255, 0.06);
    animation: rotateSlow 30s linear infinite;
}

.deco-ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(255, 255, 255, 0.1);
    animation: rotateSlow 20s linear infinite reverse;
}

.deco-ring-3 {
    width: 200px;
    height: 200px;
    border-color: rgba(255, 255, 255, 0.15);
    animation: rotateSlow 14s linear infinite;
}

@keyframes rotateSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.deco-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--white);
}

.deco-dot-1 {
    width: 8px; height: 8px;
    top: 50%; left: 50%;
    margin-top: -220px; margin-left: -4px;
    animation: orbitDot1 30s linear infinite;
    transform-origin: 4px 220px;
    opacity: 0.7;
}

.deco-dot-2 {
    width: 5px; height: 5px;
    top: 50%; left: 50%;
    margin-top: -160px; margin-left: -2px;
    animation: orbitDot2 20s linear infinite reverse;
    transform-origin: 2px 160px;
    opacity: 0.5;
}

.deco-dot-3 {
    width: 10px; height: 10px;
    top: 50%; left: 50%;
    margin-top: -100px; margin-left: -5px;
    animation: orbitDot3 14s linear infinite;
    transform-origin: 5px 100px;
    opacity: 0.9;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.deco-dot-4 {
    width: 4px; height: 4px;
    top: 50%; left: 50%;
    margin-top: -220px; margin-left: -2px;
    animation: orbitDot4 30s linear infinite reverse;
    transform-origin: 2px 220px;
    opacity: 0.4;
}

@keyframes orbitDot1 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes orbitDot2 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes orbitDot3 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes orbitDot4 {
    from { transform: rotate(45deg); }
    to   { transform: rotate(405deg); }
}

.deco-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform-origin: left center;
}

.deco-line-1 {
    width: 220px;
    animation: rotateLine1 30s linear infinite;
}

.deco-line-2 {
    width: 160px;
    animation: rotateLine2 20s linear infinite reverse;
    opacity: 0.6;
}

@keyframes rotateLine1 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes rotateLine2 {
    from { transform: rotate(90deg); }
    to   { transform: rotate(450deg); }
}

.deco-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.6; }
}

@media (max-width: 1024px) {
    .hero-decoration { display: none; }
}

/* ===== SCROLL INDICATOR ===== */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-light);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ===== SECTIONS COMMON ===== */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

.section-title span {
    color: var(--gray-light);
}

/* ===== ABOUT ===== */
.about {
    padding: 70px 0;
    background: var(--dark);
}

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--gray-light);
}

.about-stats {
    display: flex;
    gap: 60px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-dark);
}

.stat-number {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-light);
}

/* ===== SERVICES ===== */
.services {
    padding: 70px 0;
    background: var(--black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-dark);
}

.service-card {
    background: var(--black);
    padding: 48px 36px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--dark);
}

.service-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 500;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.8;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 70px 0;
    background: var(--dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

a.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item .portfolio-placeholder img,
.portfolio-item .portfolio-image img {
    transition: transform 0.6s ease;
}

a.portfolio-item:hover .portfolio-placeholder img,
a.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    aspect-ratio: 4/3;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--gray);
}

.portfolio-placeholder span {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray);
}

.portfolio-item:hover .portfolio-placeholder {
    background: var(--gray);
    border-color: var(--gray-light);
}

.portfolio-item:hover .portfolio-placeholder span {
    color: var(--white);
}

.portfolio-iframe-wrap {
    border: 1px solid var(--gray);
    overflow: hidden;
    display: block;
    width: 100%;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    padding: 10px 14px;
    width: 100%;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
    font-size: 11px;
    color: var(--gray-light);
    letter-spacing: 1px;
    margin-left: 8px;
    font-family: 'Barlow', sans-serif;
}

.iframe-viewport {
    overflow: hidden;
    width: 100%;
    height: 330px;
    position: relative;
    cursor: pointer;
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.site-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 870px;
    border: none;
    transform: scale(0.38);
    transform-origin: top left;
    pointer-events: none;
}

.portfolio-info {
    padding: 20px 0;
}

.portfolio-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.portfolio-info p {
    font-size: 13px;
    color: var(--gray-light);
    letter-spacing: 1px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 70px 0;
    background: var(--black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-item {
    margin-bottom: 36px;
}

.contact-item h4 {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-light);
}

.contact-item p {
    font-size: 16px;
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray);
    color: var(--white);
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
    font-size: 13px;
    letter-spacing: 1px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0 30px;
    border-top: 1px solid var(--gray-dark);
    background: var(--black);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--white);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 1px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-scroll {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
