/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
    /* Colors - Premium Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;

    --bg-primary: #0a0e27;
    --bg-secondary: #131729;
    --bg-card: #1a1f3a;
    --bg-hover: #252b4a;

    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --text-muted: #8892b0;

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);

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

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

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

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.logo-name {
    color: var(--navbar-text, var(--text-primary));
    font-size: 1.05rem;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .logo-name {
        display: none;
    }
}

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

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--navbar-text, var(--text-secondary));
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navbar-text, var(--text-primary));
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-resume-mobile {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navbar-text, var(--text-primary));
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(180deg);
}

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

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

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    top: -250px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-gradient);
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    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-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 50px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.1);
    }
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--hero-name-gradient, linear-gradient(135deg, #ffffff 0%, #b8c1ec 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    min-height: 2.4em;
}

.typing-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 4px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.8;
    max-width: 620px;
}

.hero-description strong {
    color: var(--text-secondary);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-stat-chip {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.1rem;
    background: var(--card-bg, var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 108px;
}

.hero-stat-chip strong {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-chip span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Hero Visual (Code Window, no photo)
   =================================== */
.hero-visual {
    position: relative;
    padding: 1rem;
}

.code-window {
    position: relative;
    z-index: 1;
    background: rgba(19, 23, 41, 0.92);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-color);
}

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

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.code-window-title {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-window-body {
    padding: 1.5rem;
    overflow-x: hidden;
}

.code-window-body pre {
    margin: 0;
}

.code-window-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: left;
    display: block;
}

.code-key {
    color: #4facfe;
}

.code-string {
    color: #a5e844;
}

.code-bool {
    color: #f5576c;
    font-weight: 600;
}

.code-punc {
    color: var(--text-muted);
}

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg, var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.1rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
    animation: floatBadge 5s ease-in-out infinite;
}

.float-badge i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.float-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.float-badge strong {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.float-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-1 {
    top: -3.25rem;
    left: -1rem;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 4.5rem;
    right: -1.5rem;
    animation-delay: -1.5s;
}

.badge-3 {
    bottom: -1.5rem;
    left: 1.5rem;
    animation-delay: -3s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

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

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

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

/* ===================================
   Trusted-By Strip
   =================================== */
.trusted-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.trusted-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.trusted-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
}

.trusted-track span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
}

.trusted-track i {
    color: var(--accent-color);
}

/* ===================================
   Section Styles
   =================================== */
.section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--section-title-gradient, linear-gradient(135deg, #ffffff 0%, #b8c1ec 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Why Hire Me / Highlights
   =================================== */
.highlights {
    background: var(--bg-secondary);
}

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

.highlight-card {
    background: var(--card-bg, var(--bg-card));
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.highlight-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: white;
}

.highlight-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    gap: 3rem;
}

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

.stat-card {
    background: var(--card-bg, var(--bg-card));
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-card p {
    color: var(--text-muted);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

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

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===================================
   Experience Section
   =================================== */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-dot.current {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.3);
}

.timeline-dot.current::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #34d399;
    animation: pulseDot 2s ease-in-out infinite;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.current-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.timeline-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.timeline-date {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.timeline-location {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.timeline-location i {
    margin-right: 0.5rem;
}

.timeline-achievements {
    list-style: none;
    margin-bottom: 1.5rem;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.tech-badge {
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================================
   Skills Section
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg, var(--bg-card));
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-items {
    display: grid;
    gap: 0.75rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.skill-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    background: var(--bg-secondary);
}

/* Featured project spotlight */
.featured-project {
    background: var(--card-bg, var(--bg-card));
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.project-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.featured-project-header h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.featured-project-header p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: 2rem;
}

.featured-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-detail h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.featured-detail h4 i {
    color: var(--accent-color);
}

.featured-detail p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.project-card {
    background: var(--card-bg, var(--bg-card));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    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.4rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================================
   Education Section
   =================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card,
.achievement-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    text-align: center;
}

.education-card:hover,
.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.education-icon,
.achievement-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    font-size: 2rem;
}

.education-card h3,
.achievement-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.education-institution {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-location,
.education-year,
.education-grade {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   CTA Banner
   =================================== */
.cta-banner {
    background: var(--primary-gradient);
    padding: 3.5rem 0;
}

.cta-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.cta-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-banner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-banner .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

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

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

.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;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.contact-item a {
    color: var(--accent-color);
    word-break: break-word;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-secondary);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-content p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===================================
   Scroll To Top
   =================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 900;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes pulse {

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

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

@keyframes shine {
    0% {
        top: -50%;
        left: -50%;
    }

    100% {
        top: 150%;
        left: 150%;
    }
}

.stat-card::before,
.skill-category::before,
.project-card::before,
.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.stat-card:hover::before,
.skill-category:hover::before,
.project-card:hover::before,
.highlight-card:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

.highlight-card {
    position: relative;
    overflow: hidden;
}

/* ===================================
   Loader
   =================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

    .hero-visual {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats,
    .hero-buttons,
    .hero-social {
        justify-content: center;
    }

    .float-badge {
        display: none;
    }
}

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

    .cta-banner-inner {
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }

    .cta-banner-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        transform: translateX(-100%);
        flex-direction: column;
        align-items: stretch;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem 0 2rem;
        gap: 0.5rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        padding: 0.4rem 1.5rem;
    }

    .nav-link {
        display: block;
        padding: 0.6rem 0;
    }

    .nav-resume-mobile {
        display: block;
        margin-top: 0.5rem;
    }

    .nav-resume-mobile .btn {
        width: 100%;
    }

    .nav-resume-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding-top: 90px;
    }

    .code-window {
        max-width: 100%;
    }

    .code-window-body {
        padding: 1.1rem;
    }

    .code-window-body code {
        font-size: 0.72rem;
        line-height: 1.7;
    }

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

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-dot {
        left: 1px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .featured-project {
        padding: 1.75rem;
    }

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

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

    .trusted-track {
        gap: 0.75rem 1.5rem;
    }

    .trusted-track span {
        font-size: 0.9rem;
    }

    .scroll-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14.5px;
    }

    .container {
        padding: 0 1.1rem;
    }

    section {
        padding: 3rem 0;
    }

    .nav-container {
        padding: 0.85rem 1.1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-greeting {
        font-size: 0.85rem;
    }

    .hero-stat-chip {
        min-width: calc(50% - 0.4rem);
        flex: 1 1 calc(50% - 0.4rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-social {
        gap: 0.75rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

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

    .timeline-header h3 {
        font-size: 1.2rem;
    }

    .featured-project {
        padding: 1.4rem;
        border-radius: var(--radius-lg);
    }

    .featured-project-header h3 {
        font-size: 1.35rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .cta-banner {
        padding: 2.5rem 0;
    }
}

@media (max-width: 360px) {
    .hero-stat-chip {
        min-width: 100%;
        flex-basis: 100%;
    }
}
