:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent-blue: #2979ff;
    --font-main: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Canvas Background */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 60px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 30px;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.menu a:hover { color: var(--text-primary); }

.menu .btn-contact {
    padding: 10px 24px;
    background: #111;
    color: #fff;
    border-radius: 50px;
    transition: transform 0.2s;
}
.menu .btn-contact:hover {
    transform: scale(1.05);
    background: #333;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation when Active */
.hamburger.active .line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.badge-hero {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #000 20%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .dot { color: var(--accent-blue); -webkit-text-fill-color: var(--accent-blue); }

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #aaa;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: #aaa;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Sections */
.content-section, .portfolio-section {
    padding: 160px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.text-block h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.text-block p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pulse Animation Block */
.visual-block {
    flex: 1;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pulse-circle {
    position: relative;
    width: 300px;
    height: 300px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(41, 121, 255, 0.3);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.c1 { width: 100px; height: 100px; animation: pulse 3s infinite; }
.c2 { width: 200px; height: 200px; animation: pulse 3s infinite 0.5s; border-color: rgba(41, 121, 255, 0.2); }
.c3 { width: 300px; height: 300px; animation: pulse 3s infinite 1s; border-color: rgba(41, 121, 255, 0.1); }

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; border-color: rgba(41,121,255,0.6); }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
}

/* Portfolio Grid */
.header-container { text-align: center; margin-bottom: 80px; }
.header-container h2 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0; }
.section-desc { font-size: 1.4rem; color: var(--text-secondary); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 40px;
}

.portfolio-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--accent-blue);
}

.card-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: #f5f5f7;
    display: flex; align-items: center; justify-content: center;
    color: #111;
    margin-bottom: 30px;
    transition: background 0.3s, color 0.3s;
}

.portfolio-card:hover .card-icon { background: var(--accent-blue); color: #fff; }

.category { font-size: 0.8rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 10px; }
.card-content h3 { font-size: 2rem; font-weight: 800; color: #111; margin-bottom: 12px; }
.card-content p { font-size: 1.1rem; color: #666; line-height: 1.5; margin-bottom: 30px; }

.link-btn { font-weight: 700; color: #111; display: inline-flex; align-items: center; gap: 5px; }
.portfolio-card:hover .link-btn .arr { transform: translateX(5px); transition: transform 0.2s; }

/* CTA */
.cta-section {
    position: relative;
    padding: 150px 0;
    text-align: center;
    background: #000;
    color: #fff;
    overflow: hidden;
}
.cta-section h2 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; }
.cta-section p { font-size: 1.5rem; color: #888; margin-bottom: 50px; }
.cta-button {
    padding: 20px 50px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
}

/* Footer */
footer {
    background: #111;
    border-top: 1px solid #222;
    padding: 80px 0;
    color: #fff;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-brand { margin-bottom: 40px; }
.footer-logo-text { font-size: 1.5rem; font-weight: 800; }
.info-row {
    display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; color: #888;
}
.info-row strong { color: #ccc; margin-right: 4px; }

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Hide menu by default on mobile */
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Show menu when active */
    .menu.active {
        right: 0;
    }
    
    /* Menu links styling for mobile */
    .menu a {
        font-size: 1.8rem;
        font-weight: 700;
        margin: 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    /* Animate menu items when menu is active */
    .menu.active a {
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu.active a:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .menu.active a:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .menu.active a:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    /* Contact button on mobile */
    .menu .btn-contact {
        padding: 16px 40px;
        font-size: 1.5rem;
        margin-top: 20px;
    }
    
    /* Adjust navbar padding */
    .navbar {
        padding: 0 20px;
    }
    
    /* Other responsive adjustments */
    .container { 
        flex-direction: column; 
        text-align: center;
        padding: 0 20px;
    }
    
    .portfolio-grid { 
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .hero-title { 
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .text-block h2 { 
        font-size: 2.2rem;
    }
    
    .text-block p {
        font-size: 1.1rem;
    }
    
    .header-container h2 {
        font-size: 2.5rem;
    }
    
    .section-desc {
        font-size: 1.1rem;
    }
    
    .portfolio-card {
        padding: 30px;
        min-height: 300px;
    }
    
    .card-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
    
    .cta-section p {
        font-size: 1.2rem;
    }
    
    .footer-container {
        padding: 0 20px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .container { flex-direction: column; text-align: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
    .text-block h2 { font-size: 2.5rem; }
}

/* Scroll Animations CSS */
.fade-in-up, .fade-up { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: all 1s ease; }
.slide-in-right { opacity: 0; transform: translateX(50px); transition: all 1s ease; }
.scale-in { opacity: 0; transform: scale(0.9); transition: all 1s ease; }

.visible { opacity: 1; transform: translate(0) scale(1); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
