/* ==========================================================================
   HM DIGITAL WORK - PREMIUM ULTRA GLIDE FLUID STYLING MATRIX
   ========================================================================== */

:root {
    --bg-primary: #080c16;
    --bg-secondary: #0f1424;
    --bg-surface: rgba(15, 20, 36, 0.75);
    --neon-cyan: #06b6d4;
    --neon-glow: rgba(6, 182, 212, 0.3);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --radius-premium: 20px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 90px 0; }

.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--neon-cyan);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

/* INTERFACE PLATFORMS & FLOATING BADGES */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.show { opacity: 1; visibility: visible; }

.back-to-top:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-glow);
    transform: translateY(-4px);
}

.whatsapp-floating-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 52px;
    height: 52px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: var(--transition-smooth);
    animation: wavePulse 2.5s infinite;
}

.whatsapp-floating-trigger:hover { transform: scale(1.12) rotate(8deg); }

@keyframes wavePulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* NAVBAR ENGINE & CURVED SIDEBAR SYSTEM */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.menu-toggle {
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 105;
}

.nav-links-wrapper {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    padding: 110px 45px;
    box-shadow: -15px 0 40px rgba(0,0,0,0.6);
    transition: var(--transition-smooth);
    z-index: 101;
}

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

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
}

.nav-links li.active a, .nav-links li a:hover {
    color: var(--neon-cyan);
    transform: translateX(10px);
}

/* HERO SECTION LAYOUT GRID */
.hero-section {
    min-height: 100vh;
    padding-top: 130px;
    display: flex;
    align-items: center;
}

.hero-grid-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 35px;
}

.hero-tech-frame {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-premium);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.cyber-window-header {
    background: rgba(255,255,255,0.03);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cyber-window-header .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.window-title { font-size: 0.75rem; color: var(--text-secondary); font-family: monospace; margin-left: 10px; }

.cyber-image-container { width: 100%; aspect-ratio: 4/3; overflow: hidden;}
.tech-display-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: var(--transition-smooth); }
.hero-tech-frame:hover .tech-display-img { transform: scale(1.05); opacity: 1; }

/* REUSABLE PREMIUM INPUTS AND CONTROLS */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 32px;
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--neon-glow);
}

.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social-row a {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-row a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

/* METRIC MATRIX BOX GRAPHICS */
.section-title { font-size: 2.4rem; font-weight: 800; text-align: center; margin-bottom: 60px; }
.skills-grid, .projects-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.skill-card, .project-card, .review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-premium);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.skill-card:hover, .project-card:hover, .review-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-5px);
}

.progress-container { width: 100%; height: 7px; background: rgba(255,255,255,0.06); border-radius: 10px; margin-top: 14px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--neon-cyan); border-radius: 10px; }

.email-direct-box {
    max-width: 650px;
    margin: 0 auto 45px auto;
    text-align: center;
    background: rgba(6, 182, 212, 0.04);
    border: 1px dashed var(--neon-cyan);
    padding: 24px;
    border-radius: 16px;
}
.email-direct-box strong { font-size: 1.25rem; color: #fff; letter-spacing: 0.5px; display: block; margin-top: 5px;}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus { border-color: var(--neon-cyan); }

footer { padding: 45px 0; text-align: center; color: var(--text-secondary); border-top: 1px solid var(--border); font-size: 0.9rem; }

/* RESPONSIVE LAYOUT MATRIX CONSTRAINTS */
@media (max-width: 1024px) {
    .hero-grid-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .social-row { justify-content: center; }
    .hero-tech-frame { max-width: 580px; margin: 0 auto; width: 100%; }
}

@media (max-width: 500px) {
    .hero-content h1 { font-size: 2.6rem; }
    .section-title { font-size: 1.9rem; }
    .nav-links-wrapper { width: 100%; right: -100%; border-radius: 0; }
}