﻿/* CSS Variables & Reset */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-muted: #a0a0a0;
    --text-secondary: #707070;

    /* Modern Gradient Color System */
    --accent-orange: #ff6b35;
    --accent-pink: #ff006e;
    --accent-blue: #3a86ff;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff006e 100%);
    --gradient-secondary: linear-gradient(135deg, #3a86ff 0%, #8338ec 100%);
    --gradient-accent: linear-gradient(135deg, #06ffa5 0%, #00d4ff 100%);

    /* Legacy color mappings for backward compatibility */
    --accent-cyan: #ff6b35;
    --accent-purple: #ff006e;
    --accent-green: #06ffa5;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    --nav-height: 70px;
    --glass-bg: rgba(17, 17, 17, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
.theme-light {
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a1a;
    --text-muted: #666666;
    --text-secondary: #999999;

    /* Light theme gradient colors */
    --accent-orange: #ff5722;
    --accent-pink: #e91e63;
    --accent-blue: #2196f3;
    --gradient-primary: linear-gradient(135deg, #ff5722 0%, #e91e63 100%);
    --gradient-secondary: linear-gradient(135deg, #2196f3 0%, #673ab7 100%);

    /* Legacy color mappings */
    --accent-cyan: #ff5722;
    --accent-purple: #e91e63;
    --accent-green: #00bfa5;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-heading);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
button {
    cursor: none;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

li {
    list-style: none;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 20px;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: logoFadeIn 1.5s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.loader-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--accent-orange);
    border-right-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoFadeIn {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

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

/* Gradient Text Utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Cursor */
#cursor-dot,
#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    z-index: 1003;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s;
}

.logo-icon:hover {
    transform: scale(1.05);
}

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

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1003;
}

#theme-toggle {
    color: var(--text-primary);
    transition: transform 0.3s;
    background: transparent;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--accent-purple);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 20px;
}

.mobile-nav-links a {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s;
    position: relative;
    padding: 10px 20px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent-orange);
    transform: translateX(10px);
}

.mobile-nav-links a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-links a:hover::before {
    opacity: 1;
}

/* Common Section Styles */
section {
    padding: 60px 10%;
    min-height: auto;
    /* Let content dictate height, or use smaller min-height like 60vh */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-right: 20px;
}

.section-header .hash {
    color: var(--accent-purple);
}

.section-header .line {
    height: 1px;
    background: var(--card-border);
    flex-grow: 1;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 110, 0.06) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    padding: 0 6%;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 255, 165, 0.08);
    border: 1px solid rgba(6, 255, 165, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #06ffa5;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}

.status-text {
    font-size: 0.85rem;
    color: #06ffa5;
    font-weight: 500;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-name {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-roles {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.7rem;
    color: var(--text-primary);
    font-weight: 600;
}

.typewriter {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 2px solid var(--accent-orange);
    animation: blink 1s step-end infinite;
}

.hero-description {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 580px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    transition: all 0.3s;
    background: var(--card-bg);
}

.hero-socials a:hover {
    border-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.hero-socials i {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

/* Hero Visual - Profile Circle */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-image: var(--gradient-primary) 1;
    border-style: solid;
    opacity: 0.3;
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    width: 110%;
    height: 110%;
    border-image: var(--gradient-secondary) 1;
    border-style: solid;
    opacity: 0.2;
    animation: rotate-ring 25s linear infinite reverse;
}

.profile-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid transparent;
    background: var(--gradient-primary);
    padding: 4px;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--card-bg);
}

/* Floating Tech Badges */
.tech-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 3;
}

.tech-badge i {
    width: 28px;
    height: 28px;
    color: var(--accent-orange);
}

.tech-badge:hover {
    transform: scale(1.1);
    border-color: var(--accent-orange);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.badge-1 {
    top: 10%;
    right: 15%;
    animation: float 3s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    right: 10%;
    animation: float 3.5s ease-in-out infinite;
}

.badge-3 {
    top: 15%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.badge-4 {
    bottom: 10%;
    left: 15%;
    animation: float 3.2s ease-in-out infinite;
}

.content-wrapper {
    text-align: center;
    z-index: 1;
}

.glitch-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.glitch {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    color: var(--text-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-purple);
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch.sub {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.hero-subtitle .separator {
    color: var(--text-muted);
    margin: 0 10px;
}

.btn {
    padding: 13px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn.primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: #ffffff;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

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

.btn.secondary:hover {
    border-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.08);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

/* About Section - New Clean Design */
.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s;
}

.highlight-item:hover {
    border-color: var(--accent-orange);
    transform: translateX(5px);
}

.highlight-item i {
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
}

.highlight-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.about-profile-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.image-wrapper:hover .about-profile-img {
    transform: translate(-8px, -8px);
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    z-index: 1;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-border {
    top: 24px;
    left: 24px;
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 1rem;
    }

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

/* Old About Styles - Keeping for backward compatibility */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

/* Placeholder for visual tilt element */
/* Main Profile Card */
.profile-card {
    height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.3s ease;
    filter: none;
}

.profile-card:hover .profile-img {
    transform: scale(1.02);
}

.terminal-window {
    background: #0e0e0e;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}

.buttons .close {
    background: #ff5f56;
}

.buttons .minimize {
    background: #ffbd2e;
}

.buttons .maximize {
    background: #27c93f;
}

.terminal-header .title {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 20px;
    color: #ccc;
    font-size: 0.9rem;
    min-height: 250px;
}

.prompt {
    color: var(--accent-green);
    margin-right: 10px;
}

.output {
    color: var(--text-muted);
    margin: 10px 0 20px 20px;
    line-height: 1.6;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

/* Statistics Counters */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    width: 30px;
    height: 30px;
    color: #fff;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

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

/* Background Section - Timeline Design */
.background-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    padding-left: 60px;
}

/* Vertical timeline line */
.background-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--accent-orange) 10%,
            var(--accent-orange) 90%,
            transparent 100%);
}

/* Timeline Item Container */
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

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

/* Icon on left (replaces dot) */
.timeline-left .card-icon,
.timeline-right .card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-orange);
    position: relative;
    z-index: 2;
}

/* Content on right */
.timeline-left .timeline-content,
.timeline-right .timeline-content {
    grid-column: 2;
}

/* Hide the separate timeline dot and date */
.timeline-left .timeline-dot,
.timeline-right .timeline-dot {
    display: none;
}

.timeline-left .timeline-date,
.timeline-right .timeline-date {
    display: none;
}

/* Background Card */
.background-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.background-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.background-card:hover::before {
    transform: scaleX(1);
}

.background-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

/* Card Header - Now just contains title, no icon */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    padding: 28px 28px 0 28px;
}

.card-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Move card-icon outside of card-header */
.timeline-content .card-icon {
    display: none;
}

/* Card Icon - Now in timeline grid */
.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border: 3px solid var(--accent-orange);
}

.background-card:hover~.card-icon {
    transform: scale(1.1);
}

/* Different colors for education vs experience */
.card-icon.education {
    background: var(--gradient-secondary);
    border-color: #3a86ff;
}

.card-icon.experience {
    background: var(--gradient-primary);
    border-color: var(--accent-orange);
}

.card-icon i {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

/* Card Body */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    padding: 0 28px 28px 28px;
}

.card-institution {
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-style: normal;
    margin: 0;
    font-weight: 500;
}

.card-duration {
    font-size: 0.85rem;
    color: #06ffa5;
    font-weight: 600;
    font-family: var(--font-mono);
    margin: 0;
    display: inline-block;
}

/* Card Details List */
.card-details {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-details li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.card-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Mobile Background Section */
@media (max-width: 768px) {
    .background-unified-grid {
        grid-template-columns: 1fr;
    }

    .card-title-group h4 {
        font-size: 1rem;
    }
}

/* Old Styles - Keeping for backward compatibility */
.background-section {
    margin-bottom: 60px;
}

.background-section:last-child {
    margin-bottom: 0;
}

.background-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.background-section-title i {
    width: 28px;
    height: 28px;
    color: var(--accent-orange);
}

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

.background-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.background-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 10px;
    flex-shrink: 0;
}

.card-icon i {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.card-title-group {
    flex: 1;
}

.card-title-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-institution {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.card-duration {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 600;
    font-family: var(--font-mono);
    margin: 0;
}

.card-details {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-details li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.card-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Mobile Background Section */
@media (max-width: 768px) {
    .background-grid {
        grid-template-columns: 1fr;
    }

    .background-section-title {
        font-size: 1.5rem;
    }

    .card-title-group h4 {
        font-size: 1rem;
    }
}

/* Old Timeline Styles - Keeping for backward compatibility */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--card-border);
    top: 5px;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

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

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

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    left: 11px;
    top: 5px;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 243, 255, 0.05);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Little arrow for the card */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--card-bg);
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    transform: rotate(45deg);
    transition: border-color 0.3s;
}

.timeline-item:hover .timeline-content::before {
    border-color: var(--accent-cyan);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.institution {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.log-details li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
    display: flex;
}

/* Indent specific styling */
.log-details li::before {
    content: '>';
    color: var(--accent-green);
    margin-right: 10px;
}

/* Background Section Subsections */
.background-subsection {
    margin-bottom: 60px;
}

.background-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.subsection-title i {
    width: 28px;
    height: 28px;
    color: var(--accent-orange);
}


/* Skills (The Stack) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 35px;
    border-radius: 8px;
    transition: all 0.3s;
}

.skill-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.skill-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.skill-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-percentage {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-weight: 600;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    will-change: width;
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.skill-progress-fill.animated {
    width: var(--progress-width);
}

/* Old skill styles - keeping for backward compatibility */
.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    align-items: stretch;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    position: relative;
    height: 100%;
    min-width: 0;
}

.skill-category h3 {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
    display: inline-block;
}

#backend-skills h3 {
    color: var(--accent-purple);
}

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.skill-item:hover {
    color: var(--text-primary);
}

.connector-line {
    display: none;
}

/* Projects (Modules) */
.projects-modern-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.project-card {
    background: transparent;
    perspective: 1000px;
    height: 520px;
    position: relative;
    will-change: transform;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
}

.card-front {
    transform: rotateY(0deg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
}

.card-front:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
}

.card-back {
    transform: rotateY(180deg);
    background: #0d0d0d;
    padding: 20px;
    border-color: var(--accent-purple);
}

.project-card.flipped .card-front {
    transform: rotateY(-180deg);
}

.project-card.flipped .card-back {
    transform: rotateY(0deg);
}

.project-image {
    flex-grow: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-front:hover .project-image::after {
    opacity: 1;
}

.project-info {
    padding: 25px;
    border-top: 1px solid var(--card-border);
    background: var(--card-bg);
}

.project-info h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.tags span {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border: 1px solid var(--card-border);
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.flip-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 50%;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.flip-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    color: var(--accent-purple);
    font-size: 0.8rem;
}

.code-preview {
    flex-grow: 1;
    background: #050505;
    padding: 15px;
    border-radius: 4px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a0a0a0;
    line-height: 1.5;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.link-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--card-border);
    font-size: 0.8rem;
    transition: background 0.3s;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Contact Section - Modern Design */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.contact-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--accent-orange);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.1);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 10px;
    flex-shrink: 0;
}

.info-icon i {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.info-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p,
.info-content a {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    word-break: break-word;
}

.info-content a {
    transition: color 0.3s;
}

.info-content a:hover {
    color: var(--accent-orange);
}

/* Modern Form */
.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: all 0.3s;
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.03);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

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

.modern-form .btn.primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
    margin-top: 8px;
    justify-content: center;
}

/* Mobile Contact Section */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 30px;
    }

    .contact-title {
        font-size: 1.8rem;
    }
}

/* Old Contact Styles - Keeping for backward compatibility */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-desc {
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.3s;
}

.info-item:hover {
    border-color: var(--accent-orange);
    transform: translateX(8px);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.15);
}

.info-item i {
    color: var(--accent-orange);
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.info-item h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 45px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 15px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.05);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

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

.contact-form-wrapper .btn.primary {
    width: 100%;
    padding: 15px 30px;
    font-size: 1rem;
    margin-top: 10px;
}


/* Animations */
@keyframes glitch-anim {
    0% {
        clip-path: inset(44% 0 61% 0);
    }

    20% {
        clip-path: inset(12% 0 9% 0);
    }

    40% {
        clip-path: inset(68% 0 16% 0);
    }

    60% {
        clip-path: inset(3% 0 89% 0);
    }

    80% {
        clip-path: inset(93% 0 2% 0);
    }

    100% {
        clip-path: inset(21% 0 45% 0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

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

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse-dot {

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

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

/* Footer */
footer {
    padding: 40px 10%;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.socials i {
    transition: color 0.3s;
}

.socials i:hover {
    color: var(--accent-cyan);
}

/* Mobile & Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .profile-circle-wrapper {
        width: 350px;
        height: 350px;
        margin: 0 auto;
    }

    .profile-circle {
        width: 280px;
        height: 280px;
    }

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

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

    /* Show mobile menu button on tablets */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .glass-nav {
        padding: 0 4%;
        height: 70px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* Hero Section */
    .hero-name {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-circle-wrapper {
        width: 300px;
        height: 300px;
    }

    .profile-circle {
        width: 240px;
        height: 240px;
    }

    .tech-badge {
        width: 50px;
        height: 50px;
    }

    .tech-badge i {
        width: 24px;
        height: 24px;
    }

    .glitch {
        font-size: 3rem;
    }

    /* Sections */
    section {
        padding: 50px 5%;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

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

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

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

    .skills-container {
        flex-direction: column;
        gap: 30px;
    }

    .skill-category {
        width: 100%;
    }

    .connector-line {
        width: 1px;
        height: 50px;
        background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    }

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

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

    /* Background subsections */
    .subsection-title {
        font-size: 1.3rem;
    }

    /* Mobile menu links larger on mobile */
    .mobile-nav-links a {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    /* Navigation */
    .glass-nav {
        height: 60px;
        padding: 0 3%;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profile-circle-wrapper {
        width: 250px;
        height: 250px;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }

    .tech-badge {
        width: 40px;
        height: 40px;
    }

    .tech-badge i {
        width: 20px;
        height: 20px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 40px 5%;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .skill-card {
        padding: 25px;
    }

    /* Stats */
    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Timeline */
    .timeline::after {
        left: 15px;
    }

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

    .timeline-dot {
        left: 6px;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 25px;
    }

    /* Background subsections */
    .subsection-title {
        font-size: 1.1rem;
    }

    .subsection-title i {
        width: 22px;
        height: 22px;
    }

    /* Mobile menu */
    .mobile-nav-links a {
        font-size: 1.5rem;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 5% 50px;
    }

    .profile-circle-wrapper {
        width: 250px;
        height: 250px;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }
}

/* Footer */
footer {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.footer-socials a i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 0;
        margin-top: 60px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}