/* ===== CSS RESET & VARIABLES ===== */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4a3db0;
    --accent: #00cec9;
    --accent2: #fd79a8;
    --gradient1: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient2: linear-gradient(135deg, #fd79a8, #6c5ce7);
    --gradient3: linear-gradient(135deg, #00cec9, #6c5ce7, #fd79a8);
}

[data-theme="dark"] {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3e;
    --bg-card: #16163a;
    --bg-card-hover: #1e1e4a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d4;
    --text-muted: #6c6c8a;
    --border: rgba(108, 92, 231, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
    --glass: rgba(18, 18, 42, 0.8);
    --glass-border: rgba(108, 92, 231, 0.15);
}

[data-theme="light"] {
    --bg-primary: #f8f9ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0ff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a8;
    --border: rgba(108, 92, 231, 0.15);
    --shadow: rgba(108, 92, 231, 0.1);
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(108, 92, 231, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    transition: background 0.5s ease, color 0.5s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.bg-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 50%;
    right: -10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.bg-orb:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--accent2);
    bottom: -10%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -80px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 60px) scale(0.9);
    }

    75% {
        transform: translate(70px, 40px) scale(1.05);
    }
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.7rem 2rem;
    box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 1;
    white-space: nowrap;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--border);
}

.nav-links a.active {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== SECTION STYLES ===== */
section {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-title .gradient-text {
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #00d26a;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title .line {
    display: block;
}

.hero-title .highlight {
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .outline-text {
    -webkit-text-stroke: 2px var(--primary-light);
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient1);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-glow {
    background: var(--gradient2);
    color: white;
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.3);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(253, 121, 168, 0.5);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-image-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-image-bg {
    position: absolute;
    inset: -15px;
    background: var(--gradient1);
    border-radius: 30px;
    transform: rotate(5deg);
    opacity: 0.3;
    animation: morphBg 8s ease-in-out infinite;
}

@keyframes morphBg {

    0%,
    100% {
        border-radius: 30px;
        transform: rotate(5deg);
    }

    25% {
        border-radius: 50% 30px 50% 30px;
        transform: rotate(-3deg);
    }

    50% {
        border-radius: 30px 50% 30px 50%;
        transform: rotate(5deg);
    }

    75% {
        border-radius: 50% 30px 50% 30px;
        transform: rotate(-5deg);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid var(--border);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    border-radius: 28px;
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 40px var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    bottom: 15%;
    left: -10%;
    animation-delay: -3s;
}

.floating-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-card .icon.purple {
    background: rgba(108, 92, 231, 0.2);
}

.floating-card .icon.teal {
    background: rgba(0, 206, 201, 0.2);
}

.floating-card .info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.floating-card .info-value {
    font-size: 0.9rem;
    font-weight: 700;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient1);
}

.about-code-block {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 2;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.code-line {
    display: block;
}

.code-keyword {
    color: #c678dd;
}

.code-class {
    color: #e5c07b;
}

.code-string {
    color: #98c379;
}

.code-property {
    color: #61afef;
}

.code-punctuation {
    color: var(--text-muted);
}

.code-value {
    color: #d19a66;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 110px;
    height: 110px;
    background: var(--gradient1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.about-experience-badge .number {
    font-size: 2rem;
    line-height: 1;
}

.about-experience-badge .text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.highlight-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.highlight-item .icon.i1 {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.highlight-item .icon.i2 {
    background: rgba(0, 206, 201, 0.15);
    color: var(--accent);
}

.highlight-item .icon.i3 {
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent2);
}

.highlight-item .icon.i4 {
    background: rgba(255, 183, 77, 0.15);
    color: #ffb74d;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: height 0.4s ease;
}

.skill-category:nth-child(1)::before {
    background: var(--gradient1);
}

.skill-category:nth-child(2)::before {
    background: var(--gradient2);
}

.skill-category:nth-child(3)::before {
    background: linear-gradient(135deg, #00cec9, #55efc4);
}

.skill-category:nth-child(4)::before {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--shadow);
}

.skill-category:hover::before {
    height: 4px;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.skill-category:nth-child(1) .skill-category-icon {
    background: rgba(108, 92, 231, 0.15);
}

.skill-category:nth-child(2) .skill-category-icon {
    background: rgba(253, 121, 168, 0.15);
}

.skill-category:nth-child(3) .skill-category-icon {
    background: rgba(0, 206, 201, 0.15);
}

.skill-category:nth-child(4) .skill-category-icon {
    background: rgba(253, 203, 110, 0.15);
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.skill-category-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.skill-tag .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.skill-category:nth-child(1) .tag-dot {
    background: var(--primary-light);
}

.skill-category:nth-child(2) .tag-dot {
    background: var(--accent2);
}

.skill-category:nth-child(3) .tag-dot {
    background: var(--accent);
}

.skill-category:nth-child(4) .tag-dot {
    background: #fdcb6e;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 6rem 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    group: true;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px var(--shadow);
}

.project-image {
    width: 100%;
    height: 220px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.1);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(0, 206, 201, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    cursor: pointer;
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .overlay-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.overlay-btn:hover {
    background: white;
    color: var(--primary);
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tech span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: process-counter;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    counter-increment: process-counter;
}

.process-card::before {
    content: counter(process-counter, decimal-leading-zero);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow);
}

.process-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 1rem auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.process-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== EXPERIENCE TIMELINE ===== */
.experience {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient1);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 350px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 1rem;
}

.testimonial-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.testimonial-inner::before {
    content: '"';
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 30px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: #fdcb6e;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.testimonial-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* ===== BLOG SECTION ===== */
.blog {
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow);
}

.blog-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.5s ease;
}

.blog-card:nth-child(1) .blog-image-placeholder {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(0, 206, 201, 0.3));
}

.blog-card:nth-child(2) .blog-image-placeholder {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.3), rgba(108, 92, 231, 0.3));
}

.blog-card:nth-child(3) .blog-image-placeholder {
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.3), rgba(253, 203, 110, 0.3));
}

.blog-card:hover .blog-image-placeholder {
    transform: scale(1.1);
}

.blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-light);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 0.8rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    transition: height 0.4s ease;
    z-index: 0;
    opacity: 0.05;
}

.service-card:nth-child(1)::after {
    background: var(--gradient1);
}

.service-card:nth-child(2)::after {
    background: var(--gradient2);
}

.service-card:nth-child(3)::after {
    background: linear-gradient(135deg, #00cec9, #55efc4);
}

.service-card:nth-child(4)::after {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.service-card:hover::after {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.service-card:nth-child(1) .service-icon {
    background: rgba(108, 92, 231, 0.15);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(253, 121, 168, 0.15);
}

.service-card:nth-child(3) .service-icon {
    background: rgba(0, 206, 201, 0.15);
}

.service-card:nth-child(4) .service-icon {
    background: rgba(253, 203, 110, 0.15);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info>p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item:nth-child(1) .contact-item-icon {
    background: rgba(108, 92, 231, 0.15);
}

.contact-item:nth-child(2) .contact-item-icon {
    background: rgba(0, 206, 201, 0.15);
}

.contact-item:nth-child(3) .contact-item-icon {
    background: rgba(253, 121, 168, 0.15);
}

.contact-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-item-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient1);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== LOADING SCREEN ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-right: 0;
        padding-left: 60px;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        border-left: 1px solid var(--border);
        transition: right 0.4s ease;
        z-index: 998;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 999;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
    }

    .floating-card {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-image-container {
        width: 200px;
        height: 200px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-actions {
        gap: 0.3rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .hamburger span {
        width: 20px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-image-container {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 300px) {
    .navbar {
        padding: 0.7rem 0.5rem;
    }

    .nav-container {
        padding: 0;
        gap: 0.2rem;
    }

    .nav-logo {
        font-size: 0.95rem;
        letter-spacing: -0.5px;
    }

    .nav-actions {
        gap: 0.2rem;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        margin-left: 0;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .hamburger {
        gap: 3px;
        padding: 3px;
    }

    .hamburger span {
        width: 18px;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hero-image-container {
        width: 120px;
        height: 120px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-experience-badge {
        width: 70px;
        height: 70px;
        right: -5px;
        bottom: -5px;
    }

    .about-experience-badge .number {
        font-size: 1.3rem;
    }

    .about-experience-badge .text {
        font-size: 0.55rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 300px) {
    .navbar {
        padding: 0.7rem 0.5rem;
    }

    .nav-container {
        padding: 0 0.3rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
        margin-left: 0.1rem;
    }

    .hamburger {
        gap: 3px;
    }

    .hamburger span {
        width: 18px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-image-container {
        width: 130px;
        height: 130px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-experience-badge {
        width: 80px;
        height: 80px;
        right: -10px;
        bottom: -10px;
    }

    .about-experience-badge .number {
        font-size: 1.5rem;
    }
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== TEXT TYPING EFFECT ===== */
.typing-text {
    border-right: 2px solid var(--primary);
    animation: blink 0.8s step-end infinite;
    display: inline;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ===== TOOLTIP ===== */
.skill-tag[data-tooltip] {
    position: relative;
}

.skill-tag[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    color: var(--text-primary);
}

/* ===== MAGNETIC BUTTON EFFECT ON CARDS ===== */
.project-card,
.service-card,
.skill-category,
.blog-card {
    will-change: transform;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* ===== BLOG MODAL ===== */
.blog-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-modal-overlay.active .blog-modal {
    transform: translateY(0) scale(1);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

/* Modal Header Image */
.modal-hero {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, var(--bg-secondary));
}

/* Modal Scrollable Body */
.modal-body {
    padding: 2rem 2.5rem 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Modal Meta Info */
.modal-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-tag {
    padding: 0.3rem 1rem;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Title */
.modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Modal Author */
.modal-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 2rem;
}

.modal-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modal Article Content */
.modal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.modal-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.8rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.modal-content ul,
.modal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.modal-content li::marker {
    color: var(--primary-light);
}

/* Code Block inside Modal */
.modal-code {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-x: auto;
    position: relative;
}

.modal-code::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    font-size: 0.7rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
}

/* Blockquote */
.modal-content blockquote {
    background: rgba(108, 92, 231, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Key Takeaway Box */
.modal-takeaway {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.modal-takeaway h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-takeaway ul {
    list-style: none;
    padding: 0;
}

.modal-takeaway li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-takeaway li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Share & Tags Section */
.modal-footer-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tags span {
    padding: 0.4rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.modal-tags span:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
}

.modal-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-share span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ===== RELATED ARTICLES SECTION ===== */
.related-articles {
    margin-top: 2rem;
}

.related-articles h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: none;
    padding-left: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}

.related-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-card:nth-child(1) .related-card-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
}

.related-card:nth-child(2) .related-card-icon {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.2), rgba(108, 92, 231, 0.2));
}

.related-card-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-card:hover h4 {
    color: var(--primary-light);
}

.related-card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Reading Progress Bar */
.reading-progress {
    position: sticky;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient1);
    z-index: 5;
    transition: width 0.1s ease;
    border-radius: 0 3px 3px 0;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .blog-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .blog-modal {
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }

    .modal-hero {
        height: 200px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .modal-meta {
        gap: 0.8rem;
    }
}

/* ===== MODAL ICON FIXES ===== */
.modal-hero-placeholder i {
    color: var(--text-primary);
    opacity: 0.6;
    filter: drop-shadow(0 4px 15px rgba(108, 92, 231, 0.3));
}

.modal-meta-item i {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.2rem;
}

.modal-author-role i {
    font-size: 0.7rem;
    color: var(--primary-light);
    margin-right: 0.3rem;
}

.modal-close i {
    font-size: 1rem;
    pointer-events: none;
}

.modal-tags span i {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-right: 0.2rem;
}

.modal-share>span i {
    margin-right: 0.3rem;
    color: var(--primary-light);
}

.related-card-icon i {
    color: var(--primary-light);
}

.related-card-info p i {
    font-size: 0.65rem;
    margin-right: 0.2rem;
    opacity: 0.6;
}

.related-articles>h3 i {
    color: var(--primary-light);
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Fix related articles h3 border reset */
.related-articles>h3 {
    border-left: none !important;
    padding-left: 0 !important;
}

/* Share button copy success animation */
.share-btn {
    transition: all 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ===== ENHANCED CONTACT FORM ===== */
.required {
    color: #e74c3c;
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 0.4rem;
    min-height: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #00d26a !important;
    box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.1) !important;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.custom-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.custom-select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.custom-select-wrapper select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.char-counter.warning {
    color: #fdcb6e;
}

.char-counter.danger {
    color: #e74c3c;
}

/* ===== CAPTCHA SECTION ===== */
.captcha-section {
    margin-bottom: 1.5rem;
}

.captcha-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.captcha-box.verified {
    border-color: #00d26a;
    background: rgba(0, 210, 106, 0.05);
}

.captcha-box.failed {
    border-color: #e74c3c;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.captcha-icon {
    font-size: 1.2rem;
}

.captcha-challenge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.captcha-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.captcha-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.captcha-math {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    padding: 0.5rem 0;
    user-select: none;
    font-family: 'Courier New', monospace;
}

.captcha-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.captcha-input-row input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.captcha-input-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.captcha-refresh {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(180deg);
}

.captcha-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 1.2rem;
    text-align: center;
}

.captcha-status.success {
    color: #00d26a;
}

.captcha-status.error {
    color: #e74c3c;
}

/* ===== FORM STATUS MESSAGES ===== */
.form-status {
    margin-bottom: 1.5rem;
    padding: 0;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s ease;
}

.form-status.show {
    display: flex;
    padding: 1.2rem;
    animation: fadeInUp 0.5s ease;
}

.form-status.success {
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    color: #00d26a;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.form-status.warning {
    background: rgba(253, 203, 110, 0.1);
    border: 1px solid rgba(253, 203, 110, 0.3);
    color: #fdcb6e;
}

.form-status-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.form-status-text {
    flex: 1;
}

.form-status-text strong {
    display: block;
    margin-bottom: 0.2rem;
}

.form-status-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 0.2rem;
}

.form-status-close:hover {
    opacity: 1;
}

/* ===== SUBMIT BUTTON ENHANCED ===== */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ===== RATE LIMITING NOTICE ===== */
.rate-limit-notice {
    text-align: center;
    padding: 1rem;
    background: rgba(253, 203, 110, 0.1);
    border: 1px solid rgba(253, 203, 110, 0.2);
    border-radius: 12px;
    color: #fdcb6e;
    font-size: 0.85rem;
    margin-top: 1rem;
    display: none;
}

/* ===== FONT AWESOME ICON TWEAKS ===== */
.social-link i {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.footer-links a i {
    font-size: 0.65rem;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.section-label i {
    font-size: 0.8rem;
}

.contact-item-icon i {
    font-size: 1.25rem;
}

.process-icon i {
    color: var(--primary-light);
}

.service-icon i {
    color: var(--primary-light);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.15);
}

.skill-category-icon i {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.overlay-btn i {
    font-size: 1rem;
}

.blog-image-placeholder i {
    color: var(--text-muted);
    opacity: 0.7;
}

.highlight-item .icon i {
    font-size: 1rem;
}

.btn i {
    font-size: 0.9rem;
}

.modal-share .share-btn i {
    font-size: 0.95rem;
}

.testimonial-stars i {
    color: #fdcb6e;
    font-size: 1.1rem;
}

.floating-card .icon i {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.captcha-icon i {
    color: var(--primary-light);
}

.captcha-refresh i {
    transition: transform 0.4s ease;
}

.captcha-refresh:hover i {
    transform: rotate(180deg);
}

/* ===== LEGAL MODALS ===== */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.legal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.legal-modal-overlay.active .legal-modal {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.legal-modal-header {
    padding: 1.8rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.legal-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
}

.legal-modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.legal-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.legal-modal-icon.privacy {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.legal-modal-icon.terms {
    background: rgba(0, 206, 201, 0.15);
    color: var(--accent);
}

.legal-modal-icon.sitemap {
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent2);
}

.legal-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.legal-modal-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.legal-modal-updated i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

.legal-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.legal-modal-close:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

/* Table of Contents */
.legal-toc {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    flex-shrink: 0;
    overflow-x: auto;
}

.legal-toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.legal-toc-link {
    padding: 0.35rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.legal-toc-link:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-1px);
}

.legal-toc-link i {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Modal Body */
.legal-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Legal Content Styling */
.legal-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 1rem;
}

.legal-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient1);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.legal-section ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-highlight {
    background: rgba(108, 92, 231, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-highlight i {
    color: var(--primary-light);
    margin-right: 0.4rem;
}

.legal-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.legal-info-box i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.legal-info-box p {
    margin: 0;
    font-size: 0.88rem;
}

.legal-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* Contact Box in Legal */
.legal-contact-box {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.legal-contact-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-contact-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.legal-contact-box a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-contact-box a:hover {
    color: var(--accent);
}

/* Sitemap Grid */
.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1rem;
}

.sitemap-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.sitemap-category:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow);
}

.sitemap-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.sitemap-category-header i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    padding: 0.3rem 0;
    padding-left: 0;
}

.sitemap-links li::before {
    display: none;
}

.sitemap-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
}

.sitemap-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.sitemap-links a i {
    font-size: 0.6rem;
    color: var(--primary-light);
    opacity: 0.5;
}

/* Modal Footer */
.legal-modal-footer {
    padding: 1.2rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-modal-footer-left {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-modal-footer-left i {
    color: var(--primary-light);
}

.legal-modal-footer-left strong {
    color: var(--text-secondary);
}

.legal-modal-accept {
    padding: 0.7rem 1.5rem;
    background: var(--gradient1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.legal-modal-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

/* Legal Modal Responsive */
@media (max-width: 768px) {
    .legal-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .legal-modal {
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }

    .legal-modal-header {
        padding: 1.2rem 1.5rem;
    }

    .legal-modal-body {
        padding: 1.5rem;
    }

    .legal-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .legal-toc-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }

    .legal-modal-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .legal-modal-title {
        font-size: 1.15rem;
    }
}

/* ===== CV DOWNLOAD BUTTON ===== */
.cv-download-btn {
    position: relative;
    overflow: hidden;
    min-width: 175px;
    justify-content: center;
}

.cv-download-btn span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cv-download-btn .cv-btn-loading,
.cv-download-btn .cv-btn-done {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cv-download-btn.downloading {
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.5);
}

.cv-download-btn.downloaded {
    background: linear-gradient(135deg, #00d26a, #00b894) !important;
    box-shadow: 0 4px 20px rgba(0, 210, 106, 0.5) !important;
}

/* Download notification toast */
.download-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 5000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    width: calc(100% - 2rem);
}

.download-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.download-toast-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.15), rgba(0, 184, 148, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00d26a;
    flex-shrink: 0;
}

.download-toast-content {
    flex: 1;
}

.download-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.download-toast-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.download-toast-close:hover {
    color: var(--text-primary);
}

/* Progress bar inside toast */
.download-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient1);
    border-radius: 0 0 16px 16px;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* =============================================
   CONTACT SECTION - FULL RESPONSIVE FIX
   Covers: 1200px → 270px
============================================= */

/* ===== LARGE TABLETS (1024px and below) ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        gap: 1.2rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }
}

/* ===== TABLETS (768px and below) ===== */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .contact-info > p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Contact Items */
    .contact-item {
        padding: 1rem;
        gap: 0.8rem;
        border-radius: 12px;
    }

    .contact-item-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .contact-item-label {
        font-size: 0.75rem;
    }

    .contact-item-value {
        font-size: 0.88rem;
    }

    /* Social Links */
    .social-links {
        gap: 0.6rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1rem;
    }

    /* Form Wrapper */
    .contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    /* Form Row - Stack on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Form Groups */
    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .custom-select-wrapper select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-group textarea {
        height: 120px;
    }

    /* CAPTCHA */
    .captcha-box {
        padding: 1rem;
        border-radius: 12px;
    }

    .captcha-header {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .captcha-math {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .captcha-question {
        font-size: 0.9rem;
    }

    .captcha-hint {
        font-size: 0.72rem;
    }

    .captcha-input-row input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .captcha-refresh {
        width: 38px;
        height: 38px;
    }

    .captcha-status {
        font-size: 0.75rem;
    }

    /* Submit Button */
    .submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    /* Form Note */
    .form-note {
        font-size: 0.75rem;
        margin-top: 0.8rem;
    }

    /* Form Status */
    .form-status.show {
        padding: 1rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .form-status-icon {
        font-size: 1.1rem;
    }
}

/* ===== SMALL PHONES (480px and below) ===== */
@media (max-width: 480px) {
    .contact {
        padding: 3rem 0;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.15rem;
    }

    .contact-info > p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Contact Items - tighter */
    .contact-item {
        padding: 0.85rem;
        gap: 0.7rem;
        border-radius: 10px;
    }

    .contact-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .contact-item-icon i {
        font-size: 0.95rem;
    }

    .contact-item-label {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
    }

    .contact-item-value {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* Social links */
    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 0.95rem;
    }

    /* Form wrapper */
    .contact-form-wrapper {
        padding: 1.2rem;
        border-radius: 14px;
    }

    /* Form fields */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group textarea,
    .custom-select-wrapper select {
        padding: 0.75rem 0.9rem;
        font-size: 0.88rem;
        border-radius: 9px;
    }

    .form-group textarea {
        height: 110px;
    }

    .char-counter {
        font-size: 0.7rem;
    }

    .field-error {
        font-size: 0.72rem;
    }

    /* Select dropdown arrow */
    .custom-select-wrapper::after {
        right: 0.8rem;
        font-size: 0.6rem;
    }

    /* CAPTCHA */
    .captcha-section {
        margin-bottom: 1.2rem;
    }

    .captcha-box {
        padding: 0.9rem;
    }

    .captcha-header {
        font-size: 0.8rem;
        gap: 0.4rem;
        margin-bottom: 0.7rem;
    }

    .captcha-challenge {
        padding: 0.8rem;
        border-radius: 8px;
        margin-bottom: 0.8rem;
    }

    .captcha-math {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
        padding: 0.3rem 0;
    }

    .captcha-question {
        font-size: 0.82rem;
    }

    .captcha-hint {
        font-size: 0.68rem;
    }

    .captcha-input-row {
        gap: 0.4rem;
    }

    .captcha-input-row input {
        font-size: 0.88rem;
        padding: 0.55rem 0.7rem;
        border-radius: 8px;
        letter-spacing: 1.5px;
    }

    .captcha-refresh {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    /* Submit button */
    .submit-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
        border-radius: 9px;
    }

    .submit-btn .spinner {
        width: 16px;
        height: 16px;
    }

    /* Form note */
    .form-note {
        font-size: 0.7rem;
        margin-top: 0.7rem;
        line-height: 1.5;
    }
}

/* ===== EXTRA SMALL (380px and below) ===== */
@media (max-width: 380px) {
    .contact {
        padding: 2.5rem 0;
    }

    .contact-info h3 {
        font-size: 1.05rem;
    }

    .contact-info > p {
        font-size: 0.8rem;
    }

    /* Contact items - very compact */
    .contact-item {
        padding: 0.75rem;
        gap: 0.6rem;
        border-radius: 9px;
    }

    .contact-item-icon {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }

    .contact-item-icon i {
        font-size: 0.85rem;
    }

    .contact-item-label {
        font-size: 0.65rem;
    }

    .contact-item-value {
        font-size: 0.78rem;
    }

    /* Social links - fit all 5 */
    .social-links {
        gap: 0.4rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    /* Form wrapper */
    .contact-form-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea,
    .custom-select-wrapper select {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .form-group textarea {
        height: 100px;
    }

    /* CAPTCHA */
    .captcha-box {
        padding: 0.8rem;
        border-radius: 10px;
    }

    .captcha-header {
        font-size: 0.75rem;
    }

    .captcha-math {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .captcha-question {
        font-size: 0.78rem;
    }

    .captcha-input-row input {
        font-size: 0.82rem;
        padding: 0.5rem 0.6rem;
    }

    .captcha-refresh {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Submit */
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Form status */
    .form-status.show {
        padding: 0.85rem;
        gap: 0.6rem;
    }

    .form-status-icon {
        font-size: 1rem;
    }

    .form-status-text strong {
        font-size: 0.82rem;
    }

    .form-status-text {
        font-size: 0.78rem;
    }
}

/* ===== TINY SCREENS (320px and below) ===== */
@media (max-width: 320px) {
    .contact {
        padding: 2rem 0;
    }

    .contact-info h3 {
        font-size: 0.95rem;
    }

    .contact-info > p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    /* Stack contact icon and text vertically on tiny screens */
    .contact-item {
        flex-direction: row;
        align-items: center;
        padding: 0.65rem;
        gap: 0.5rem;
    }

    .contact-item-icon {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .contact-item-icon i {
        font-size: 0.75rem;
    }

    .contact-item-label {
        font-size: 0.6rem;
    }

    .contact-item-value {
        font-size: 0.72rem;
        word-break: break-word;
    }

    /* Social links - tiny */
    .social-links {
        gap: 0.35rem;
    }

    .social-link {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        font-size: 0.78rem;
    }

    /* Form */
    .contact-form-wrapper {
        padding: 0.85rem;
        border-radius: 10px;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .form-group textarea,
    .custom-select-wrapper select {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 7px;
    }

    .form-group textarea {
        height: 90px;
    }

    .char-counter {
        font-size: 0.62rem;
    }

    .field-error {
        font-size: 0.65rem;
        min-height: 0.9rem;
    }

    /* Custom select arrow */
    .custom-select-wrapper::after {
        right: 0.6rem;
        font-size: 0.55rem;
    }

    /* CAPTCHA */
    .captcha-section {
        margin-bottom: 1rem;
    }

    .captcha-box {
        padding: 0.7rem;
        border-radius: 8px;
    }

    .captcha-header {
        font-size: 0.7rem;
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }

    .captcha-challenge {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
        border-radius: 7px;
    }

    .captcha-math {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
        padding: 0.2rem 0;
    }

    .captcha-question {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .captcha-hint {
        font-size: 0.6rem;
    }

    .captcha-input-row {
        gap: 0.3rem;
    }

    .captcha-input-row input {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
        border-radius: 7px;
        letter-spacing: 1px;
    }

    .captcha-refresh {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 0.72rem;
    }

    .captcha-status {
        font-size: 0.65rem;
        min-height: 1rem;
    }

    /* Submit button */
    .submit-btn {
        padding: 0.72rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.3rem;
    }

    .submit-btn .spinner {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    /* Form note */
    .form-note {
        font-size: 0.62rem;
        margin-top: 0.6rem;
        line-height: 1.4;
    }

    /* Form status */
    .form-status.show {
        padding: 0.75rem;
        gap: 0.5rem;
        border-radius: 10px;
        font-size: 0.75rem;
    }

    .form-status-icon {
        font-size: 0.9rem;
    }
}

/* ===== ULTRA TINY (270px - Galaxy Fold etc.) ===== */
@media (max-width: 270px) {
    .contact {
        padding: 1.5rem 0;
    }

    /* Force container to fit */
    .container {
        padding: 0 0.5rem;
    }

    .section-label {
        font-size: 0.62rem;
        padding: 0.3rem 0.7rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.3rem;
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    .contact-info h3 {
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .contact-info > p {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    /* Contact items - ultra compact */
    .contact-item {
        padding: 0.55rem;
        gap: 0.4rem;
        border-radius: 8px;
    }

    .contact-item-icon {
        width: 26px;
        height: 26px;
        border-radius: 5px;
    }

    .contact-item-icon i {
        font-size: 0.65rem;
    }

    .contact-item-label {
        font-size: 0.55rem;
        letter-spacing: 0;
    }

    .contact-item-value {
        font-size: 0.65rem;
        line-height: 1.4;
        word-break: break-all;
    }

    /* Social links */
    .social-links {
        gap: 0.3rem;
        margin-top: 0.3rem;
    }

    .social-link {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        font-size: 0.7rem;
    }

    .social-link i {
        font-size: 0.7rem;
    }

    /* Form wrapper */
    .contact-form-wrapper {
        padding: 0.7rem;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 0.7rem;
    }

    .form-group label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group textarea,
    .custom-select-wrapper select {
        padding: 0.5rem 0.55rem;
        font-size: 0.72rem;
        border-radius: 6px;
        border-width: 1px;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        font-size: 0.65rem;
    }

    .form-group textarea {
        height: 80px;
        font-size: 0.72rem;
    }

    .char-counter {
        font-size: 0.58rem;
        margin-top: 0.2rem;
    }

    .field-error {
        font-size: 0.6rem;
        min-height: 0.85rem;
    }

    /* Custom select */
    .custom-select-wrapper::after {
        right: 0.5rem;
        font-size: 0.5rem;
    }

    .custom-select-wrapper select option {
        font-size: 0.7rem;
    }

    /* CAPTCHA - ultra compact */
    .captcha-section {
        margin-bottom: 0.8rem;
    }

    .captcha-box {
        padding: 0.6rem;
        border-radius: 7px;
    }

    .captcha-header {
        font-size: 0.65rem;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .captcha-icon i {
        font-size: 0.7rem;
    }

    .captcha-challenge {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }

    .captcha-math {
        font-size: 0.95rem;
        letter-spacing: 0.3px;
        padding: 0.15rem 0;
    }

    .captcha-question {
        font-size: 0.63rem;
        line-height: 1.4;
        margin-bottom: 0.15rem;
    }

    .captcha-hint {
        font-size: 0.55rem;
    }

    .captcha-input-row {
        gap: 0.25rem;
    }

    .captcha-input-row input {
        font-size: 0.7rem;
        padding: 0.4rem 0.45rem;
        border-radius: 6px;
        letter-spacing: 0.8px;
    }

    .captcha-refresh {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 0.65rem;
        flex-shrink: 0;
    }

    .captcha-status {
        font-size: 0.58rem;
        min-height: 0.9rem;
        margin-top: 0.3rem;
    }

    /* Submit button */
    .submit-btn {
        padding: 0.65rem 0.5rem;
        font-size: 0.72rem;
        border-radius: 7px;
        gap: 0.25rem;
    }

    .submit-btn i {
        font-size: 0.7rem;
    }

    .submit-btn .spinner {
        width: 12px;
        height: 12px;
        border-width: 1.5px;
    }

    /* Form note */
    .form-note {
        font-size: 0.55rem;
        margin-top: 0.5rem;
        line-height: 1.3;
    }

    /* Status message */
    .form-status.show {
        padding: 0.6rem;
        gap: 0.4rem;
        border-radius: 8px;
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }

    .form-status-icon {
        font-size: 0.8rem;
    }

    .form-status-text strong {
        font-size: 0.68rem;
        margin-bottom: 0.1rem;
    }

    .form-status-text {
        font-size: 0.62rem;
        line-height: 1.4;
    }

    .form-status-close {
        font-size: 0.75rem;
    }
}