@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #1A2B3D;
    --primary-light: #2D3E50;
    --accent: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.3);
    --text: #F7FAFC;
    --text-muted: #A0AEC0;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo, .menu-toggle {
    position: relative;
    z-index: 10001; /* Above the mobile menu */
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
                url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-cv {
    border: 1px solid var(--border);
    margin-left: 1rem;
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cv:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

/* Sections */
section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

#about {
    position: relative;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.8) 20%, rgba(15, 23, 42, 0.8) 80%, var(--bg-dark) 100%),
                url('../images/about_bg.png');
    background-size: cover;
    background-attachment: fixed;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Structured Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.domain-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.domain-visual {
    text-align: center;
}

.spotlight-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 229, 255, 0.05), transparent);
    pointer-events: none;
}

.kpi-box {
    background: rgba(0, 229, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#experience {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.85) 15%, rgba(15, 23, 42, 0.85) 85%, var(--bg-dark) 100%),
                url('../images/experience_bg.png');
    background-size: cover;
    background-attachment: fixed;
}
.experience-grid {
    display: grid;
    gap: 2rem;
}

.exp-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.exp-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.exp-date {
    color: var(--accent);
    font-weight: 600;
}

#domain-focus {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.92) 15%, rgba(15, 23, 42, 0.92) 85%, var(--bg-dark) 100%),
                url('../images/domain_bg.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

/* Skills */
#skills {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.9) 20%, rgba(15, 23, 42, 0.9) 80%, var(--bg-dark) 100%),
                url('../images/skills_bg.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    transform: scale(1.02);
}

.skill-list {
    list-style: none;
    margin-top: 1rem;
}

.skill-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

#projects {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.88) 15%, rgba(15, 23, 42, 0.88) 85%, var(--bg-dark) 100%),
                url('../images/projects_bg.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

#contact {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.9) 20%, rgba(15, 23, 42, 0.9) 80%, var(--bg-dark) 100%),
                url('../images/contact_bg.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    padding: 6rem 0;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive System */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

@media (max-width: 1024px) {
    #about, #experience, #domain-focus, #skills, #projects, #contact, .hero-bg, .hero-bg-visual {
        background-attachment: scroll !important;
    }
}

@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-description { margin: 0 auto 3rem; }
    .kpi-card-refined { margin: 0 auto; width: 100%; }
    .section-title h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    section { padding: 6rem 0; }
    
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        right: -110%;
        top: 0;
        width: 85%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
        box-shadow: -10px 0 40px rgba(0,0,0,0.8);
        border-left: 1px solid var(--border);
    }

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

    .nav-links li { margin: 1rem 0; }
    .nav-links a { font-size: 1.2rem; }

    h1 { font-size: 2.8rem; }
    
    .feature-grid { grid-template-columns: 1fr; }
    
    .grid-2-col { grid-template-columns: 1fr !important; gap: 2.5rem; }
    
    .domain-card, .spotlight-card { padding: 2rem; }
    
    .btn-cv { margin-left: 0; margin-top: 1rem; width: 100%; justify-content: center; transform: none !important; }
    .btn-primary { width: 100%; justify-content: center; transform: none !important; }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}
