/* ==============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================== */
:root {
    /* Color Palette */
    --bg: #020617;
    --surface: #0a0f1e;
    --surface-elevated: #1e293b;
    --surface-glass: rgba(10, 15, 30, 0.8);
    /* Primary & Accents */
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.3);
    --accent: #6366f1;
    --accent-secondary: #14b8a6;
    /* Text Colors */
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    --text-primary: var(--primary);
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-surface: linear-gradient(145deg, var(--surface), var(--surface-elevated));
    --gradient-hero: linear-gradient(135deg, var(--bg) 0%, hsl(222, 47%, 7%) 50%, var(--surface) 100%);
    --gradient-glow: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px -2px rgba(11, 18, 32, 0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-card: 0 8px 32px -8px rgba(11, 18, 32, 0.4);
    --shadow-elevated: 0 12px 40px -4px rgba(11, 18, 32, 0.5);
    /* Typography — the live value is --font-family in dala.css, which loads after this file.
       A 'Montserrat' stack used to sit here; no Montserrat was ever loaded, so it only ever
       resolved to system-ui before dala.css overrode it anyway. */
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    /* Navigation */
    --nav-height: 80px;
    /* Border Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* Responsive spacing */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
}

/* ==============================================
   RESET & BASE STYLES
   ============================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==============================================
   LAYOUT COMPONENTS
   ============================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto;
}

/* ==============================================
   CARD COMPONENTS
   ============================================== */
.card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-elevated);
    box-shadow: var(--shadow-card);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

/* ==============================================
   BUTTON COMPONENTS
   ============================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(145deg, var(--surface), var(--surface-elevated));
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn--primary:hover {
    box-shadow: 0 0 25px var(--primary-glow), var(--shadow-elevated);
    transform: translateY(-2px);
}

.btn--secondary {
    background: linear-gradient(145deg, var(--surface), var(--surface-elevated));
    color: var(--text);
    border: 1px solid var(--surface-elevated);
}

.btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}


.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
}

.btn--icon {
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    border-radius: var(--radius);
}

.btn--icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn--icon:hover {
    background: var(--surface);
    transform: translateY(-2px);
}

/* ==============================================
   NAVIGATION
   ============================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.nav.scrolled {
    background: var(--gradient-surface);
    box-shadow: var(--shadow-elevated);
    border-bottom: 1px solid var(--surface-elevated);
}

.nav__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1001;
    position: relative;
}

.nav__links {
    display: none;
    gap: 2rem;
}

/* Full-screen mobile navigation */
@media (max-width: 767px) {
    .nav .btn {
        display: none;
    }

    .nav__toggle {
        margin-left: auto;
        z-index: 1001;
        position: relative;
    }

    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(10, 15, 30, 0.95) 50%, rgba(30, 41, 59, 0.98) 100%);
        backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        padding: 1rem;
    }

    .nav__links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--text);
        text-decoration: none;
        position: relative;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.3s ease;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius);
        background: linear-gradient(145deg, transparent, rgba(59, 130, 246, 0.05));
        border: 1px solid transparent;
        min-width: 200px;
        text-align: center;
    }

    .nav__links.active .nav__link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for links */
    .nav__links.active .nav__link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav__links.active .nav__link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav__links.active .nav__link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav__links.active .nav__link:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav__links.active .nav__link:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav__links.active .nav__link:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav__links.active .nav__link:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav__link:hover {
        color: var(--primary);
        background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
        border-color: rgba(59, 130, 246, 0.3);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    }

    .nav__link::after {
        display: none;
    }

    /* Mobile menu overlay effect */
    .nav__links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
        opacity: 0;
        animation: pulseGlow 3s ease-in-out infinite;
        z-index: -1;
    }

    .nav__links.active::before {
        opacity: 1;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .nav__links {
        gap: 1.2rem;
        padding: 0.5rem;
    }

    .nav__link {
        font-size: 1.25rem;
        padding: 0.6rem 1.2rem;
        min-width: 180px;
    }
}

@media (max-width: 360px) {
    .nav__links {
        gap: 1rem;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        min-width: 160px;
    }
}

/* Hamburger menu styling */
.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface-elevated);
    border: 1px solid var(--surface);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0.7rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.nav__toggle:hover {
    background: var(--surface);
    box-shadow: var(--shadow-elevated);
    transform: scale(1.05);
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Hamburger to X animation */
.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--primary);
}

.nav__toggle.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }

    .nav__toggle {
        display: none;
    }

    .nav__link {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        position: relative;
        font-size: 1rem;
        padding: 0;
        background: none;
        border: none;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
        transform: translateX(-50%);
    }

    .nav__link:hover,
    .nav__link.active {
        color: var(--text);
    }

    .nav__link:hover::after,
    .nav__link.active::after {
        width: 100%;
    }
}

/* Pulse glow animation for mobile menu background */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Prevent body scroll when mobile menu is open */
body.nav-open {
    overflow: hidden;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Mobile adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: 8rem;
    }

    .hero__content {
        padding-top: 2rem;
    }

    .hero__title {
        font-size: clamp(2rem, 4vw, 2.8rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .hero__actions {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 6rem;
    }

    .hero__content {
        padding-top: 1.5rem;
    }

    .hero__title {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
        line-height: 1.1;
        margin-bottom: 1.2rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .hero__actions {
        margin-bottom: 1.5rem;
    }
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__location {
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about {
    padding: 6rem 0;
    background: var(--gradient-surface);
}

.about__content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about__profile {
    text-align: center;
}

.about__avatar {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.about__avatar:hover {
    transform: scale(1.05);
}

.about__name {
    margin-bottom: 0.5rem;
}

.about__role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about__email {
    color: var(--text-muted);
}

.about__details-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about__highlights {
    list-style: none;
    margin-bottom: 0.75rem;
}

.about__highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.about__highlights li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.about__tech-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.3rem 0.3rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--primary);
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--surface-elevated);
    border-radius: var(--radius);
}

.stat__number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .about__content {
        grid-template-columns: 1fr 2fr;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==============================================
   SKILLS SECTION
   ============================================== */
.skills {
    padding: 6rem 0;
    background: var(--gradient-surface);
}

.skills__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.skill-category {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 280px;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.skill-category__header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
    position: relative;
}

.skill-category__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-category:hover .skill-category__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
}

.skill-category__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2.5;
}

.skill-category__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    display: inline-block;
}

.skill-category__title::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.skill-category:hover .skill-category__title::after {
    width: 3rem;
}

.skill-category__content {
    padding: 0 0.5rem 1.5rem;
    flex: 1;
}

.skill-category__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category__list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    border-radius: 6px;
    margin-bottom: 0.25rem;
}

.skill-category__list li:last-child {
    margin-bottom: 0;
}

.skill-item__icon {
    font-size: 1rem;
    margin-right: 0.5rem;
    min-width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .skill-category {
        min-height: 300px;
    }
    
    .skill-category__header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .skill-category__content {
        padding: 0 1rem 2rem;
    }
    
    .skill-category__list li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
}

@media (min-width: 1024px) {
    .skills__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .skill-category {
        min-height: 320px;
    }
    
    .skill-category__header {
        padding: 2.5rem 2rem 1.5rem;
    }
    
    .skill-category__content {
        padding: 0 1rem 2.5rem;
    }
}

@media (min-width: 1200px) {
    .skills__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
    
    .skill-category {
        min-height: 280px;
    }

    .skill-category__header {
        padding: 0.5rem 0.8rem 0.75rem;
    }
    
    .skill-category__content {
        padding: 0 0.5rem 0.5rem;
    }
    
    .skill-category__list li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .skill-category__icon {
        width: 2.5rem;
        height: 2.5rem;
        margin: 0 auto 0.75rem;
    }
    
    .skill-category__icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .skill-category__title {
        font-size: 1.1rem;
    }
}

/* Animation for cards appearing */
.skill-category {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   PROJECTS SECTION
   ============================================== */
.projects {
    padding: 6rem 0;
    background: var(--gradient-surface);
}

.projects__grid {
    display: grid;
    gap: 1.25rem;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    transform: translate(-50%, -50%) scale(0);
    border-radius: inherit;
    transition: var(--transition);
    opacity: 0;
    z-index: -1;
}

.project-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.project-card__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.project-card__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

/*.project-card:hover .project-card__image img {
    transform: scale(1.03);
}*/

.project-card__title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
}

.project-card__description {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.project-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
}

/* Mobile optimizations for project cards */
@media (max-width: 767px) {
    .projects__grid {
        gap: 1rem;
    }

    .project-card__image img {
        height: 235px;
    }

    .project-card__title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .project-card__description {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        -webkit-line-clamp: 2;
    }

    .project-card__tags {
        gap: 0.3rem;
        margin-bottom: 1.5rem;
    }

    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }

    .project-card__actions {
        gap: 0.4rem;
    }
}

@media (min-width: 768px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .project-card__image img {
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
    
    .project-card__image img {
        height: 250px;
    }
}

/* Small adjustments for buttons in project cards */
.project-card .btn--small {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
}

.project-card .btn--icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.project-card .btn--icon:hover {
    background: var(--surface-elevated);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.project-card .btn--icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

/* ==============================================
   EXPERIENCE SECTION
   ============================================== */
.experience {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 2rem; /* Зменшено з 3rem */
}

.timeline-dot {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-content {
    padding: 1.5rem; /* Зменшено з 2rem */
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.timeline-title h3 {
    margin-bottom: 0.25rem; /* Зменшено з 0.5rem */
    font-size: 1.125rem; /* Зменшено розмір шрифту */
    font-weight: 600;
}

.timeline-title h4 {
    color: var(--primary);
    font-weight: 500; /* Зменшено з 600 */
    font-size: 0.95rem; /* Зменшено розмір шрифту */
}

.timeline-period {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem; /* Зменшено з 0.875rem */
}

.timeline-details {
    margin-bottom: 1rem;
    font-size: 0.8rem; /* Додано зменшення розміру */
    color: var(--text-muted);
}

.timeline-type, .timeline-location {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.75rem; /* Зменшено розмір */
}

.timeline-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-highlights li {
    display: flex;
    align-items: start;
    gap: 0.5rem; /* Зменшено з 0.75rem */
    margin-bottom: 0.5rem; /* Зменшено відступ */
    color: var(--text-muted);
    font-size: 0.875rem; /* Зменшено розмір шрифту */
    line-height: 1.4; /* Додано для кращої читабельності */
}

.timeline-highlights li::before {
    content: '';
    width: 6px; /* Зменшено з 8px */
    height: 6px; /* Зменшено з 8px */
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.4rem; /* Додано для вирівнювання */
    flex-shrink: 0;
}

.timeline-skills {
    margin-top: 1rem;
    padding: 0.75rem; /* Зменшено з 1rem */
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.8rem; /* Зменшено розмір */
    color: var(--text-muted);
}

.skill-icon {
    margin-right: 0.5rem;
}

.experience__highlights {
    max-width: 600px;
    margin: 0 auto;
}

.experience__highlights h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.experience__highlights .stats {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 1.5rem; /* Зменшено для мобільних */
    }

    .timeline-dot {
        left: 0.5rem;
        width: 10px; /* Зменшено для мобільних */
        height: 10px;
    }

    .timeline-content {
        padding: 1rem; /* Зменшено для мобільних */
    }

    .timeline-header {
        flex-direction: column;
        align-items: start;
    }

    .timeline-period {
        text-align: left;
    }

    .timeline-title h3 {
        font-size: 1rem; /* Зменшено для мобільних */
    }

    .timeline-title h4 {
        font-size: 0.875rem; /* Зменшено для мобільних */
    }
}

/* ==============================================
   SERVICES SECTION
   ============================================== */
.services__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 320px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s;
    }

    .service-card:hover::before {
        left: 100%;
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--primary);
    }

.service-card__header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
    position: relative;
}

.service-card__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    position: relative;
    display: inline-block;
}

    .service-card__title::after {
        content: '';
        position: absolute;
        bottom: -0.25rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2rem;
        height: 2px;
        background: var(--gradient-primary);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

.service-card:hover .service-card__title::after {
    width: 3rem;
}

.service-card__content {
    padding: 0 1rem 1.5rem;
    flex: 1;
}

.service-card__description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .service-card__features li {
        display: flex;
        align-items: center;
        padding: 0.2rem 0;
        color: var(--text-muted);
        font-size: 0.85rem;
        line-height: 1.1;
        position: relative;
        border-radius: 6px;
        margin-bottom: 0.25rem;
    }

        .service-card__features li:last-child {
            margin-bottom: 0;
        }

        .service-card__features li::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--primary);
            border-radius: 50%;
            flex-shrink: 0;
            margin-right: 0.75rem;
        }

/* Responsive Design */
@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .service-card {
        min-height: 340px;
    }

    .service-card__header {
        padding: 1rem 1rem 1rem;
    }

    .service-card__content {
        padding: 0 1rem 2rem;
    }

    .service-card__features li {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .service-card {
        min-height: 360px;
    }

    .service-card__header {
        padding: 1rem 1rem 1rem;
    }

    .service-card__content {
        padding: 0 1rem 2.5rem;
    }
}

/* Animation for cards appearing */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

    .service-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .service-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-card:nth-child(3) {
        animation-delay: 0.3s;
    }

.process {
    margin-bottom: 4rem;
}

.process__title {
    text-align: center;
    margin-bottom: 3rem;
}

.process__steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.process-step {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 0;
}

    .process-step::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.6s;
    }

    .process-step:hover::before {
        left: 100%;
    }

    .process-step:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--primary);
    }

.process-step__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
}

.process-step__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.process-step__icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.process-step:hover .process-step__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
}

.process-step__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2.5;
}

.process-step__content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.process-step__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    position: relative;
    display: inline-block;
}

    .process-step__title::after {
        content: '';
        position: absolute;
        bottom: -0.25rem;
        left: 0;
        width: 2rem;
        height: 2px;
        background: var(--gradient-primary);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

.process-step:hover .process-step__title::after {
    width: 3rem;
}

.process-step__description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .process__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .process-step {
        min-height: 220px;
    }

    .process-step__header {
        padding: 2rem 2rem 1.5rem;
    }

    .process-step__content {
        padding: 0 2rem 2rem;
    }
}

@media (min-width: 1024px) {
    .process__steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .process-step {
        min-height: 240px;
    }

    .process-step__header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem 1rem;
        gap: 0.75rem;
    }

    .process-step__number {
        font-size: 2rem;
        min-width: auto;
    }

    .process-step__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

        .process-step__icon svg {
            width: 1.25rem;
            height: 1.25rem;
        }

    .process-step__content {
        padding: 0 1rem 1.5rem;
        text-align: center;
    }

    .process-step__title {
        font-size: 1.1rem;
    }

    .process-step__description {
        font-size: 0.85rem;
    }
}

/* Animation for cards appearing */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

    .process-step:nth-child(1) {
        animation-delay: 0.1s;
    }

    .process-step:nth-child(2) {
        animation-delay: 0.2s;
    }

    .process-step:nth-child(3) {
        animation-delay: 0.3s;
    }

    .process-step:nth-child(4) {
        animation-delay: 0.4s;
    }

/* ==============================================
   SERVICES CTA SECTION
   ============================================== */
.services__cta {
    max-width: 800px;
    margin: 0 auto;
}

    .services__cta .card {
        text-align: center;
        padding: 3rem 2rem;
    }

    .services__cta h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: var(--text);
    }

    .services__cta p {
        font-size: 1.125rem;
        color: var(--text-muted);
        margin-bottom: 2.5rem;
        line-height: 1.6;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

.services__cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.services__cta .btn {
    min-width: 160px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services__cta .card {
        padding: 2rem 1.5rem;
    }

    .services__cta h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .services__cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .services__cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .services__cta .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact__content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    grid-template-columns: 1fr 2fr;
    align-items: start;
}

.contact__info {
    max-width: 400px;
}

    .contact__info h3 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

.contact-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-item__icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-item__icon svg {
        width: 20px;
        height: 20px;
        color: var(--primary);
    }

.contact-item__content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item__content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.contact-item__content span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.contact__social {
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-elevated);
}

    .contact__social h4 {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        background: rgba(59, 130, 246, 0.2);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

.contact__form {
    min-height: 100%;
}

    .contact__form .card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact__form h3 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .form-group label {
        font-weight: 500;
        color: var(--text);
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        background: var(--surface-elevated);
        border: 1px solid var(--surface-elevated);
        border-radius: var(--radius);
        color: var(--text);
        font-family: inherit;
        transition: var(--transition);
        resize: none;
        font-size: 0.9rem;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

    .form-group select {
        cursor: pointer;
    }

        .form-group select option {
            background: var(--surface-elevated);
            color: var(--text);
        }

.contact__availability {
    max-width: 500px;
    margin: 0 auto;
}

    .contact__availability p {
        text-align: center;
        color: var(--text-muted);
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact__info {
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-item {
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }

    .contact-item__icon {
        width: 36px;
        height: 36px;
    }

        .contact-item__icon svg {
            width: 18px;
            height: 18px;
        }

    .contact__social {
        padding-top: 1.25rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

        .social-link svg {
            width: 16px;
            height: 16px;
        }
}

@media (min-width: 1024px) {
    .contact__content {
        grid-template-columns: 1fr 2fr;
        align-items: stretch;
    }
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--surface-elevated);
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__links {
    display: grid;
    gap: 2rem;
}

/* h3, not h4: every page ends on an h2 section, so an h4 here skipped a level. The size is
   pinned to what the h4 rule gave so the change stays semantic rather than visual. */
.footer__section h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text);
}

.footer__section ul {
    list-style: none;
}

.footer__section li {
    margin-bottom: 0.5rem;
}

.footer__section a,
.footer__section button {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.footer__section a:hover,
.footer__section button:hover {
    color: var(--primary);
}

.footer__bottom {
    display: flex;
    justify-content: between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-elevated);
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.footer__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__meta a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer__meta a:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr 2fr;
    }

    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__bottom {
        justify-content: space-between;
    }
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Scroll-triggered animations.
   Named properties rather than `all`: `all` re-watches every property that changes on the
   element later. The shorter duration also ends the reveal sooner, which keeps the viewport
   from still settling well past first paint. */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }















.contact__content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    grid-template-columns: 1fr 2fr;
    align-items: start;
}

.contact__info {
    max-width: 400px;
}

    .contact__info h3 {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        text-align: left;
    }

.contact-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-item__icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-item__icon svg {
        width: 18px;
        height: 18px;
        color: var(--primary);
    }

.contact-item__content h4 {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    text-align: left;
}

.contact-item__content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.8rem;
    text-align: left;
}

.contact-item__content span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: left;
}

.contact__social {
    padding-top: 1.25rem;
    border-top: 1px solid var(--surface-elevated);
}

    .contact__social h4 {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        text-align: left;
    }

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 32px;
    height: 32px;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        background: rgba(59, 130, 246, 0.2);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

.contact__form {
    min-height: 100%;
}

    .contact__form .card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact__form h3 {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        text-align: left;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

    .form-group label {
        font-weight: 500;
        color: var(--text);
        font-size: 0.8rem;
        text-align: left;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        background: var(--surface-elevated);
        border: 1px solid var(--surface-elevated);
        border-radius: var(--radius);
        color: var(--text);
        font-family: inherit;
        transition: var(--transition);
        resize: none;
        font-size: 0.8rem;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
            font-size: 0.8rem;
        }

    .form-group select {
        cursor: pointer;
    }

        .form-group select option {
            background: var(--surface-elevated);
            color: var(--text);
        }

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    text-align: left;
}

    .checkbox-label input[type="checkbox"] {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--surface-elevated);
    border: 2px solid var(--surface-elevated);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 2px;
        width: 5px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.checkbox-label:hover .checkmark {
    border-color: var(--primary);
}

.contact__availability {
    max-width: 500px;
    margin: 0 auto;
}

    .contact__availability p {
        text-align: center;
        color: var(--text-muted);
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.5;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact__info {
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-item {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .contact-item__icon {
        width: 32px;
        height: 32px;
    }

        .contact-item__icon svg {
            width: 16px;
            height: 16px;
        }

    .contact__social {
        padding-top: 1rem;
    }

    .social-link {
        width: 28px;
        height: 28px;
    }

        .social-link svg {
            width: 14px;
            height: 14px;
        }
}

@media (min-width: 1024px) {
    .contact__content {
        grid-template-columns: 1fr 2fr;
        align-items: stretch;
    }
}







/* ==============================================
   ABOUT SECTION
   ============================================== */
.about {
    padding: 6rem 0;
    background: var(--gradient-surface);
    scroll-margin-top: var(--nav-height);
}

/* ==============================================
   SKILLS SECTION
   ============================================== */
.skills {
    padding: 6rem 0;
    background: var(--gradient-surface);
    scroll-margin-top: var(--nav-height);
}

/* ==============================================
   PROJECTS SECTION
   ============================================== */
.projects {
    padding: 6rem 0;
    background: var(--gradient-surface);
    scroll-margin-top: var(--nav-height);
}

/* ==============================================
   SERVICES SECTION
   ============================================== */
.services {
    padding: 6rem 0;
    background: var(--gradient-surface);
    scroll-margin-top: var(--nav-height);
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact {
    padding: 4rem 0;
    background: var(--gradient-surface);
    scroll-margin-top: var(--nav-height);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* ==============================================
   MOBILE NAV LINK (hoisted from the admin block)
   ============================================== */
/* The admin/Identity CSS that used to sit here now lives in admin.css. This rule does not:
   it styles the site's own mobile menu. dala.css overrides .nav__links .nav__link only for
   padding, min-width, text-align, border and border-radius — it never sets display,
   align-items or gap, so deleting these three would drop the menu links back to
   display: inline. The original rule's other declarations were either identical to the
   .nav__link rule higher up in this file or overridden by dala, so only these survive. */
@media (max-width: 767px) {
    .nav__link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ==============================================
   MOBILE ZOOM PREVENTION
   ============================================== */
@media screen and (max-width: 768px) {
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        transform: scale(1) !important;
        border-radius: 8px !important; /* Відновлюю заокруглення */
    }

    /* Ensure inputs don't trigger zoom */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100% !important;
        -webkit-appearance: none !important;
        border-radius: 8px !important; /* Відновлюю заокруглення */
    }

    /* Prevent zoom on form focus */
    .contact-form {
        -webkit-text-size-adjust: 100% !important;
    }
}
/* ... existing code ... */

/* ==============================================
   FLOATING CONTACT BUTTON - DARK THEME WITH COLORS
   ============================================== */
.floating-contact-btn {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 
        0 10px 40px rgba(30, 58, 138, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(30, 58, 138, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    cursor: pointer !important;
}

/* Animated background gradient - colorful dark theme */
.floating-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #1e3a8a, #3730a3, #581c87, #7c3aed, #1e3a8a, #3730a3);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradientShift belongs on :hover, not on the base rule. background-position is not a
   composited property, so animating it from first paint forced a paint every frame — on a
   pseudo-element sitting at opacity: 0, i.e. for zero rendered pixels. */
.floating-contact-btn:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

/* Inner glow effect - colorful */
.floating-contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.floating-contact-btn:hover::after {
    width: 100%;
    height: 100%;
}

/* Hover effects - colorful dark theme */
.floating-contact-btn:hover {
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 
        0 20px 60px rgba(30, 58, 138, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(30, 58, 138, 0.5) !important;
    color: white !important;
    text-decoration: none !important;
}

.floating-contact-btn:active {
    transform: translateY(-2px) scale(1.05) !important;
}

/* Icon styling - bright for contrast */
.floating-contact-btn svg {
    width: 1.6rem !important;
    height: 1.6rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) !important;
    color: #ffffff !important;
}

/* Tooltip text - colorful dark theme */
.floating-btn-text {
    position: absolute !important;
    right: 75px !important;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(55, 48, 163, 0.95)) !important;
    backdrop-filter: blur(20px) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    transform: translateX(20px) scale(0.8) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3) !important;
    letter-spacing: 0.5px !important;
}

.floating-contact-btn:hover .floating-btn-text {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

/* Pulse animation - colorful dark theme */
@keyframes pulse {
    0% {
        box-shadow: 
            0 10px 40px rgba(30, 58, 138, 0.4),
            0 0 0 0 rgba(30, 58, 138, 0.6);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(30, 58, 138, 0.6),
            0 0 0 15px rgba(30, 58, 138, 0.2);
    }
    100% {
        box-shadow: 
            0 10px 40px rgba(30, 58, 138, 0.4),
            0 0 0 0 rgba(30, 58, 138, 0.6);
    }
}

.floating-contact-btn.pulse {
    animation: pulse 2s infinite !important;
}

/* Gradient shift animation - colorful */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer effect - colorful theme */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.floating-contact-btn.shimmer {
    background: linear-gradient(
        90deg,
        #1e3a8a 0%,
        #3730a3 25%,
        #581c87 50%,
        #7c3aed 75%,
        #1e3a8a 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: shimmer 2s infinite !important;
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.floating-contact-btn.bounce {
    animation: bounce 1s infinite !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    .floating-contact-btn svg {
        width: 1.4rem !important;
        height: 1.4rem !important;
    }
    
    .floating-btn-text {
        right: 70px !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .floating-contact-btn {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 56px !important;
        height: 56px !important;
    }
    
    .floating-contact-btn svg {
        width: 1.3rem !important;
        height: 1.3rem !important;
    }
    
    .floating-btn-text {
        right: 65px !important;
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Contact Form Loader Styles */
.loader-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.loader-content {
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-elevated);
}

.loader-content .loader-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
    margin-bottom: 1rem;
}

.loader-content h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.loader-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    display: none;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
}

.toast--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
}

.toast--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

.toast__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.toast__content {
    flex: 1;
}

.toast__title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.toast__message {
    margin: 0;
    opacity: 0.9;
    font-size: 0.85rem;
}

.toast__close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toast__close svg {
    width: 14px;
    height: 14px;
}

/* Toast Animation Keyframes */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes toastPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.toast--pulse {
    animation: toastPulse 0.6s ease-in-out;
}

/* Mobile Toast */
@media (max-width: 480px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    @keyframes toastSlideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes toastSlideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
}
