/* Navbar */
nav {
    padding: 30px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    overflow-x: clip;
}

/* Constants */
:root {
    --bg-dark: #111215;
    --bg-card: #151921;
    --primary: #ffffff;
    --accent: #0060FF;
    --text-muted: #B4B4B4;
    --border-color: #A7AFBD54;

    --font-heading: 'Krona One', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-dark);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ... */

/* Mobile Menu Fix */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    /* Align to right */
    transform: translateX(100%);
    /* Move off-screen with transform instead of right: -100% */
    width: 100%;
    height: 100vh;
    background: rgba(17, 18, 21, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.menu.active {
    transform: translateX(0);
    /* Slide in */
}

.container {
    max-width: 1440px;
    /* Wide layout like Enigma */
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Navigation Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* Desktop Menu Styles */
.desktop-menu {
    display: flex;
    /* Visible by default on desktop */
    gap: 40px;
}

.desktop-menu a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.desktop-menu a:hover {
    color: var(--primary);
}

/* Mobile Toggle & Overlay - HIDDEN by default */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10001;
    /* Above overlay */
}

.mobile-overlay-menu {
    display: none;
    /* Logic handled in media query */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 18, 21, 0.98);
    /* Deep dark glass */
    backdrop-filter: blur(20px);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    list-style: none;
    text-align: center;
}

.mobile-links li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.mobile-overlay-menu.active .mobile-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for mobile items */
.mobile-overlay-menu.active .mobile-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-overlay-menu.active .mobile-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-overlay-menu.active .mobile-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-overlay-menu.active .mobile-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-links a {
    font-size: 2rem;
    color: var(--primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Critical for clipping giant text */
}

.hero-text-layer {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-text-layer h1 {
    font-family: var(--font-heading);
    font-size: 15vw;
    color: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    cursor: default;
}

/* Hero Section - 3 Column Layout */
.hero-content-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    /* Center everything */
    align-items: center;
    width: 100%;
    margin-top: 50px;
    gap: 40px;
    /* Space between columns */
}

.hero-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
    /* Space between the two info boxes in a column */
    width: 250px;
    /* Fixed width for alignment */
}

.hero-info-column.left {
    text-align: right;
    /* Left column text aligns right towards image */
    align-items: flex-end;
}

.hero-info-column.right {
    text-align: left;
    /* Right column text aligns left towards image */
    align-items: flex-start;
}

.hero-image-center {
    flex-shrink: 0;
    position: relative;
}

.portrait-placeholder img {
    width: 400px;
    /* Specific size from ref */
    height: 550px;
    object-fit: cover;
    border-radius: 200px;
    /* Oval shape */
    border: 8px solid rgba(255, 255, 255, 0.02);
    /* Slight ring */
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    filter: grayscale(10%) contrast(110%);
}

.info-box small {
    display: block;
    color: var(--primary);
    /* Upper text is white/bold */
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.info-box h3 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-muted);
    /* Lower text is muted/thin */
    margin: 0;
    line-height: 1.4;
}

/* Hero Background Layer (Consolidated) */
/* .hero-text-layer styles moved up and merged */

/* Skills Section */
.skills-section {
    padding: 120px 0;
    position: relative;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.skill-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.circle {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(21, 25, 33, 0.8);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 96, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary);
    z-index: 5;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.percentage {
    position: absolute;
    top: -40px;
    font-size: 1.1rem;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
}

.skill-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
}

/* SVG Circle Progress logic */
svg {
    position: absolute;
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
}

svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
    stroke-linecap: round;
}

svg circle:last-of-type {
    stroke-dasharray: 380;
    stroke: var(--accent);
    stroke-dashoffset: 380;
    transition: stroke-dashoffset 1.5s ease-in-out;
    filter: drop-shadow(0 0 5px var(--accent));
}

/* Enigma Specific Refinements */

/* Service List Updates */
.services-list-section {
    padding: 100px 0;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle separator */
    transition: 0.4s ease;
    cursor: pointer;
}

.service-row:hover {
    border-bottom-color: var(--accent);
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.service-left h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
}

.service-right {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: right;
}

.service-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    opacity: 0.6;
}

.service-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.service-row:hover .service-arrow {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(45deg);
    /* Arrow points up-right */
}

.service-arrow i {
    color: var(--primary);
    font-size: 1.2rem;
}


/* About Circular */
.about-circular-section {
    padding: 150px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* About Glow & Stats */
.about-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
}

.about-image-mask {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.about-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.about-image-wrapper:hover .about-image-mask img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 96, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    /* Blue glow */
    z-index: 1;
    pointer-events: none;
}

.section-subtitle {
    display: block;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.about-text-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Contact Form */
.contact-section {
    padding: 100px 0;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 60px;
}

.minimal-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: white;
    color: black;
}

.footer-socials {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-socials a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* Mobile Navigation */
.hamburger-menu {
    display: none !important;
    /* Force hidden on desktop */
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 101;
}

/* Mobile - Professional & Responsive */
@media (max-width: 768px) {

    /* SWITCH VISIBILITIES */
    .desktop-menu {
        display: none !important;
        /* Hide desktop list */
    }

    .mobile-menu-btn {
        display: block !important;
        /* Show hamburger */
    }

    .mobile-overlay-menu {
        display: flex;
        /* Enable flex-box for the overlay logic (opacity controls visibility) */
    }

    /* Container Reset */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .container.hero-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Hero Text Mobile Size */
    .hero-text-layer h1,
    .hero-text-layer span {
        font-size: 18vw;
        top: 45%;
    }

    /* Hero Section Fixes */
    .hero-content-wrapper {
        flex-direction: column;
        margin-top: 100px;
        gap: 40px;
    }

    .hero-text-layer h1,
    .hero-text-layer span {
        font-size: 18vw;
        /* Large but contained */
        top: 45%;
    }

    .hero-info-column {
        width: 100%;
        flex-direction: column;
        /* Stacked */
        text-align: center !important;
        align-items: center !important;
        gap: 30px;
    }

    /* Force order for visual hierarchy */
    .hero-image-center {
        order: -1;
        margin-bottom: 20px;
    }

    .portrait-placeholder img {
        width: 70vw;
        /* Fluid width */
        max-width: 300px;
        height: auto;
        aspect-ratio: 3/4;
        border-width: 4px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    }

    .info-box h3 {
        font-size: 1.1rem;
    }

    /* Section Spacing */
    .about-circular-section,
    .skills-section,
    .services-list-section,
    .contact-section {
        padding: 80px 0;
    }

    /* About Section */
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .about-image-wrapper {
        width: 80vw;
        height: 80vw;
        max-width: 350px;
        max-height: 350px;
    }

    .about-text-content h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        flex-direction: column;
        border-top: none;
        gap: 30px;
        margin-top: 20px;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 12px;
        width: 100%;
    }

    /* Services List */
    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px 0;
    }

    .service-left h3 {
        font-size: 1.4rem;
    }

    .service-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Skills Grid */
    .skills-grid {
        gap: 40px;
    }

    .circle {
        width: 110px;
        height: 110px;
    }

    svg {
        width: 110px;
        height: 110px;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Texture & Overlays (Enigma Style) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/homeenigma016.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    /* Subtle texture overlay */
    pointer-events: none;
    z-index: -1;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('assets/border01.png') no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 10;
}

/* Background removed */

.about-circular-section {
    position: relative;
}

.about-circular-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('assets/border02.png') no-repeat top center;
    background-size: cover;
    transform: rotate(180deg);
    opacity: 0.3;
}