/* ============================================
   Muhammad Muzammil Khan - Portfolio
   Premium Black & White Theme with Advanced Animations
   ============================================ */

/* ============ CSS Variables ============ */
:root {
    --black: #000000;
    --white: #ffffff;
    --grey-100: #f5f5f5;
    --grey-200: #e5e5e5;
    --grey-300: #d4d4d4;
    --grey-400: #a3a3a3;
    --grey-500: #737373;
    --grey-600: #525252;
    --grey-700: #404040;
    --grey-800: #262626;
    --grey-900: #171717;
    --grey-950: #0a0a0a;
    
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.02);
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --glow-color: rgba(255, 255, 255, 0.5);
    
    --font-primary: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-700) var(--black);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--white);
    color: var(--black);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--grey-600), var(--grey-800));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--grey-500), var(--grey-700));
}

/* ============ Loader ============ */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

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

.loader-logo {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    overflow: hidden;
}

.loader-logo .bracket {
    color: var(--grey-600);
    display: inline-block;
    animation: bracketPulse 1s ease-in-out infinite;
}

.loader-logo .bracket:last-child {
    animation-delay: 0.5s;
}

.loader-logo .logo-text {
    display: inline-block;
    animation: logoGlitch 2s ease-in-out infinite;
}

@keyframes bracketPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes logoGlitch {
    0%, 100% { 
        text-shadow: 0 0 0 transparent;
        transform: translateX(0);
    }
    10% { 
        text-shadow: -2px 0 #fff, 2px 0 #666;
        transform: translateX(-2px);
    }
    20% { 
        text-shadow: 2px 0 #fff, -2px 0 #666;
        transform: translateX(2px);
    }
    30% { 
        text-shadow: 0 0 0 transparent;
        transform: translateX(0);
    }
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--grey-500);
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.loading-char {
    display: inline-block;
    animation: charWave 1.5s ease-in-out infinite;
}

.loading-char:nth-child(1) { animation-delay: 0s; }
.loading-char:nth-child(2) { animation-delay: 0.05s; }
.loading-char:nth-child(3) { animation-delay: 0.1s; }
.loading-char:nth-child(4) { animation-delay: 0.15s; }
.loading-char:nth-child(5) { animation-delay: 0.2s; }
.loading-char:nth-child(6) { animation-delay: 0.25s; }
.loading-char:nth-child(7) { animation-delay: 0.3s; }
.loading-char:nth-child(8) { animation-delay: 0.35s; }
.loading-char:nth-child(9) { animation-delay: 0.4s; }
.loading-char:nth-child(10) { animation-delay: 0.45s; }
.loading-char:nth-child(11) { animation-delay: 0.5s; }
.loading-char:nth-child(12) { animation-delay: 0.55s; }
.loading-char:nth-child(13) { animation-delay: 0.6s; }
.loading-char:nth-child(14) { animation-delay: 0.65s; }
.loading-char:nth-child(15) { animation-delay: 0.7s; }

@keyframes charWave {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-5px);
    }
}

.loader-bar {
    width: 300px;
    height: 2px;
    background: var(--grey-900);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--grey-700), var(--white), var(--grey-700));
    background-size: 200% 100%;
    animation: loaderProgress 2.5s ease-in-out forwards, shimmer 1s linear infinite;
}

@keyframes loaderProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader-percent {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--grey-500);
    margin-top: 15px;
}

/* ============ Custom Cursor ============ */
.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
}

.cursor.active {
    opacity: 1;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.cursor-follower.active {
    opacity: 1;
}

.cursor-follower.hover {
    transform: translate(-50%, -50%) scale(0);
}

@media (max-width: 991px) {
    .cursor, .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}

/* ============ Cyber Grid Background ============ */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* ============ Floating Orbs ============ */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--white) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--grey-400) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--white) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* ============ Navbar ============ */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 2px;
    position: relative;
}

.brand-bracket {
    color: var(--grey-500);
    transition: color var(--transition-normal);
}

.navbar-brand:hover .brand-bracket {
    color: var(--white);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-400) !important;
    margin: 0 15px;
    padding: 8px 0 !important;
    position: relative;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.nav-link span {
    display: inline-block;
    position: relative;
}

.nav-link span::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--white);
}

.nav-link:hover span,
.nav-link.active span {
    animation: navHover 0.3s ease forwards;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 30px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all var(--transition-normal);
}

.toggler-line:nth-child(1) { top: 8px; }
.toggler-line:nth-child(2) { top: 50%; transform: translate(-50%, -50%); }
.toggler-line:nth-child(3) { bottom: 8px; }

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* ============ Hero Section ============ */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(15vw, 25vw, 400px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-400);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
}

.hero-name .line {
    display: block;
    overflow: hidden;
}

.hero-name .word {
    display: inline-block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: wordReveal 1s ease forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero-name .line-1 .word { animation-delay: 0.7s; }
.hero-name .line-2 .word { animation-delay: 0.9s; }
.hero-name .line-3 .word { animation-delay: 1.1s; }

@keyframes wordReveal {
    0% { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.3s;
    opacity: 0;
}

.role-line {
    width: 50px;
    height: 2px;
    background: var(--grey-600);
}

.role-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--grey-300);
}

.static-text {
    color: var(--grey-500);
    margin-right: 8px;
}

.dynamic-text {
    color: var(--white);
    position: relative;
}

.cursor-blink {
    color: var(--white);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--grey-400);
    max-width: 500px;
    margin-bottom: 35px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.highlight-text {
    color: var(--white);
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineExpand 1s ease forwards;
    animation-delay: 2s;
}

@keyframes lineExpand {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.7s;
    opacity: 0;
}

.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-primary-custom {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
}

.btn-primary-custom .btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--black);
    transition: left var(--transition-normal);
    z-index: 0;
}

.btn-primary-custom .btn-text,
.btn-primary-custom .btn-icon {
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.btn-primary-custom:hover .btn-bg {
    left: 0;
}

.btn-primary-custom:hover .btn-text,
.btn-primary-custom:hover .btn-icon {
    color: var(--white);
}

.btn-primary-custom:hover {
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--grey-600);
}

.btn-secondary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: width var(--transition-normal);
    z-index: 0;
}

.btn-secondary-custom .btn-text,
.btn-secondary-custom .btn-icon {
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.btn-secondary-custom:hover::before {
    width: 100%;
}

.btn-secondary-custom:hover {
    border-color: var(--white);
}

.btn-secondary-custom:hover .btn-text,
.btn-secondary-custom:hover .btn-icon {
    color: var(--black);
}

/* Hero Social */
.hero-social {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.9s;
    opacity: 0;
}

.social-link {
    width: 55px;
    height: 55px;
    border: 1px solid var(--grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-400);
    font-size: 1.3rem;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
}

.social-link:hover::before {
    width: 150%;
    height: 150%;
    border-radius: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.social-link:hover {
    border-color: var(--white);
    transform: translateY(-5px);
}

.social-link:hover i {
    color: var(--black);
    transform: scale(1.2);
}

.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    color: var(--black);
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--white);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Hero Visual - Terminal */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.terminal-window {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

.terminal-header {
    background: rgba(30, 30, 30, 0.9);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-window:hover .terminal-dot {
    animation: dotBounce 0.5s ease;
}

.terminal-dot.red { animation-delay: 0s; }
.terminal-dot.yellow { animation-delay: 0.1s; }
.terminal-dot.green { animation-delay: 0.2s; }

@keyframes dotBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--grey-500);
    margin-left: auto;
}

.terminal-body {
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 250px;
}

.terminal-line,
.terminal-output {
    opacity: 0;
    transform: translateX(-20px);
    animation: terminalType 0.5s ease forwards;
}

.terminal-line[data-delay="0"] { animation-delay: 2s; }
.terminal-output[data-delay="1"] { animation-delay: 2.5s; }
.terminal-line[data-delay="2"] { animation-delay: 3s; }
.terminal-output[data-delay="3"] { animation-delay: 3.5s; }
.terminal-output[data-delay="4"] { animation-delay: 4s; }
.terminal-line[data-delay="5"] { animation-delay: 4.5s; }
.terminal-output[data-delay="6"] { animation-delay: 5s; }
.terminal-line[data-delay="7"] { animation-delay: 5.5s; }

@keyframes terminalType {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.terminal-line {
    margin-bottom: 10px;
    color: var(--grey-300);
}

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

.command {
    color: var(--grey-400);
}

.terminal-output {
    color: var(--grey-500);
    padding-left: 25px;
    margin-bottom: 10px;
}

.terminal-output.success {
    color: var(--white);
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--grey-500);
    animation: floatElement 4s ease-in-out infinite;
}

.floating-element.el-1 {
    top: -20px;
    right: 50px;
    animation-delay: 0s;
}

.floating-element.el-2 {
    bottom: 50px;
    right: -30px;
    animation-delay: 1s;
}

.floating-element.el-3 {
    bottom: 100px;
    left: -40px;
    animation-delay: 2s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2.5s;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--grey-600);
    border-radius: 15px;
    position: relative;
}

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

@keyframes wheelScroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 25px; }
}

.scroll-text {
    display: flex;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--grey-600);
    letter-spacing: 2px;
}

.scroll-text span {
    animation: scrollTextWave 2s ease-in-out infinite;
}

.scroll-text span:nth-child(1) { animation-delay: 0s; }
.scroll-text span:nth-child(2) { animation-delay: 0.1s; }
.scroll-text span:nth-child(3) { animation-delay: 0.2s; }
.scroll-text span:nth-child(4) { animation-delay: 0.3s; }
.scroll-text span:nth-child(5) { animation-delay: 0.4s; }
.scroll-text span:nth-child(6) { animation-delay: 0.5s; }

@keyframes scrollTextWave {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* ============ Animation Keyframes ============ */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============ Section Styles ============ */
section {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.section-bg-text {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--grey-600);
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.section-title .word {
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    margin: 30px auto 0;
}

/* ============ Reveal Animations ============ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ============ About Section ============ */
#about {
    background: var(--bg-secondary);
}

.about-image-wrapper {
    position: relative;
    padding: 40px;
}

.about-image {
    position: relative;
}

/* Profile Image Container */
.image-container {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--grey-900), var(--grey-950));
}

/* Actual Profile Image */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

.about-image:hover .profile-img {
    filter: grayscale(50%) contrast(1.2);
    transform: scale(1.05);
}

/* Image Glitch Overlay */
.image-glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover .image-glitch-overlay {
    opacity: 1;
    animation: glitchOverlay 0.3s ease;
}

@keyframes glitchOverlay {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--grey-900), var(--grey-950));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--grey-800);
    transition: all var(--transition-slow);
}

.about-image:hover .image-placeholder i {
    transform: scale(1.1);
    color: var(--grey-700);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--grey-700);
    pointer-events: none;
}

.image-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
}

.corner-tl { top: -15px; left: -15px; border-right: none; border-bottom: none; }
.corner-tr { top: -15px; right: 5px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 5px; left: -15px; border-right: none; border-top: none; }
.corner-br { bottom: 5px; right: 5px; border-left: none; border-top: none; }

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border-color);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    animation: cardFloat 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 10%;
    left: -30px;
    animation-delay: 2s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--grey-400);
}

.card-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--grey-500);
    text-transform: uppercase;
}

/* About Content */
.about-content {
    padding-left: 30px;
}

.about-subtitle {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--white), var(--grey-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    margin-bottom: 30px;
}

.about-text p {
    color: var(--grey-400);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--white);
}

/* About Info */
.about-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.info-icon {
    width: 40px;
    color: var(--grey-500);
}

.info-label {
    font-family: var(--font-mono);
    color: var(--grey-500);
    min-width: 100px;
}

.info-value {
    color: var(--grey-300);
    flex: 1;
}

/* About Stats */
.about-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-box:hover {
    border-color: var(--white);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--grey-500);
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

.stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: width 1s ease;
}

.stat-box:hover .stat-bar {
    width: 100%;
}

/* ============ Skills Section ============ */
#skills {
    background: var(--bg-primary);
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.skill-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--grey-800), var(--grey-900));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    position: relative;
}

.skill-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--white), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.skill-card:hover .skill-icon::before {
    opacity: 1;
}

.skill-card-header h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-description {
    font-size: 0.9rem;
    color: var(--grey-500);
    margin-bottom: 30px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.skill-percent {
    color: var(--grey-500);
}

.skill-bar {
    height: 4px;
    background: var(--grey-800);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--grey-600), var(--white));
    border-radius: 2px;
    width: 0;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-glow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.skill-card:hover .progress-glow {
    opacity: 0.5;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.skill-card:hover .card-glow {
    opacity: 1;
}

/* Tools Marquee */
.tools-marquee {
    margin-top: 80px;
    overflow: hidden;
    padding: 30px 0;
    background: linear-gradient(90deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

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

.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--grey-400);
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.tool-tag:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.tool-tag i {
    font-size: 1.1rem;
}

/* OS Section */
.os-section {
    margin-top: 80px;
}

.subsection-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--grey-400);
}

.subsection-title .line {
    width: 60px;
    height: 1px;
    background: var(--grey-700);
}

.os-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.os-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.os-item:hover {
    border-color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.os-icon {
    font-size: 2.5rem;
    color: var(--grey-400);
    transition: all var(--transition-normal);
}

.os-item:hover .os-icon {
    color: var(--white);
    transform: scale(1.2);
}

.os-item span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-500);
}

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

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

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--grey-800);
}

.timeline-progress {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--white), var(--grey-600));
    transition: height 1s ease;
}

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

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 30px;
}

.marker-dot {
    width: 30px;
    height: 30px;
    background: var(--bg-primary);
    border: 2px solid var(--grey-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-normal);
}

.timeline-item:hover .marker-dot {
    border-color: var(--white);
    background: var(--white);
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: markerPulse 2s ease-out infinite;
    opacity: 0;
}

.timeline-item:hover .marker-pulse {
    opacity: 1;
}

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--grey-500);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-badge {
    background: var(--white);
    color: var(--black);
    padding: 6px 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--grey-400);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--grey-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

.list-icon {
    color: var(--grey-600);
    flex-shrink: 0;
    margin-top: 5px;
}

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

.project-card,
.lab-projects {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.project-card:hover,
.lab-projects:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--grey-800), var(--grey-900));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--grey-400);
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-client {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-500);
    margin-bottom: 20px;
}

.project-description {
    color: var(--grey-400);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.project-highlights {
    list-style: none;
    margin-bottom: 25px;
}

.project-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--grey-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

.project-highlights li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 15px;
    background: var(--grey-900);
    border: 1px solid var(--border-color);
    color: var(--grey-400);
    transition: all var(--transition-normal);
}

.project-tags span:hover {
    border-color: var(--white);
    color: var(--white);
}

.project-footer {
    display: flex;
    align-items: center;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-500);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lab Projects */
.lab-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.lab-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--grey-800), var(--grey-900));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--grey-400);
}

.lab-header h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.platform-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--grey-500);
}

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

.lab-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.lab-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.lab-item-icon {
    width: 45px;
    height: 45px;
    background: var(--grey-900);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--grey-500);
}

.lab-item-content h5 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.lab-item-content p {
    color: var(--grey-500);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============ Certifications Section ============ */
#certifications {
    background: var(--bg-secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.cert-card:hover {
    border-color: var(--white);
    transform: translateY(-10px);
}

.cert-icon {
    width: 90px;
    height: 90px;
    border: 2px solid var(--grey-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--grey-400);
    position: relative;
    transition: all var(--transition-normal);
}

.cert-card:hover .cert-icon {
    border-color: var(--white);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cert-card:hover .icon-glow {
    opacity: 1;
}

.cert-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-500);
}

.cert-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    transition: width var(--transition-normal);
}

.cert-card:hover .cert-line {
    width: 100%;
}
/* ============ Certificate Link Button Styles ============ */
.cert-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--grey-700);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    z-index: 1;
}

.cert-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left var(--transition-normal);
    z-index: -1;
}

.cert-link:hover {
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.cert-link:hover::before {
    left: 0;
}

/* Certificate Card hover mein link show karna */
.cert-card {
    position: relative;
}

.cert-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.cert-card:hover .cert-link {
    opacity: 1;
    transform: translateY(0);
}

/* Alternative Style - Icon ke saath */
.cert-link i {
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.cert-link:hover i {
    transform: translateX(5px);
}

/* Animated Background Effect */
.cert-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cert-link:hover::after {
    width: 300px;
    height: 300px;
}
/* ============ Education Section ============ */
#education {
    background: var(--bg-primary);
}

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

.edu-card {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.edu-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
}

.edu-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.marker-line {
    width: 2px;
    height: 30px;
    background: var(--grey-700);
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: var(--grey-700);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.edu-card:hover .marker-dot {
    background: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.edu-content h5 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.edu-content p {
    color: var(--grey-400);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.edu-location {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--grey-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============ Interests Section ============ */
#interests {
    background: var(--bg-secondary);
}

.interest-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px 35px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.interest-card:hover {
    border-color: var(--white);
    transform: translateY(-15px);
}

.interest-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--grey-400);
    position: relative;
    transition: all var(--transition-normal);
}

.icon-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--grey-700);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.interest-card:hover .icon-ring {
    border-color: var(--white);
    transform: scale(1.3);
    opacity: 0.5;
}

.interest-card:hover .interest-icon {
    color: var(--white);
    transform: scale(1.2);
}

.interest-card h5 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.interest-card p {
    color: var(--grey-500);
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.contact-info {
    height: 100%;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--grey-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-cards {
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(15px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    border: 1px solid var(--grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--grey-400);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--grey-500);
    display: block;
    margin-bottom: 5px;
}

.contact-details a,
.contact-details span {
    color: var(--grey-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--white);
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-social a {
    width: 55px;
    height: 55px;
    border: 1px solid var(--grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-400);
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.contact-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
}

.contact-social a:hover::before {
    width: 150%;
    height: 150%;
    border-radius: 0;
}

.contact-social a:hover {
    border-color: var(--white);
}

.contact-social a i {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.contact-social a:hover i {
    color: var(--black);
    transform: scale(1.2);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
}

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

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
}

.label-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-400);
}

.form-control {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 18px 20px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--white);
}

.form-control::placeholder {
    color: var(--grey-600);
}

.input-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width var(--transition-normal);
}

.form-control:focus ~ .input-focus {
    width: 100%;
}

textarea.form-control {
    resize: none;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--black);
    transition: left var(--transition-normal);
}

.btn-submit .btn-text,
.btn-submit .btn-icon {
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.btn-submit .btn-loading {
    display: none;
    position: relative;
    z-index: 1;
}

.btn-submit:hover::before {
    left: 0;
}

.btn-submit:hover .btn-text,
.btn-submit:hover .btn-icon {
    color: var(--white);
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: block;
}

/* ============ Footer ============ */
#footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-500);
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--grey-500);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-500);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--grey-600);
    margin-bottom: 10px;
}

.made-with i {
    color: var(--grey-400);
}

.made-with i.pulse {
    animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============ Back to Top ============ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--white);
    color: var(--black);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition-normal);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.3s ease;
}

/* ============ Responsive ============ */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-name .word {
        font-size: 5.5rem;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-name .word {
        font-size: 4rem;
    }
    
    .terminal-window {
        transform: scale(0.9);
    }
    
    .nav-link {
        margin: 0 10px;
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    /* Navbar Mobile */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        padding: 100px 30px 30px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 998;
    }
    
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-collapse .navbar-nav {
        text-align: center;
        width: 100%;
    }
    
    .navbar-collapse .nav-item {
        margin: 15px 0;
    }
    
    .navbar-collapse .nav-link {
        font-size: 1.5rem;
        margin: 0;
        padding: 15px 0 !important;
    }
    
    .navbar-toggler {
        z-index: 9999;
    }
    
    /* Hero */
    .hero-name .word {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .hero-role {
        flex-wrap: wrap;
    }
    
    .role-text {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-social {
        justify-content: flex-start;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    /* About */
    .about-content {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .about-image-wrapper {
        padding: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
    
    .about-info {
        padding: 20px;
    }
    
    .info-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .info-label {
        min-width: 80px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Skills */
    .skill-card {
        padding: 30px;
    }
    
    .skill-card-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .os-grid {
        gap: 15px;
    }
    
    .os-item {
        padding: 20px 25px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-line {
        left: 10px;
    }
    
    .timeline-marker {
        left: -40px;
    }
    
    .marker-dot {
        width: 24px;
        height: 24px;
    }
    
    .timeline-content {
        padding: 30px;
    }
    
    /* Projects */
    .project-card,
    .lab-projects {
        padding: 30px;
    }
    
    .lab-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Certifications */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-card {
        padding: 30px 20px;
    }
    
    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    /* Interests */
    .interest-card {
        padding: 40px 25px;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 40px;
    }
    
    .contact-heading {
        font-size: 1.6rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .section-bg-text {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Mobile Devices (576px to 767px) */
@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
        gap: 10px;
    }
    
    .section-number {
        font-size: 0.9rem;
    }
    
    /* Hero */
    #hero {
        padding-top: 100px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 8px 12px;
        margin-bottom: 20px;
    }
    
    .hero-name .word {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .outline-text {
        -webkit-text-stroke: 1px var(--white);
    }
    
    .hero-role {
        margin-bottom: 20px;
    }
    
    .role-line {
        width: 30px;
    }
    
    .role-text {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 0.85rem;
    }
    
    .hero-social {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .social-tooltip {
        display: none;
    }
    
    /* About */
    .about-image-wrapper {
        padding: 15px;
        max-width: 300px;
    }
    
    .image-placeholder i {
        font-size: 6rem;
    }
    
    .about-subtitle {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .info-item {
        padding: 12px 0;
    }
    
    .info-icon {
        width: 30px;
        font-size: 0.9rem;
    }
    
    .info-label {
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .stat-box {
        min-width: 90px;
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Skills */
    .skill-card {
        padding: 25px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .skill-card-header h4 {
        font-size: 1.1rem;
    }
    
    .skill-description {
        font-size: 0.85rem;
    }
    
    .skill-info {
        font-size: 0.8rem;
    }
    
    .tools-marquee {
        margin-top: 50px;
        padding: 20px 0;
    }
    
    .tool-tag {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .os-section {
        margin-top: 50px;
    }
    
    .os-item {
        padding: 15px 20px;
    }
    
    .os-icon {
        font-size: 2rem;
    }
    
    .os-item span {
        font-size: 0.75rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-line {
        left: 5px;
    }
    
    .timeline-marker {
        left: -25px;
    }
    
    .marker-dot {
        width: 18px;
        height: 18px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-company {
        font-size: 1rem;
    }
    
    .timeline-list li {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    /* Projects */
    .project-card,
    .lab-projects {
        padding: 25px;
    }
    
    .project-number {
        font-size: 3rem;
    }
    
    .project-icon,
    .lab-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-client {
        font-size: 0.8rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-highlights li {
        font-size: 0.85rem;
    }
    
    .project-tags span {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .lab-header h4 {
        font-size: 1rem;
    }
    
    .lab-item-icon {
        width: 40px;
        height: 40px;
    }
    
    .lab-item-content h5 {
        font-size: 0.85rem;
    }
    
    .lab-item-content p {
        font-size: 0.8rem;
    }
    
    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .cert-card {
        padding: 25px 15px;
    }
    
    .cert-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cert-title {
        font-size: 0.85rem;
    }
    
    .cert-issuer {
        font-size: 0.75rem;
    }
    
    /* Education */
    .edu-card {
        padding: 20px;
        gap: 15px;
    }
    
    .edu-content h5 {
        font-size: 1rem;
    }
    
    .edu-content p {
        font-size: 0.85rem;
    }
    
    .edu-location {
        font-size: 0.75rem;
    }
    
    /* Interests */
    .interest-card {
        padding: 30px 20px;
    }
    
    .interest-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .interest-card h5 {
        font-size: 1rem;
    }
    
    .interest-card p {
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-heading {
        font-size: 1.4rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 20px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .contact-label {
        font-size: 0.75rem;
    }
    
    .contact-details a,
    .contact-details span {
        font-size: 0.85rem;
    }
    
    .contact-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .form-control {
        padding: 14px 15px;
        font-size: 0.9rem;
    }
    
    .label-text {
        font-size: 0.8rem;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 0.85rem;
    }
    
    /* Footer */
    #footer {
        padding: 50px 0 30px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-brand p {
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    /* Back to Top */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .hero-name .word {
        font-size: 1.8rem;
    }
    
    .hero-name .line {
        margin-bottom: 5px;
    }
    
    /* Certifications 1 column on very small screens */
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    /* About info stacked */
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-icon {
        display: none;
    }
    
    /* Stats smaller */
    .about-stats {
        flex-direction: column;
    }
    
    .stat-box {
        width: 100%;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-name .word {
        font-size: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .loader-wrapper,
    .cursor,
    .cursor-follower,
    .cyber-grid,
    .floating-orbs,
    .navbar,
    #backToTop,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        padding: 30px 0;
        break-inside: avoid;
    }
}
