/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #0a0c10;
    --bg-card: #12161d;
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.15);
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1100px;
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 100px 0; }

/* ==========================================================================
   2. NAVIGATION & BUTTONS
   ========================================================================== */
nav { height: var(--nav-height); display: flex; align-items: center; position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); }
nav.scrolled { background: rgba(10, 12, 16, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); height: 70px; }
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; color: var(--white); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:hover { color: var(--primary); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary); }

.btn { display: inline-flex; align-items: center; padding: 12px 28px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary); color: var(--bg-dark); border: 2px solid var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-large { font-size: 1.2rem; padding: 18px 40px; }
.full-width { width: 100%; justify-content: center; }

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
#hero { height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 50%, #1a2230 0%, #0a0c10 70%); }
.hero-bg-anim { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.4; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; color: var(--white); }
.badge { background: var(--primary-glow); color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; border: 1px solid var(--primary); animation: float 3s ease-in-out infinite; margin-bottom: 1.5rem; display: inline-block; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   4. CARDS & SERVICES
   ========================================================================== */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; color: var(--white); }
.grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.problem-card, .service-card { background: var(--bg-card); padding: 2.5rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
.problem-card:hover, .service-card:hover { border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-5px); }
.icon-accent { color: var(--primary); font-size: 2rem; margin-bottom: 1.5rem; display: block; }

/* Advanced Tech Badges */
.advanced-services-container { margin-top: 5rem; text-align: center; }
.divider-wrapper { margin-bottom: 2rem; position: relative; }
.divider-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-dim); background: var(--bg-dark); padding: 0 15px; position: relative; z-index: 2; }
.subtle-divider { border: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); position: absolute; top: 50%; width: 100%; z-index: 1; }
.advanced-badge-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; }
.advanced-tag { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(0, 210, 255, 0.2); color: var(--text-main); padding: 10px 22px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.advanced-tag:hover { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

/* ==========================================================================
   5. WORK / CASE STUDIES
   ========================================================================== */
.project-card { display: flex; background: var(--bg-card); border-radius: 16px; overflow: hidden; margin-bottom: 3rem; border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); align-items: stretch; }
.project-card:hover { border-color: var(--primary); box-shadow: 0 0 30px rgba(0, 210, 255, 0.1); transform: translateY(-5px); }

.project-img { flex: 1; background: #161b22; display: flex; align-items: center; justify-content: center; min-height: 350px; transition: var(--transition); }
.project-img i { transition: transform 0.5s ease; color: var(--primary); opacity: 0.8; }
.project-card:hover .project-img i { transform: scale(1.1) rotate(5deg); }

.project-info { flex: 1.5; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag { background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; color: var(--text-main); }

/* Architecture Logic Flow */
.project-logic { margin: 1.5rem 0; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px; border-left: 2px solid var(--primary); }
.logic-label { font-size: 0.65rem; text-transform: uppercase; color: var(--primary); letter-spacing: 1px; display: block; margin-bottom: 8px; }
.logic-flow { display: flex; gap: 10px; font-size: 0.8rem; align-items: center; flex-wrap: wrap; }

/* Stats & Result Badges */
.project-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.result-badge { background: var(--primary); color: var(--bg-dark); padding: 6px 14px; border-radius: 4px; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.result-badge.outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* ==========================================================================
   6. ABOUT & TIMELINE
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.about-text .lead { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.5rem; font-weight: 600; }
.tech-stack-container { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.tech-badge { background: #1e293b; padding: 6px 15px; border-radius: 4px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.1); }

.profile-frame { position: relative; border: 1px solid var(--primary); padding: 15px; border-radius: 20px; }
.profile-placeholder { background: var(--bg-card); aspect-ratio: 1/1; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); opacity: 0.5; }
.experience-box { background: var(--primary); color: var(--bg-dark); padding: 20px; border-radius: 8px; margin-top: -30px; margin-left: -30px; position: relative; z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* ==========================================================================
   7. FORM, FOOTER, & EXTRA
   ========================================================================== */
form { background: var(--bg-card); padding: 2.5rem; border-radius: 16px; margin-top: 3rem; text-align: left; }
.form-group { margin-bottom: 1.5rem; }
input, textarea { width: 100%; padding: 12px; background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: var(--white); outline: none; }
input:focus, textarea:focus { border-color: var(--primary); }

footer { padding: 50px 0; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.footer-nav { margin: 2rem 0; display: flex; justify-content: center; gap: 2rem; color: var(--text-dim); }

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

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: #fff; border-radius: 50px; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 2000; transition: var(--transition); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); background-color: #128c7e; }
.whatsapp-float .tooltip { position: absolute; right: 75px; background: var(--bg-card); color: var(--white); padding: 8px 15px; border-radius: 8px; font-size: 0.85rem; opacity: 0; visibility: hidden; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.1); }
.whatsapp-float:hover .tooltip { opacity: 1; visibility: visible; }

/* Typewriter Cursor */
.cursor { color: var(--primary); animation: blink 1s infinite; margin-left: 5px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .project-card { flex-direction: column; }
    .project-img { min-height: 250px; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .experience-box { margin: 20px 0 0 0; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-dark); padding: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
    .whatsapp-float .tooltip { display: none; }
}
/* Update Timeline for 4 steps */
.timeline { 
    display: flex; 
    justify-content: space-between; 
    position: relative; 
    margin-top: 4rem; 
    gap: 2rem;
}

.timeline::before { 
    content: ''; 
    position: absolute; 
    top: 40px; 
    left: 5%; 
    right: 5%; 
    height: 2px; 
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.step { 
    flex: 1; 
    text-align: center; 
    position: relative; 
    z-index: 2; 
}

/* Responsive adjustment for vertical timeline on mobile */
@media (max-width: 992px) {
    .timeline { flex-direction: column; align-items: center; }
    .timeline::before { display: none; }
    .step { margin-bottom: 3rem; }
}
/* --- Neumorphic Flow Styling --- */
.neumorphic-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 4rem 2rem;
    padding: 4rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Positioning nodes to match the infographic layout */
.node-audit { grid-column: 2; grid-row: 1; }
.node-design { grid-column: 1; grid-row: 2; }
.node-integrate { grid-column: 2; grid-row: 2; }
.node-optimize { grid-column: 3; grid-row: 2; }

.neu-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

/* The 3D Orb Effect */
.neu-orb {
    width: 100px;
    height: 100px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    
    /* Neumorphic Shadows: Light top-left, Dark bottom-right */
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.5), 
        -10px -10px 20px rgba(255, 255, 255, 0.05),
        inset 5px 5px 10px rgba(0, 0, 0, 0.3);
    
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.neu-node:hover .neu-orb {
    transform: translateY(-5px);
    color: var(--white);
    box-shadow: 
        0 0 30px var(--primary-glow),
        15px 15px 30px rgba(0, 0, 0, 0.6), 
        -10px -10px 20px rgba(255, 255, 255, 0.08);
}

.neu-content h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.neu-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 200px;
}

/* Background Connection Lines */
.flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .neumorphic-flow {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 3rem;
    }
    .node-audit, .node-design, .node-integrate, .node-optimize {
        grid-column: 1;
        grid-row: auto;
    }
    .flow-lines { display: none; }
}
/* --- Navigation Badge Logo --- */
.nav-logo-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.badge-prefix {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 12px;
}

.badge-suffix {
    background: transparent;
    color: var(--primary);
    padding: 6px 12px;
}

/* Hover Effect */
.nav-logo-badge:hover {
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-1px);
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .nav-logo-badge {
        font-size: 0.7rem;
    }
    .badge-prefix, .badge-suffix {
        padding: 4px 8px;
    }
}
/* --- Mobile Menu Visibility Fix --- */
@media (max-width: 768px) {
    /* 1. Ensure the menu is hidden by default on mobile */
    #navLinks {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; /* Sits right under the navbar */
        left: 0;
        width: 100%;
        background: rgba(10, 12, 16, 0.95); /* Matches your dark theme */
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid var(--primary);
    }

    /* 2. This is what the JS triggers */
    #navLinks.active {
        display: flex !important; /* Forces the menu to show */
        animation: fadeInDown 0.3s ease forwards;
    }
}

/* Simple animation for a smoother feel */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Concept Project Badge */
.concept-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-dim);
    font-style: italic;
}
/* Contact form divider */
.form-divider-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 0;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.form-divider-label::before,
.form-divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}