/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Dark Mode Color Scheme */
    --bg-primary: #121212;
    /* Matte Charcoal - Background */
    --bg-secondary: #121212;
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    /* Dark Graphite - Card/Section BG */
    --text-primary: #E0E0E0;
    /* Off-White - Primary Text */
    --text-secondary: #A0A0A0;
    /* Silver Mist - Secondary Text */
    --text-light: #A0A0A0;
    --border-color: #333333;
    /* Subtle Grey - Borders/Lines */
    --accent-color: #FFFFFF;
    /* Pure White - Main Accent (hover states, logos) */
    --primary-color: #FFFFFF;
    /* Pure White for accents */
    --primary-dark: #E0E0E0;
    --primary-light: #FFFFFF;
    --secondary-color: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --glow-color: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', monospace;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode (Default) */
body.dark-mode {
    --text-primary: #E0E0E0;
    /* Off-White */
    --text-secondary: #A0A0A0;
    /* Silver Mist */
    --text-light: #A0A0A0;
    --bg-primary: #121212;
    /* Matte Charcoal */
    --bg-secondary: #121212;
    --bg-card: #1E1E1E;
    /* Dark Graphite */
    --border-color: #333333;
    /* Subtle Grey */
}

/* Light Mode */
body.light-mode {
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary-color: #0099ff;
    --glow-color: rgba(0, 102, 255, 0.3);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: rgba(18, 18, 18, 0.95);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    /* Pure White */
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.nav-logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.nav-logo a:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    /* Pure White */
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: #FFFFFF;
    /* Pure White */
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
    background: var(--bg-primary);
}

.binary-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #FFFFFF;
    /* Pure White */
    overflow: hidden;
    z-index: 0;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.binary-column {
    position: absolute;
    top: 0;
    width: 20px;
    display: flex;
    flex-direction: column;
    animation: binaryFall linear infinite;
    animation-duration: 10s;
}

.binary-digit {
    font-family: var(--font-mono);
    font-size: 14px;
    color: #FFFFFF;
    /* Pure White */
    opacity: 0.3;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    animation: binaryFlicker 2s infinite;
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes binaryFlicker {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    /* Pure White with low opacity */
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    /* Pure White with low opacity */
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    /* Pure White with low opacity */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-text {
    animation: fadeInUp 1s ease-out;
    width: 100%;
    text-align: left;
}

@media (max-width: 968px) {
    .hero-text {
        text-align: center;
    }
}

.terminal-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: #FFFFFF;
    /* Pure White */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.prompt-symbol {
    color: #FFFFFF;
    /* Pure White */
}

.prompt-text {
    color: var(--text-secondary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 2rem 0;
    text-align: center;
    color: #E0E0E0;
    /* Off-White for h1 */
    position: relative;
    width: 100%;
    cursor: pointer;
    padding: 1rem 0;
}

.binary-name {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    color: #FFFFFF;
    /* Pure White */
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2em;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    min-height: 1.2em;
    opacity: 1;
    width: 100%;
    pointer-events: auto;
}

.binary-name:hover {
    text-shadow: 0px 0px 30px rgba(255, 255, 255, 0.4);
    /* Pure White glow */
    transform: scale(1.02);
}


.tech-tagline {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    color: var(--text-secondary);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tagline-prefix,
.tagline-suffix {
    color: #FFFFFF;
    /* Pure White */
    font-weight: 600;
}

.tagline-text {
    color: #FFFFFF;
    /* Pure White for "Creative Developer" */
}

.hero-title .line {
    display: block;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.hero-title .line-1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation-delay: 0.2s;
}

.hero-title .line-2 {
    color: #FFFFFF;
    /* Pure White */
    animation-delay: 0.4s;
}

.hero-title .line-3 {
    color: var(--text-primary);
    animation-delay: 0.6s;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
    margin-bottom: 2rem;
}

.hero-social {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.social-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
}

@media (max-width: 968px) {
    .social-label {
        text-align: center;
    }
}

.social-handles {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-handle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.social-handle:hover {
    border-color: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Pure White */
}

.social-handle:hover::before {
    left: 0;
}

.social-handle i {
    font-size: 1.125rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: transparent;
    color: #FFFFFF;
    /* Pure White */
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #FFFFFF;
    /* Pure White on hover */
    color: #121212;
    /* Matte Charcoal text on hover */
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    /* Pure White */
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background: #FFFFFF;
    /* Pure White on hover */
    color: #121212;
    /* Matte Charcoal text on hover */
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.8s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
}

.image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(255, 255, 255, 0.2);
    /* Pure White glow on hover */
    border-color: #FFFFFF;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.image-wrapper:hover .profile-image {
    transform: scale(1.1);
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.floating-shape {
    position: absolute;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    /* Pure White with low opacity */
    opacity: 0.1;
    animation: floatShape 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(180deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: arrowDown 2s infinite;
}

@keyframes arrowDown {

    0%,
    100% {
        opacity: 0;
        transform: rotate(45deg) translateY(-10px);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translateY(0);
    }
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #E0E0E0;
    /* Off-White for headings */
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: 0;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--border-color);
    transition: all var(--transition-base);
}

.about-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-profile-img {
    transform: scale(1.1);
}

.about-image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.about-intro h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-primary);
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    /* Pure White */
    transition: left 0.3s ease;
    z-index: -1;
}

.skill-tag:hover {
    color: #121212;
    /* Matte Charcoal */
    border-color: #FFFFFF;
    /* Pure White */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Pure White */
}

.skill-tag:hover::before {
    left: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    /* Pure White */
    margin-bottom: 0.5rem;
}

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

/* ============================================
   Education Section
   ============================================ */
.education {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.section-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.section-header-with-icon i {
    font-size: 2rem;
    color: #FFFFFF;
    /* Pure White */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.section-header-with-icon .section-title {
    margin-bottom: 0;
}

.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    opacity: 0.6;
}

.education-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -3.75rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    /* Pure White */
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.education-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-md);
}

.education-card:hover {
    transform: translateX(10px);
    border-color: #FFFFFF;
    /* Pure White */
    box-shadow: var(--shadow-lg);
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    /* Pure White */
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.education-institution {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-years {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .education-timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.5rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-degree {
        font-size: 1.25rem;
    }
}

/* ============================================
   Achievements Section
   ============================================ */
.achievements {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

.achievements-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
    z-index: 1;
}

.achievements-timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    opacity: 0.6;
}

.achievement-item {
    position: relative;
    margin-bottom: 3rem;
}

.achievement-marker {
    position: absolute;
    left: -3.75rem;
    top: 0.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition-base);
}

.achievement-marker i {
    font-size: 1.25rem;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.achievement-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    border-color: #FFFFFF;
}

.achievement-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-md);
}

.achievement-card:hover {
    transform: translateX(10px);
    border-color: #FFFFFF;
    box-shadow: var(--shadow-lg);
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.achievement-role {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.achievement-date {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.achievement-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .achievements-timeline {
        padding-left: 2rem;
    }

    .achievement-marker {
        left: -2.5rem;
        width: 40px;
        height: 40px;
    }

    .achievement-marker i {
        font-size: 1rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .achievement-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    /* Pure White with low opacity */
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: #FFFFFF;
    /* Pure White on hover */
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-card);
}

.project-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-base);
}

.project-card:hover .project-bg-image {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.3;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    padding: 1rem;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    transform: scale(0);
    flex-shrink: 0;
    min-width: 50px;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    cursor: pointer;
}

.project-card:hover .project-link {
    transform: scale(1);
    animation: popIn 0.3s ease-out forwards;
}

.project-link:nth-child(2) {
    animation-delay: 0.1s;
}

.project-link:hover {
    background: #121212;
    /* Matte Charcoal */
    color: #FFFFFF;
    /* Pure White */
    transform: scale(1.1) rotate(5deg);
}

@keyframes popIn {
    from {
        transform: scale(0) rotate(-180deg);
    }

    to {
        transform: scale(1) rotate(0deg);
    }
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color var(--transition-base);
}

.project-card:hover .project-title {
    color: #FFFFFF;
    /* Pure White */
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.project-tech span {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.project-card:hover .project-tech span {
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    border-color: #FFFFFF;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.contact-item:hover .contact-icon {
    transform: rotate(5deg) scale(1.1);
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-details a:hover {
    color: #FFFFFF;
    /* Pure White */
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    border-color: transparent;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Pure White */
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    /* Pure White */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-base);
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: #FFFFFF;
    /* Pure White */
    background: var(--bg-card);
    padding: 0 0.5rem;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #121212;
    /* Matte Charcoal */
    color: #E0E0E0;
    /* Off-White */
    padding: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-content i.fa-heart {
    color: #FFFFFF;
    /* Pure White */
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    /* Pure White */
    color: #121212;
    /* Matte Charcoal */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .about-image {
        margin-top: 3rem;
    }

    .about-image-wrapper {
        max-width: 280px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #1E1E1E;
        /* Dark Graphite */
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about,
    .projects,
    .contact {
        padding: 4rem 1rem;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}