/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #121218;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-secondary: #7000ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7000ff 100%);
    --accent-glow: rgba(0, 212, 255, 0.3);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #6b6b85;
    
    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Font */
    --font-primary: 'Poppins', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===================================
   PRELOADER
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    display: flex;
    gap: 10px;
}

.cube {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    animation: bounce 1.4s infinite ease-in-out;
}

.cube:nth-child(1) { animation-delay: -0.32s; }
.cube:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-code);
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-bracket {
    color: var(--accent-primary);
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    transition: var(--transition-normal);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 12rem 0 4rem;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-job-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.typing-text {
    color: var(--accent-primary);
}

.cursor {
    color: var(--accent-primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.hero-social a:hover {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.scroll-indicator a:hover {
    color: var(--accent-primary);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.section-number {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-intro {
    font-size: 1.15rem !important;
    color: var(--text-primary) !important;
}

.about-details {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.detail-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    min-width: 30px;
}

.detail-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.detail-item p {
    margin: 0;
    font-size: 0.95rem;
}

.about-highlight {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-primary);
    border-radius: 8px;
    font-style: italic;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
}

.image-placeholder {
    background: var(--bg-tertiary);
    border-radius: 20px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.1;
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--accent-primary);
    opacity: 0.3;
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    z-index: -1;
}

.floating-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.badge {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.badge i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    text-align: center;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.skill-category.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(112, 0, 255, 0.1) 100%);
    border-color: var(--accent-primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 2.5rem;
    color: var(--accent-primary);
    border: 2px solid var(--border-color);
}

.skill-category:hover .category-icon {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: rotate(10deg);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.skill-tag.featured {
    background: var(--accent-gradient);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 0 4px var(--accent-glow);
    z-index: 1;
}

.timeline-dot.teaching {
    background: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(112, 0, 255, 0.3);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-normal);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 12px 10px 0;
    border-color: transparent var(--border-color) transparent transparent;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-content.teaching-exp:hover {
    border-color: var(--accent-secondary);
}

.timeline-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-badge.current {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

.timeline-badge.teaching {
    background: linear-gradient(135deg, #7000ff 0%, #ff00ff 100%);
    color: var(--text-primary);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.timeline-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-period i {
    color: var(--accent-primary);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tech span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.timeline-tech span:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.05);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.project-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 16px;
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
}

.project-card:hover .project-icon {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: scale(1.1) rotate(5deg);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-tech {
    color: var(--accent-primary);
    font-family: var(--font-code);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.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-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--accent-primary);
    border: 2px solid var(--border-color);
}

.contact-card:hover .contact-icon {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-card a:hover {
    color: var(--accent-primary);
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-code);
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-bottom i {
    color: #ff0066;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.9); }
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* ===================================
   PRINT BUTTON
   =================================== */
.print-button {
    position: fixed;
    bottom: 90px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7000ff 0%, #00d4ff 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
    z-index: 998;
}

.print-button.show {
    opacity: 1;
    visibility: visible;
}

.print-button:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Tablets & Small Desktops (1200px and below) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (968px and below) */
@media (max-width: 968px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(18, 18, 24, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        max-width: 100vw;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
        transition: var(--transition-normal);
        z-index: 999;
        box-shadow: var(--shadow-lg);
        overflow-x: hidden;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        background: var(--bg-card);
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(0, 212, 255, 0.1);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    .hero {
        padding: 5rem 0 3rem;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-job-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-social {
        gap: 1rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .floating-badges {
        position: static;
        flex-direction: row;
        transform: none;
        margin-top: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .image-border {
        display: none;
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Experience Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 11px;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile Landscape & Small Tablets (768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-job-title {
        font-size: 1.5rem;
        min-height: 45px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin: 1.5rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .hero-social {
        margin-top: 2rem;
        gap: 0.75rem;
    }
    
    .hero-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .section-title::before {
        margin: 0 auto;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about-image {
        max-width: 300px;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    /* Detail Cards */
    .detail-card {
        padding: 1rem;
    }
    
    .detail-card i {
        font-size: 1.75rem;
    }
    
    .detail-card h4 {
        font-size: 0.85rem;
    }
    
    .detail-card p {
        font-size: 0.9rem;
    }
    
    /* Skills */
    .skill-category h3 {
        font-size: 1.25rem;
    }
    
    .skill-tags {
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Experience Timeline */
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-header h3 {
        font-size: 1.25rem;
    }
    
    .timeline-header h4 {
        font-size: 1rem;
    }
    
    .timeline-duration {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .timeline-tags {
        gap: 0.5rem;
    }
    
    .timeline-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Projects */
    .project-card h3 {
        font-size: 1.25rem;
    }
    
    .project-card p {
        font-size: 0.9rem;
    }
    
    .project-tags {
        gap: 0.5rem;
    }
    
    .project-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Print Button */
    .print-button {
        width: 45px;
        height: 45px;
        bottom: 75px;
        right: 20px;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation */
    nav {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 5rem 0 2rem;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-job-title {
        font-size: 1.25rem;
        min-height: 38px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-social {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::before {
        width: 40px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* About */
    .about-image {
        max-width: 250px;
    }
    
    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .detail-card {
        padding: 0.875rem;
    }
    
    .detail-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-card h4 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .detail-card p {
        font-size: 0.85rem;
    }
    
    /* Badges */
    .badge {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .badge i {
        font-size: 1.25rem;
    }
    
    /* Skills */
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Experience Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
        margin-bottom: 2rem;
    }
    
    .timeline-dot {
        left: 8px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-header h3 {
        font-size: 1.1rem;
    }
    
    .timeline-header h4 {
        font-size: 0.9rem;
    }
    
    .timeline-duration {
        font-size: 0.8rem;
    }
    
    .timeline-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .timeline-tags {
        flex-wrap: wrap;
    }
    
    .timeline-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Projects */
    .project-card {
        padding: 1.5rem;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .project-card p {
        font-size: 0.85rem;
    }
    
    .project-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .contact-card i {
        font-size: 1.75rem;
    }
    
    .contact-card h4 {
        font-size: 0.9rem;
    }
    
    .contact-card p,
    .contact-card a {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
    
    .footer-links h4 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
    
    /* Utility Buttons */
    .back-to-top,
    .print-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .print-button {
        bottom: 65px;
        right: 15px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    html {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-job-title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .skill-tags,
    .project-tags,
    .timeline-tags {
        gap: 0.4rem;
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-job-title {
        font-size: 1.25rem;
    }
    
    .hero-description {
        display: none;
    }
    
    .hero-social {
        margin-top: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print & Large Desktop Optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero {
        padding: 15rem 0 4rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-job-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}
