:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    /* Electric Blue */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --nav-height: 80px;
}

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

body {
    background-color: transparent;
    /* Allow canvas at z-index -1 to show */
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    background: radial-gradient(circle at center, #0f172a 0%, #030305 100%);
    /* Deep gradient base */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    transition: background 0.3s ease;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo .highlight {
    color: var(--accent-primary);
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    /* Optional: if the logo is circular/iconic */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: rotate(10deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links li a:hover {
    color: var(--text-primary);
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-height) + 2rem) 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--glass-border);
    /* Updated to be more visible */
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 600px;
    /* Increased height for image */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.profile-image-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 450px;
    /* Adjust based on V3.png aspect ratio, assuming portrait or square */
    z-index: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* Modern rounded corners */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    /* Fade out at bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.glowing-orb-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    opacity: 0.3;
    filter: blur(60px);
    z-index: -1;
}

.code-card {
    padding: 2rem;
    background: rgba(10, 10, 15, 0.9);
    /* Slightly more opaque */
    width: 90%;
    /* Responsive width */
    max-width: 400px;
    transform: rotate(-5deg) translateY(100px);
    /* Tilted and moved down to overlap slightly or sit below */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}

pre {
    color: #cecece;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skills-wrapper {
    padding: 2rem;
}

.skill-category h4 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.skill-category {
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

/* Services Section */
.dark-bg {
    background: rgba(255, 255, 255, 0.02);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: var(--card-hover-bg);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-case-study {
    padding: 2.75rem;
    margin-bottom: 3rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.18);
    overflow: hidden;
}

.case-study-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: stretch;
}

.case-study-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-study-header {
    max-width: 760px;
}

.case-study-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.case-study-header h3 {
    font-size: 2.3rem;
    line-height: 1;
    margin-bottom: 0.9rem;
}

.case-study-header p,
.case-study-panel p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.case-study-panel,
.case-dashboard {
    padding: 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.proof-pill {
    min-width: 150px;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.proof-pill strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.case-study-panel h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.case-study-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.2rem;
}

.case-study-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.case-study-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.case-study-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.case-study-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.case-study-visual {
    position: relative;
    display: flex;
    align-items: stretch;
}

.case-dashboard {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(7, 12, 24, 0.95), rgba(8, 9, 14, 0.94));
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.35);
}

.case-dashboard-top {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-chip.muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.case-dashboard-screen {
    display: grid;
    gap: 1rem;
}

.dashboard-hero {
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.08));
}

.dashboard-kicker {
    display: block;
    margin-bottom: 0.5rem;
    color: #93c5fd;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-hero strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.15;
    margin-bottom: 0.55rem;
}

.dashboard-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-mini-card {
    padding: 1rem 1rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-mini-card i {
    color: var(--accent-primary);
    font-size: 1.05rem;
}

.dashboard-mini-card span {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
}

.dashboard-summary {
    padding: 0.6rem 0.2rem 0;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-top: 1rem;
}

.center-btn {
    text-align: center;
}

/* Why Me */
.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-list i {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.benefit-list strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.method i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.full-width {
    width: 100%;
}

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

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.15;
        transform: scale(1);
    }

    100% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: calc(var(--nav-height) + 4rem);
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .case-study-layout {
        grid-template-columns: 1fr;
    }

    .case-study-footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        /* simple hide for now, JS toggles */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #0a0a0f;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .featured-case-study {
        padding: 1.5rem;
    }

    .case-study-header h3 {
        font-size: 1.6rem;
    }

    .case-study-list {
        grid-template-columns: 1fr;
    }

    .dashboard-mini-grid {
        grid-template-columns: 1fr;
    }

    .case-study-actions {
        width: 100%;
    }

    .case-study-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

.mini-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(40, 200, 64, 0.15);
    /* Greenish for success */
    color: #4ade80;
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}
