/**
 * Main Styles - JonitoDEV Portfolio
 * A soft, calming, and elegant portfolio design
 * Theme: Serene & Professional
 */

/* =====================================================
   CSS Variables - Soft & Calm Palette
   ===================================================== */
:root {
    /* Primary colors - Soft sage green */
    --primary: #7C9A82;
    --primary-dark: #5C7A62;
    --primary-light: rgba(124, 154, 130, 0.15);
    --primary-glow: rgba(124, 154, 130, 0.35);
    
    /* Secondary - Warm terracotta */
    --secondary: #C9A87C;
    --secondary-dark: #B8956B;
    --secondary-light: rgba(201, 168, 124, 0.15);
    
    /* Accent colors - Soft and harmonious */
    --accent-blush: #E8B4B8;
    --accent-lavender: #B4A7D6;
    --accent-mint: #A8D5BA;
    --accent-peach: #F5C9B2;
    --accent-sky: #A8C5D6;
    
    /* Background - Warm cream tones */
    --bg-dark: #FAF7F2;
    --bg-darker: #F5F0E8;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.5);
    
    /* Text colors */
    --text-primary: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-muted: #9A9A9A;
    
    /* Border colors */
    --border-color: rgba(124, 154, 130, 0.15);
    --border-glow: rgba(124, 154, 130, 0.25);
    
    /* Gradients - Soft and dreamy */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent-mint) 100%);
    --gradient-warm: linear-gradient(135deg, var(--secondary) 0%, var(--accent-peach) 100%);
    --gradient-soft: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    --gradient-hero: linear-gradient(135deg, #E8E4DC 0%, #F5F0E8 50%, #E8DED4 100%);
    
    /* Typography - Elegant fonts */
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-accent: 'Cormorant Garamond', serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions - Smooth and gentle */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows - Soft and diffused */
    --shadow-sm: 0 2px 12px rgba(61, 61, 61, 0.06);
    --shadow-md: 0 8px 30px rgba(61, 61, 61, 0.08);
    --shadow-lg: 0 20px 50px rgba(61, 61, 61, 0.1);
    --shadow-glow: 0 10px 40px var(--primary-glow);
    --shadow-soft: 0 4px 20px rgba(124, 154, 130, 0.12);
    
    /* Border radius - Softer edges */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* Dark theme - Cozy evening mode */
[data-theme="dark"] {
    --primary: #9BB5A0;
    --primary-dark: #7C9A82;
    --primary-light: rgba(155, 181, 160, 0.2);
    
    --secondary: #D4B896;
    --secondary-light: rgba(212, 184, 150, 0.2);
    
    --bg-dark: #1E1E1E;
    --bg-darker: #141414;
    --bg-card: rgba(40, 40, 40, 0.8);
    --bg-card-hover: rgba(50, 50, 50, 0.9);
    --bg-glass: rgba(40, 40, 40, 0.6);
    
    --text-primary: #F5F0E8;
    --text-secondary: #B8B8B8;
    --text-muted: #808080;
    
    --border-color: rgba(155, 181, 160, 0.15);
    
    --gradient-hero: linear-gradient(135deg, #1E1E1E 0%, #252525 50%, #1A1A1A 100%);
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--primary-light) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-light) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* =====================================================
   Container
   ===================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Section wrapper to prevent overflow */
.section {
    overflow-x: hidden;
    width: 100%;
}

/* =====================================================
   Preloader - Elegant fade
   ===================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-accent);
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.preloader-logo .logo-bracket {
    color: var(--primary);
}

.preloader-logo .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    animation: preloaderProgress 2s ease-in-out forwards;
}

@keyframes preloaderProgress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* =====================================================
   Custom Cursor - Subtle and elegant
   ===================================================== */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    z-index: 9998;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary);
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    border-color: var(--secondary);
    opacity: 0.8;
}

@media (max-width: 992px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* =====================================================
   Navigation - Clean and minimal
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(0);
    transition: var(--transition-base);
}

.navbar.scrolled::before {
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled::before {
    background: rgba(30, 30, 30, 0.9);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    z-index: 10;
}

.navbar-brand img {
    height: 40px;
}

.brand-logo {
    font-family: var(--font-accent);
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.brand-logo .bracket {
    color: var(--primary);
    font-weight: 400;
}

.brand-logo .name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.navbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px auto;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-left: 1px solid var(--border-color);
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 14px 0;
        width: 100%;
    }
    
    .navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .navbar-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   Buttons - Soft and inviting
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-soft);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   Hero Section - Elegant and welcoming
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-hero);
}

.particles-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Decorative shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
    border-radius: 50%;
    animation: gentleFloat 15s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 60%);
    border-radius: 50%;
    animation: gentleFloat 12s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    overflow: visible;
}

.hero-text {
    order: 0;
}

.hero-visual {
    order: 0;
}

.hero-greeting {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 8px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 36px;
}

.typed-text {
    color: var(--primary);
    font-weight: 600;
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.9;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: var(--shadow-soft);
}

/* Code Window - Soft look */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: gentleFloat 8s ease-in-out infinite;
    backdrop-filter: blur(20px);
}

.code-header {
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .code-header {
    background: rgba(0, 0, 0, 0.2);
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .dot.red { background: #E8B4B8; }
.code-header .dot.yellow { background: #C9A87C; }
.code-header .dot.green { background: #A8D5BA; }

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.code-body {
    padding: 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 2;
}

.code-body code {
    display: block;
}

.code-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.code-body .keyword { color: var(--accent-lavender); }
.code-body .variable { color: var(--accent-blush); }
.code-body .property { color: var(--secondary); }
.code-body .string { color: var(--primary); }
.code-body .method { color: var(--accent-sky); }

/* Hide scroll indicator globally */
.scroll-indicator,
.mouse,
.mouse-wheel {
    display: none !important;
}

/* Hero Responsive */
@media (max-width: 992px) {
    .hero-content .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 0;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 0;
    }
    
    .hero-description {
        margin: 0 auto 36px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .code-window {
        max-width: 380px;
    }
}

/* =====================================================
   Sections Base - Clean and spacious
   ===================================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.section-title {
    font-family: var(--font-accent);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -0.5px;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* =====================================================
   About Section - Warm and personal
   ===================================================== */
.about {
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.image-decoration {
    position: absolute;
    inset: -16px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.25;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--text-muted);
    border-radius: var(--radius-xl);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 40px;
    font-weight: 500;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding-top: 20px;
}

.about-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 18px;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-secondary);
}

.info-item i {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.about-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Skills Section - Clean cards
   ===================================================== */
.skills {
    background: var(--bg-dark);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.skill-tab {
    padding: 12px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.skill-tab:hover,
.skill-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.skill-card.hidden {
    display: none;
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition-base);
}

.skill-card:hover .skill-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
}

.skill-progress {
    display: flex;
    align-items: center;
    gap: 14px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-darker);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.2s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    min-width: 42px;
}

/* =====================================================
   Services Section - Elegant cards
   ===================================================== */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 28px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.service-features li i {
    color: var(--accent-mint);
    font-size: 12px;
}

/* =====================================================
   Projects Section - Clean gallery
   ===================================================== */
.projects {
    background: var(--bg-dark);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-image .placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 61, 61, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 14px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.project-content {
    padding: 28px;
}

.project-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.project-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 14px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Experience Timeline - Clean and minimal
   ===================================================== */
.experience {
    background: var(--bg-darker);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
}

.marker-dot {
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: block;
    box-shadow: var(--shadow-soft);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 18px;
}

.timeline-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-company,
.timeline-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 20px;
}

.timeline-company i,
.timeline-location i {
    color: var(--primary);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.current-badge {
    background: var(--accent-mint);
    color: #3D3D3D;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.timeline-desc {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.timeline-list li i {
    color: var(--accent-mint);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 8px;
    }
    
    .timeline-item {
        padding-left: 42px;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .timeline-header {
        flex-direction: column;
    }
}

/* =====================================================
   Education Section - Card style
   ===================================================== */
.education {
    background: var(--bg-dark);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    gap: 28px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.education-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.edu-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.edu-content {
    flex: 1;
}

.edu-date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.edu-degree {
    font-size: 18px;
    margin-bottom: 10px;
}

.edu-institution {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.edu-institution i {
    color: var(--primary);
}

.edu-gpa {
    display: inline-block;
    background: var(--accent-mint);
    color: #3D3D3D;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.edu-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 576px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .edu-icon {
        margin: 0 auto;
    }
    
    .edu-institution {
        justify-content: center;
    }
}

/* =====================================================
   Testimonials Section - Elegant slider
   ===================================================== */
.testimonials {
    background: var(--bg-darker);
    overflow: hidden;
}

.testimonials-slider {
    padding: 20px 0 70px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px;
    margin: 10px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.testimonial-quote {
    font-size: 44px;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-rating {
    margin-bottom: 28px;
}

.stars {
    display: flex;
    gap: 6px;
}

.stars i {
    color: var(--secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: 3px solid var(--primary-light);
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.swiper-pagination {
    bottom: 25px !important;
    padding-bottom: 10px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    opacity: 1;
    transition: var(--transition-base);
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 32px;
    border-radius: var(--radius-full);
}

/* =====================================================
   Blog Section - Clean cards
   ===================================================== */
.blog {
    background: var(--bg-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-image .placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
}

.blog-category {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 32px;
}

.blog-meta {
    display: flex;
    gap: 22px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.blog-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.blog-title {
    font-size: 20px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-primary);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.8;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.blog-link i {
    transition: var(--transition-base);
}

.blog-link:hover i {
    transform: translateX(6px);
}

/* =====================================================
   Contact Section - Warm and inviting
   ===================================================== */
.contact {
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-info h3 {
    font-family: var(--font-accent);
    font-size: 36px;
    margin-bottom: 18px;
    font-weight: 500;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 44px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 44px;
}

.contact-item {
    display: flex;
    gap: 22px;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.item-content span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-content a,
.item-content p {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.contact-info .social-links {
    display: flex;
    gap: 14px;
}

.contact-info .social-links a {
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.contact-info .social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px;
    backdrop-filter: blur(10px);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.contact-form .form-group {
    margin-bottom: 26px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 22px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
}

.form-response {
    margin-top: 22px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    display: none;
}

.form-response.success {
    display: block;
    background: rgba(168, 213, 186, 0.2);
    border: 1px solid var(--accent-mint);
    color: #5C7A62;
}

.form-response.error {
    display: block;
    background: rgba(232, 180, 184, 0.2);
    border: 1px solid var(--accent-blush);
    color: #B87A7E;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Footer - Minimal and elegant
   ===================================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 90px 0 35px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-brand .brand-logo {
    font-size: 30px;
    margin-bottom: 18px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
}

.footer-social .social-links a {
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.footer-social .social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
    transition: var(--transition-base);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom .heart {
    color: var(--accent-blush);
}

.footer-credits a {
    color: var(--text-muted);
}

.footer-credits a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-social .social-links,
    .footer-contact {
        justify-content: flex-start;
    }
    
    .footer-contact a {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: left;
    }
}

/* =====================================================
   Scroll to Top - Soft button
   ===================================================== */
.scroll-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.scroll-top:active {
    transform: translateY(-3px) scale(0.98);
}

/* =====================================================
   Empty State
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 70px;
    margin-bottom: 24px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 18px;
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* =====================================================
   Comprehensive Responsive Styles
   ===================================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    :root {
        --section-padding: 100px;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    :root {
        --section-padding: 90px;
    }
    
    .container {
        max-width: 960px;
    }
    
    .hero-content .container {
        gap: 60px;
    }
    
    .about-grid {
        gap: 60px;
    }
    
    .contact-grid {
        gap: 50px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Navigation */
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 24px;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 17px;
        padding: 14px 0;
        width: 100%;
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
    }
    
    .navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 14px;
    }
    
    .navbar-actions .btn {
        width: 100%;
    }
    
    /* Hero */
    .hero-content .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text {
        order: 0;
        text-align: center;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 0;
        text-align: left;
    }
    
    .code-window {
        text-align: left;
    }
    
    .code-body {
        text-align: left;
    }
    
    .hero-description {
        margin: 0 auto 36px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .code-window {
        max-width: 420px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    /* Cursor - hide on tablet/mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-label {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: clamp(28px, 5vw, 40px);
    }
    
    /* Hero */
    .hero {
        padding-top: 70px;
    }
    
    .hero-greeting {
        font-size: 14px;
        padding: 6px 16px;
    }
    
    .hero-title {
        font-size: clamp(36px, 8vw, 56px);
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 36px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-social {
        gap: 12px;
    }
    
    .social-link {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    
    .code-window {
        max-width: 100%;
    }
    
    .code-body {
        padding: 20px;
        font-size: 12px;
        line-height: 1.7;
    }
    
    /* About */
    .stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .about-text {
        font-size: 15px;
    }
    
    .about-cta {
        flex-direction: column;
    }
    
    .about-cta .btn {
        width: 100%;
    }
    
    /* Skills */
    .skills-tabs {
        gap: 8px;
        margin-bottom: 40px;
    }
    
    .skill-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .skill-card {
        padding: 24px 18px;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .skill-name {
        font-size: 14px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    /* Projects */
    .projects-filter {
        gap: 8px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-content {
        padding: 24px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 8px;
    }
    
    .timeline-item {
        padding-left: 40px;
        padding-bottom: 40px;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .timeline-content {
        padding: 24px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .timeline-title {
        font-size: 18px;
    }
    
    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-card {
        padding: 28px;
        gap: 20px;
    }
    
    .edu-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .edu-degree {
        font-size: 17px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 32px;
    }
    
    .testimonial-quote {
        font-size: 36px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-content {
        padding: 24px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    /* Contact */
    .contact-info h3 {
        font-size: 28px;
    }
    
    .contact-info > p {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .contact-details {
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .item-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
    }
    
    /* Footer */
    .footer {
        padding: 70px 0 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand .brand-logo {
        justify-content: flex-start;
    }
    
    .footer-links ul {
        gap: 10px;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-social .social-links {
        justify-content: flex-start;
    }
    
    .footer-contact a {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: left;
        gap: 12px;
    }
    
    /* Scroll Top */
    .scroll-top {
        width: 48px;
        height: 48px;
        bottom: 24px;
    right: 4px;
        font-size: 16px;
    }
    
    .progress-ring {
        width: 56px;
        height: 56px;
    }
}

/* Mobile Landscape / Large Mobile */
@media (max-width: 576px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
    }
    
    /* Navigation */
    .navbar {
        height: 70px;
    }
    
    .brand-logo {
        font-size: 22px;
    }
    
    .navbar-menu {
        width: 90%;
        max-width: 280px;
        padding: 90px 24px 32px;
        background: var(--bg-card);
    }
    
    .navbar-menu .nav-link {
        color: var(--text-primary);
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: 100vh;
        padding-bottom: 60px;
    }
    
    .hero-content .container {
        gap: 50px;
    }
    
    .hero-visual {
        margin-top: 0;
    }
    
    .hero-greeting {
        font-size: 13px;
        margin-bottom: 12px;
        display: inline-block;
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 24px;
        max-width: 100%;
    }
    
    .code-window {
        max-width: 100%;
        overflow: hidden;
        animation: none !important;
    }
    
    .code-header {
        padding: 12px 16px;
    }
    
    .code-header .dot {
        width: 9px;
        height: 9px;
    }
    
    .code-title {
        font-size: 11px;
    }
    
    .code-body {
        padding: 16px;
        font-size: 10px;
        line-height: 1.7;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-align: left;
    }
    
    .code-body pre {
        white-space: pre;
        overflow-x: auto;
        text-align: left;
    }
    
    .code-body code {
        text-align: left;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-cta {
        margin-top: 40px;
    }
    
    /* About */
    .placeholder-image {
        font-size: 80px;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
    
    .stat-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 20px 18px;
        gap: 16px;
        text-align: left;
        width: 100%;
    }
    
    .stat-number {
        font-size: 32px;
        margin-bottom: 0;
        min-width: 60px;
    }
    
    .stat-label {
        margin-top: 2px;
        font-size: 12px;
    }
    
    .about-info {
        gap: 16px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .info-item {
        gap: 14px;
        flex-wrap: wrap;
    }
    
    .info-item i {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
    
    .info-item span {
        word-break: break-word;
        flex: 1;
        min-width: 0;
    }
    
    /* Skills */
    .skills-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 12px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 30px;
    }
    
    .skills-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .skill-tab {
        flex-shrink: 0;
        padding: 11px 20px;
        white-space: nowrap;
        font-size: 13px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
    }
    
    .skill-card {
        padding: 22px 16px;
        min-height: auto;
        text-align: center;
    }
    
    .skill-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin-bottom: 14px;
    }
    
    .skill-name {
        font-size: 13px;
        margin-bottom: 12px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .service-card {
        padding: 30px 24px;
        width: 100%;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .service-desc {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .service-features {
        margin-top: 16px;
    }
    
    .service-features li {
        font-size: 13px;
        padding: 8px 0;
    }
    
    /* Projects */
    .projects-filter {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 12px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 30px;
    }
    
    .projects-filter::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 11px 20px;
        font-size: 13px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .project-image {
        aspect-ratio: 16/10;
        overflow: hidden;
    }
    
    .project-content {
        padding: 22px 20px;
    }
    
    .project-category {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .project-title {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .project-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .project-tech {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .tech-tag {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 0;
        max-width: 100%;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 44px;
    }
    
    .timeline-marker {
        left: 4px;
    }
    
    .timeline-content {
        padding: 22px 18px;
    }
    
    .timeline-header {
        gap: 12px;
    }
    
    .timeline-title {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .timeline-company,
    .timeline-location {
        font-size: 13px;
        display: block;
        margin-bottom: 6px;
    }
    
    .timeline-date {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .timeline-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-top: 12px;
    }
    
    .timeline-list {
        margin-top: 12px;
    }
    
    .timeline-list li {
        font-size: 13px;
        line-height: 1.6;
        padding: 6px 0;
    }
    
    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
        gap: 18px;
    }
    
    .edu-icon {
        margin: 0 auto;
        width: 58px;
        height: 58px;
    }
    
    .edu-date {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .edu-degree {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .edu-institution {
        justify-content: center;
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .edu-desc {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* Testimonials */
    .testimonials-slider {
        padding: 0 8px;
        max-width: 100%;
    }
    
    .testimonial-card {
        padding: 32px 24px;
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
    }
    
    .testimonial-quote {
        font-size: 36px;
        margin-bottom: 18px;
        text-align: center;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 22px;
        text-align: center;
    }
    
    .testimonial-rating {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    
    .testimonial-author {
        gap: 16px;
        justify-content: center;
        align-items: center;
    }
    
    .author-avatar {
        flex-shrink: 0;
    }
    
    .author-avatar img {
        width: 56px;
        height: 56px;
    }
    
    .author-info {
        text-align: left;
    }
    
    .author-info h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .author-info span {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Swiper Pagination */
    .swiper-pagination {
        bottom: 30px !important;
        padding-bottom: 15px;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        overflow: hidden;
    }
    
    .blog-image {
        aspect-ratio: 16/10;
        overflow: hidden;
    }
    
    .blog-content {
        padding: 24px 20px;
    }
    
    .blog-meta {
        gap: 16px;
        font-size: 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .blog-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .blog-title a {
        color: var(--text-primary);
    }
    
    .blog-excerpt {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .blog-link {
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
        margin-top: 20px;
    }
    
    .contact-info h3 {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .contact-info > p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 24px;
    }
    
    .contact-details {
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .contact-item {
        gap: 16px;
        padding: 16px;
        background: var(--bg-glass);
        border-radius: var(--radius-md);
    }
    
    .item-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .item-content {
        flex: 1;
        min-width: 0;
    }
    
    .item-content span {
        font-size: 12px;
        display: block;
        margin-bottom: 4px;
    }
    
    .item-content a,
    .item-content p {
        font-size: 14px;
        word-break: break-word;
    }
    
    .contact-info .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .contact-info .social-links a {
        width: 46px;
        height: 46px;
    }
    
    .contact-form-wrapper {
        padding: 26px 20px;
        order: 1;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form .form-group {
        margin-bottom: 20px;
    }
    
    .contact-form label {
        font-size: 13px;
        margin-bottom: 8px;
        display: block;
        font-weight: 500;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        transition: var(--transition-base);
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }
    
    .contact-form textarea {
        min-height: 150px;
        resize: vertical;
    }
    
    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 14px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .btn-block {
        width: 100%;
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 45px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 28px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-brand .brand-logo {
        font-size: 24px;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    
    .footer-brand p {
        font-size: 13.5px;
        line-height: 1.55;
    }
    
    .footer h4 {
        font-size: 14.5px;
        margin-bottom: 12px;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 6px 0;
        display: inline-block;
    }
    
    .footer-social .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-social .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    
    .footer-contact a {
        font-size: 13px;
        padding: 6px 0;
        word-break: break-word;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-bottom p {
        font-size: 12.5px;
        line-height: 1.45;
    }
    
    /* Scroll Top */
    .scroll-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 4px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .scroll-top i {
        position: relative;
        z-index: 2;
    }
    
    .progress-ring {
        width: 58px;
        height: 58px;
        top: -4px;
        left: -4px;
    }
    
    /* Empty State */
    .empty-state {
        padding: 50px 16px;
    }
    
    .empty-state i {
        font-size: 50px;
    }
    
    .empty-state p {
        font-size: 16px;
    }
}

/* Medium Mobile (412px - Common Android size) */
@media (max-width: 414px) {
    .container {
        padding: 0 18px;
        max-width: 100%;
    }
    
    /* Hero */
    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: clamp(30px, 7.5vw, 38px);
        line-height: 1.2;
        margin-bottom: 14px;
    }
    
    .hero-subtitle {
        font-size: 14.5px;
        line-height: 1.5;
    }
    
    .hero-description {
        font-size: 13.5px;
        line-height: 1.75;
    }
    
    /* Code Window */
    .code-body {
        padding: 14px;
        font-size: 10px;
        line-height: 1.6;
    }
    
    /* Sections */
    .section-title {
        font-size: clamp(26px, 6.5vw, 34px);
    }
    
    .section-label {
        font-size: 11.5px;
        padding: 6px 16px;
    }
    
    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }
    
    .skill-card {
        padding: 20px 15px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }
    
    .skill-name {
        font-size: 12.5px;
    }
    
    /* Services */
    .service-card {
        padding: 28px 22px;
    }
    
    /* Projects */
    .project-content {
        padding: 21px 19px;
    }
    
    .project-title {
        font-size: 17px;
    }
    
    /* Contact Form */
    .contact-form-wrapper {
        padding: 24px 19px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 15px 17px;
        font-size: 15px;
    }
    
    /* Buttons */
    .btn {
        padding: 13px 26px;
        font-size: 13.5px;
    }
    
    /* Swiper Pagination */
    .swiper-pagination {
        bottom: 35px !important;
        padding-bottom: 18px;
    }
    
    /* Scroll Top */
    .scroll-top {
        width: 48px;
        height: 48px;
        bottom: 22px;
        right: 18px;
        font-size: 17px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 18px;
    }
    
    .footer-content {
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .footer h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-links ul {
        gap: 6px;
    }
    
    .footer-links a {
        padding: 5px 0;
    }
    
    .footer-contact {
        gap: 6px;
    }
    
    .footer-contact a {
        padding: 5px 0;
    }
    
    .footer-social .social-links {
        gap: 9px;
    }
    
    .footer-social .social-links a {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .footer-brand .brand-logo {
        font-size: 23px;
        margin-bottom: 9px;
    }
    
    .footer-brand p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .footer-bottom {
        gap: 7px;
        padding-top: 16px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    :root {
        --section-padding: 50px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: clamp(26px, 7vw, 32px);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    /* Grids */
    .skills-grid {
        gap: 12px;
    }
    
    .skill-card {
        padding: 20px 14px;
    }
    
    .skill-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    
    .skill-name {
        font-size: 12px;
    }
    
    .service-card {
        padding: 26px 20px;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .project-content {
        padding: 20px 18px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 22px 18px;
    }
    
    .contact-item {
        padding: 14px;
    }
    
    /* Typography */
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .section-label {
        font-size: 11px;
        padding: 5px 14px;
    }
    
    /* Footer */
    .footer {
        padding: 38px 0 16px;
    }
    
    .footer-content {
        gap: 18px;
        margin-bottom: 20px;
    }
    
    .footer h4 {
        font-size: 13.5px;
        margin-bottom: 9px;
    }
    
    .footer-links ul {
        gap: 5px;
    }
    
    .footer-links a,
    .footer-contact a {
        padding: 4px 0;
        font-size: 12.5px;
    }
    
    .footer-social .social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .footer-brand .brand-logo {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        gap: 6px;
        padding-top: 14px;
    }
    
    /* Swiper Pagination */
    .swiper-pagination {
        bottom: 40px !important;
        padding-bottom: 20px;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }
    
    .hero-title {
        font-size: clamp(24px, 6vw, 28px);
    }
    
    .section-title {
        font-size: clamp(22px, 5vw, 28px);
    }
    
    .btn {
        padding: 12px 22px;
        font-size: 13px;
    }
    
    .code-body {
        font-size: 9px;
        padding: 14px;
        line-height: 1.6;
    }
    
    .skills-grid,
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-cta .btn {
        font-size: 14px;
        padding: 14px 24px;
    }
    
    /* Swiper Pagination */
    .swiper-pagination {
        bottom: 45px !important;
        padding-bottom: 22px;
    }
}

/* Landscape on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content .container {
        gap: 40px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .navbar-menu {
        width: 50%;
        max-width: 280px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove tap highlight */
    .btn,
    .nav-link,
    .social-link,
    .skill-card,
    .service-card,
    .project-card,
    .education-card,
    .testimonial-card,
    .blog-card,
    .filter-btn,
    .skill-tab,
    a {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Disable hover transforms on touch */
    .stat-card:hover,
    .skill-card:hover,
    .service-card:hover,
    .project-card:hover,
    .education-card:hover,
    .blog-card:hover,
    .social-link:hover,
    .btn:hover {
        transform: none;
    }
    
    /* Minimum touch target size (48x48px recommended) */
    .nav-link,
    .social-link,
    .filter-btn,
    .skill-tab,
    .theme-toggle,
    .navbar-toggle {
        min-height: 42px;
        min-width: 42px;
    }
    
    .btn {
        min-height: 48px;
        padding: 14px 30px;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        min-height: 50px;
    }
    
    /* Better scroll behavior */
    .skills-tabs,
    .projects-filter,
    .code-body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Active states for touch */
    .btn:active {
        transform: scale(0.97);
    }
    
    .skill-card:active,
    .service-card:active,
    .project-card:active {
        opacity: 0.9;
    }
}

/* High DPI / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .code-window,
    .skill-card,
    .service-card,
    .project-card,
    .education-card,
    .testimonial-card,
    .blog-card,
    .contact-form-wrapper {
        border-width: 0.5px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::before,
    .hero::after,
    .code-window,
    .floating-shape {
        animation: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .particles-bg,
    .scroll-top,
    .hero-cta,
    .hero-social,
    .footer,
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .skill-card,
    .service-card,
    .project-card,
    .education-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
        color: black;
    }
}
