/* ================================
   CSS Variables & Theme
================================ */
:root {
    /* Light Theme */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 20%, 10%);
    --card: hsl(0, 0%, 98%);
    --card-foreground: hsl(220, 20%, 10%);
    --primary: hsl(175, 80%, 40%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 15%, 92%);
    --secondary-foreground: hsl(220, 20%, 10%);
    --muted: hsl(220, 15%, 95%);
    --muted-foreground: hsl(220, 10%, 40%);
    --border: hsl(220, 15%, 85%);
    --gradient-primary: linear-gradient(135deg, hsl(175, 80%, 40%), hsl(200, 80%, 45%));
    --glow-primary: 0 0 40px hsla(175, 80%, 40%, 0.2);
    --shadow-card: 0 8px 32px hsla(220, 20%, 10%, 0.1);
    /* Additional semantic variables for components */
    --primary-color: var(--primary);
    --secondary-color: hsl(260, 60%, 52%);
    --bg-secondary: var(--card);
    --text-primary: var(--card-foreground);
    --text-secondary: var(--muted-foreground);
}

.dark {
    --background: hsl(220, 20%, 4%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 20%, 8%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(175, 80%, 50%);
    --primary-foreground: hsl(220, 20%, 4%);
    --secondary: hsl(220, 20%, 12%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(220, 20%, 15%);
    --muted-foreground: hsl(215, 20%, 60%);
    --border: hsl(220, 20%, 18%);
    --gradient-primary: linear-gradient(135deg, hsl(175, 80%, 50%), hsl(200, 80%, 50%));
    --glow-primary: 0 0 40px hsla(175, 80%, 50%, 0.3);
    --shadow-card: 0 8px 32px hsla(0, 0%, 0%, 0.4);
    /* Additional semantic variables for components (dark) */
    --primary-color: var(--primary);
    --secondary-color: hsl(260, 60%, 58%);
    --bg-secondary: var(--card);
    --text-primary: var(--card-foreground);
    --text-secondary: var(--muted-foreground);
}

/* ================================
   Base Styles
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    margin-top: 22px;
    height: auto;
}

/* ================================
   Utilities
================================ */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: hsla(220, 20%, 8%, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(220, 20%, 18%, 0.5);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

body:not(.dark) .glass-card {
    background: hsla(0, 0%, 100%, 0.7);
    border-color: hsla(220, 15%, 85%, 0.5);
}

.text-center {
    text-align: center;
}

/* ================================
   Buttons
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--glow-primary);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-full {
    width: 100%;
}

/* ================================
   Navbar
================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: hsla(220, 20%, 4%, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

body:not(.dark) .navbar {
    background: hsla(0, 0%, 100%, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .profile-wrapper
    {
        margin-top: 25%;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ================================
   Hero Section
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-glow-1 {
    top: 20%;
    left: -100px;
    background: hsla(175, 80%, 50%, 0.2);
}

.hero-glow-2 {
    bottom: 20%;
    right: -100px;
    background: hsla(175, 80%, 50%, 0.1);
    animation-delay: 1.5s;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-greeting {
    color: var(--primary);
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.hero-tag:hover
{
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.hero-tag i {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-wrapper {
    position: relative;
}

.profile-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid hsla(175, 80%, 50%, 0.3);
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(175, 80%, 50%, 0.2), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.profile-glow {
    position: absolute;
    inset: -1rem;
    border-radius: 50%;
    border: 1px solid hsla(175, 80%, 50%, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }
}

/* ================================
   Section Styles
================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   About Preview Section
================================ */
.about-preview {
    padding: 6rem 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-card {
    padding: 2rem;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.5s ease;
    cursor: pointer;
}

.highlight-card:hover {
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px hsla(175, 80%, 50%, 0.25);
}

.highlight-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.25) rotate(6deg);
}

.highlight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.highlight-card:hover h3 {
    color: var(--primary);
}

.highlight-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ================================
   Projects Section
================================ */
.projects {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.projects-header {
    text-align: center;
    margin-bottom: 5rem;
}

.projects-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid hsla(175, 80%, 50%, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

/* Project Row */
.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 7rem;
    position: relative;
}

.project-row:last-child {
    margin-bottom: 0;
}

.project-row-reverse {
    direction: rtl;
}

.project-row-reverse > * {
    direction: ltr;
}

/* Large background number */
.project-number-bg {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(6rem, 14vw, 11rem);
    font-weight: 700;
    color: var(--border);
    opacity: 0.35;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

/* Project Info */
.project-info {
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
}

.project-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

.project-desc {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-highlight {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.project-highlight i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.stack-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: hsla(175, 80%, 50%, 0.1);
    color: var(--primary);
    border: 1px solid hsla(175, 80%, 50%, 0.25);
    letter-spacing: 0.04em;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Live Demo Button */
.btn-live-demo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-live-demo:hover {
    box-shadow: var(--glow-primary);
    opacity: 0.92;
}

.demo-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-style: normal;
}

.btn-live-demo:hover .demo-arrow {
    transform: translate(3px, -3px);
}

/* Explore Button */
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-explore:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: hsla(175, 80%, 50%, 0.06);
}

/* Browser Mockup */
.project-preview {
    position: relative;
    z-index: 1;
}

.browser-mockup {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px hsla(220, 20%, 10%, 0.12), 0 4px 16px hsla(220, 20%, 10%, 0.08);
    background: var(--card);
    transition: transform 0.5s cubic-bezier(.2,.9,.2,1), box-shadow 0.5s ease;
    will-change: transform;
}

.dark .browser-mockup {
    box-shadow: 0 24px 64px hsla(0, 0%, 0%, 0.5), 0 4px 16px hsla(0, 0%, 0%, 0.3);
}

.project-preview:hover .browser-mockup {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 40px 80px hsla(175, 80%, 50%, 0.18), 0 8px 24px hsla(220, 20%, 10%, 0.1);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    font-size: 0.7rem;
    color: var(--muted-foreground);
    background: var(--muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    margin: 0 auto;
}

.browser-screen {
    background: var(--background);
    min-height: 280px;
    overflow: hidden;
}

/* Screen inner content (decorative UI) */
.project-screen-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 280px;
}

.screen-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.screen-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screen-logo-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    -webkit-text-fill-color: initial;
}

.screen-logo-with-icon i {
    font-size: 0.85rem;
    color: var(--primary);
}

.screen-logo-with-icon span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screen-nav {
    display: flex;
    gap: 6px;
}

.screen-nav span {
    width: 28px;
    height: 5px;
    border-radius: 9999px;
    background: var(--border);
}

.screen-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.screen-title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.screen-line {
    height: 8px;
    border-radius: 9999px;
    background: var(--muted);
}

.screen-line-lg { width: 80%; }
.screen-line-md { width: 55%; }

.screen-avatar-group {
    display: flex;
    gap: -4px;
}

.screen-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: hsla(175, 80%, 50%, 0.12);
    border: 2px solid var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: -6px;
    color: var(--primary);
}

.screen-avatar:first-child { margin-left: 0; }

.screen-avatar i {
    font-size: 0.75rem;
    line-height: 1;
}

.screen-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.screen-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.screen-card-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.screen-card-icon i {
    font-size: 1rem;
}

.screen-card-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.screen-card-lines div {
    height: 4px;
    border-radius: 9999px;
    background: var(--muted);
}

.screen-card-lines div:last-child { width: 70%; }

/* Shop screen */
.project-screen-shop .screen-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.screen-product {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.product-img-placeholder {
    font-size: 1.1rem;
    width: 100%;
    height: 48px;
    background: hsla(175, 80%, 50%, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.product-img-placeholder i {
    font-size: 1.1rem;
    line-height: 1;
}

.product-info-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-info-lines div {
    height: 4px;
    border-radius: 9999px;
    background: var(--muted);
}

.product-info-lines div:last-child { width: 60%; }

.screen-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #25d366;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
    align-self: center;
}

/* Bottle Media Agency Screen */
.project-screen-agency .screen-logo-agency {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--foreground);
}

.project-screen-agency .screen-logo-agency i {
    color: hsl(260, 80%, 65%);
}

.agency-hero-tagline {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0.25rem 0;
}

.agency-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.agency-service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.agency-service-card i {
    font-size: 1.1rem;
    color: hsl(260, 80%, 60%);
}

.dark .agency-service-card i {
    color: hsl(260, 80%, 70%);
}

.agency-service-card span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.agency-footer-bar {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.agency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: hsla(260, 80%, 60%, 0.12);
    color: hsl(260, 80%, 60%);
    border: 1px solid hsla(260, 80%, 60%, 0.25);
}

.dark .agency-badge {
    color: hsl(260, 80%, 75%);
}

.project-preview-glow-bottle {
    background: radial-gradient(circle, hsla(260, 80%, 60%, 0.14) 0%, transparent 70%);
}

/* Preview glow */
.project-preview-glow {
    position: absolute;
    inset: -2rem;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(175, 80%, 50%, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.project-preview:hover .project-preview-glow {
    opacity: 1;
}

/* ================================
   Project Detail Overlay
================================ */
.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-overlay[aria-hidden="false"] {
    pointer-events: all;
    opacity: 1;
}

.project-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: hsla(220, 20%, 4%, 0.6);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.project-overlay-panel {
    position: relative;
    width: min(560px, 95vw);
    height: 100vh;
    background: var(--card);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 3rem 2.5rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2,.9,.2,1);
    box-shadow: -20px 0 60px hsla(0, 0%, 0%, 0.2);
}

body:not(.dark) .project-overlay-panel {
    box-shadow: -20px 0 60px hsla(220, 20%, 10%, 0.12);
}

.project-overlay[aria-hidden="false"] .project-overlay-panel {
    transform: translateX(0);
}

.project-overlay-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.project-overlay-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Overlay content styles */
.overlay-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.overlay-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.overlay-desc {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.overlay-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    margin-top: 1.75rem;
}

.overlay-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.overlay-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--foreground);
    line-height: 1.5;
}

.overlay-feature i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.overlay-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.overlay-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive Projects */
@media (max-width: 900px) {
    .project-row,
    .project-row-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2.5rem;
        margin-bottom: 5rem;
    }

    /* Keep every project in the same mobile order:
       Browser → Project Information */
    .project-preview {
        order: 1;
    }

    .project-info {
        order: 2;
    }

    .project-number-bg {
        font-size: 5rem;
        opacity: 0.2;
    }

    .project-desc {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 4rem 0;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-live-demo,
    .btn-explore {
        width: 100%;
        justify-content: center;
    }

    .project-overlay-panel {
        padding: 2.5rem 1.5rem 2rem;
    }
}

/* ================================
   Technical Skills Section
================================ */
.skills {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        var(--background) 0%,
        hsla(175, 35%, 97%, 0.65) 45%,
        var(--background) 100%
    );
}

.dark .skills {
    background: linear-gradient(
        180deg,
        var(--background) 0%,
        hsla(175, 30%, 7%, 0.85) 45%,
        var(--background) 100%
    );
}

.skills-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsla(175, 40%, 50%, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, hsla(175, 40%, 50%, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    pointer-events: none;
}

.dark .skills-bg-grid {
    background-image:
        linear-gradient(hsla(175, 40%, 50%, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, hsla(175, 40%, 50%, 0.06) 1px, transparent 1px);
}

.skills-bg-glow {
    position: absolute;
    top: 10%;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(175, 80%, 50%, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.skills-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.skills-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.skills-showcase {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.skills-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: 6rem;
}

.skills-mobile-controls {
    display: none;
}

.skills-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: hsla(0, 0%, 100%, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--muted-foreground);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .skills-nav-item {
    background: hsla(220, 20%, 8%, 0.55);
}

.skills-nav-item:hover {
    border-color: hsla(175, 80%, 50%, 0.35);
    color: var(--foreground);
    transform: translateX(4px);
}

.skills-nav-item.active {
    border-color: hsla(175, 80%, 50%, 0.45);
    color: var(--foreground);
    background: hsla(175, 80%, 50%, 0.06);
}

.skills-nav-index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    opacity: 0.7;
    flex-shrink: 0;
}

.skills-nav-item.active .skills-nav-index {
    opacity: 1;
}

.skills-nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.skills-nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 55%;
    border-radius: 0 4px 4px 0;
    background: var(--gradient-primary);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.skills-nav-item.active .skills-nav-indicator {
    transform: translateY(-50%) scaleY(1);
}

.skills-stage {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 320px;
}

.skills-orbit {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    flex-shrink: 0;
}

.skills-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid hsla(175, 80%, 50%, 0.15);
    animation: skills-orbit-spin 48s linear infinite;
}

.skills-orbit-ring-inner {
    inset: 18px;
    border-style: dashed;
    border-color: hsla(175, 80%, 50%, 0.1);
    animation-direction: reverse;
    animation-duration: 36s;
}

@keyframes skills-orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.skills-orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--border);
    transform: rotate(calc(var(--orbit-i, 0) * 60deg)) translateY(-72px);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.skills-orbit-node[data-orbit="0"] { --orbit-i: 0; }
.skills-orbit-node[data-orbit="1"] { --orbit-i: 1; }
.skills-orbit-node[data-orbit="2"] { --orbit-i: 2; }
.skills-orbit-node[data-orbit="3"] { --orbit-i: 3; }
.skills-orbit-node[data-orbit="4"] { --orbit-i: 4; }
.skills-orbit-node[data-orbit="5"] { --orbit-i: 5; }

.skills-orbit-node.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px hsla(175, 80%, 50%, 0.15);
    transform: rotate(calc(var(--orbit-i, 0) * 60deg)) translateY(-72px) scale(1.35);
}

.skills-orbit-core {
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 0%, 100%, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(175, 80%, 50%, 0.2);
    color: var(--primary);
    font-size: 1.35rem;
    box-shadow: var(--shadow-card);
}

.dark .skills-orbit-core {
    background: hsla(220, 20%, 10%, 0.8);
}

.skills-panels {
    position: relative;
    min-height: 280px;
}

.skills-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
    pointer-events: none;
}

.skills-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.skills-panel-meta {
    margin-bottom: 1.75rem;
}

.skills-panel-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.skills-panel-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    max-width: 520px;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    background: hsla(0, 0%, 100%, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.dark .skill-chip {
    background: hsla(220, 20%, 8%, 0.65);
}

.skills-panel.active .skill-chip {
    opacity: 1;
    transform: translateY(0);
}

.skills-panel.active .skill-chip:nth-child(1) { transition-delay: 0.05s; }
.skills-panel.active .skill-chip:nth-child(2) { transition-delay: 0.1s; }
.skills-panel.active .skill-chip:nth-child(3) { transition-delay: 0.15s; }
.skills-panel.active .skill-chip:nth-child(4) { transition-delay: 0.2s; }
.skills-panel.active .skill-chip:nth-child(5) { transition-delay: 0.25s; }

.skill-chip:hover {
    border-color: hsla(175, 80%, 50%, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px hsla(175, 80%, 50%, 0.1);
}

.skills-panel.active .skill-chip:hover {
    transform: translateY(-3px);
}

.skill-chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(175, 80%, 50%, 0.08);
    border: 1px solid hsla(175, 80%, 50%, 0.15);
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skill-chip:hover .skill-chip-icon {
    transform: scale(1.06);
    background: hsla(175, 80%, 50%, 0.14);
}

.skill-chip-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .skills-showcase {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .skills-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .skills-nav::-webkit-scrollbar {
        display: none;
    }

    .skills-nav-item {
        flex: 0 0 auto;
        min-width: 148px;
        transform: none;
    }

    .skills-nav-item:hover {
        transform: translateY(-2px);
    }

    .skills-nav-index {
        display: inline-block;
        font-size: 0.75rem;
        opacity: 0.8;
    }

    .skills-nav-indicator {
        left: 50%;
        top: auto;
        bottom: 0;
        width: 40%;
        height: 3px;
        transform: translateX(-50%) scaleX(0);
        border-radius: 4px 4px 0 0;
    }

    .skills-nav-item.active .skills-nav-indicator {
        transform: translateX(-50%) scaleX(1);
    }

    .skills-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .skills-mobile-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 48px;
        padding: 0.75rem 1.25rem;
        background: hsla(0, 0%, 100%, 0.65);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        color: var(--foreground);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.04);
    }

    .dark .skills-mobile-btn {
        background: hsla(220, 20%, 8%, 0.65);
        box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.2);
    }

    .skills-mobile-btn:hover:not(:disabled) {
        border-color: hsla(175, 80%, 50%, 0.5);
        color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px hsla(175, 80%, 50%, 0.15);
    }

    .skills-mobile-btn:active:not(:disabled) {
        transform: scale(0.97);
    }

    .skills-mobile-btn .btn-arrow {
        display: inline-block;
        font-size: 1.1rem;
        line-height: 1;
        transition: transform 0.3s ease;
        color: var(--primary);
    }

    .skills-mobile-prev:hover:not(:disabled) .btn-arrow {
        transform: translateX(-4px);
    }

    .skills-mobile-next:hover:not(:disabled) .btn-arrow {
        transform: translateX(4px);
    }

    .skills-mobile-btn:disabled,
    .skills-mobile-btn.disabled {
        opacity: 0.35;
        cursor: not-allowed;
        pointer-events: none;
        border-color: var(--border);
        box-shadow: none;
        background: transparent;
    }

    .skills-stage {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-orbit {
        width: 120px;
        height: 120px;
    }

    .skills-orbit-core {
        inset: 32px;
        font-size: 1.1rem;
    }

    .skills-orbit-node {
        transform: rotate(calc(var(--orbit-i, 0) * 72deg)) translateY(-54px);
    }

    .skills-orbit-node.active {
        transform: rotate(calc(var(--orbit-i, 0) * 72deg)) translateY(-54px) scale(1.35);
    }
}

@media (max-width: 640px) {
    .skills {
        padding: 4.5rem 0;
    }

    .skills-header {
        margin-bottom: 2.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-orbit {
        display: none;
    }

    .skills-stage {
        min-height: auto;
    }

    .skills-panels {
        min-height: 240px;
    }
}

/* ================================
   Certificates Section
================================ */
.certificates {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1.0625rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px hsla(175, 80%, 50%, 0.2);
}

.certificate-card:hover::before {
    left: 100%;
}

.view-certificate {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.certificate-card:hover .view-certificate {
    opacity: 1;
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.certificate-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.certificate-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.certificate-date {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal Styles */
#certificateModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#certificateModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: var(--card);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--muted-foreground);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    color: var(--primary);
}

#certificateImage {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.2);
    margin-bottom: 1rem;
}

#certificateTitle {
    color: var(--foreground);
    margin-top: 1rem;
    font-size: 1.5rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================================
   Contact Section
================================ */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-wrapper .glass-card {
    height: 100%;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(175, 80%, 50%, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: hsla(175, 80%, 50%, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.contact-value {
    font-weight: 500;
}

/* Social Grid - Fixed alignment */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: hsla(175, 80%, 50%, 0.1);
}

.social-link i {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.social-link:hover i {
    color: var(--primary);
}

.social-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.social-name {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.social-handle {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 500px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Footer
================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--muted-foreground);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .footer-container {
        justify-content: center;
        text-align: center;
    }
}

/* ================================
   About Page
================================ */
.about-page {
    padding: 7rem 0 4rem;
}

.bio-section {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.bio-card {
    padding: 2.5rem;
}

.bio-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .bio-content {
        flex-direction: column;
        text-align: center;
    }
}

.bio-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid hsla(175, 80%, 50%, 0.3);
    flex-shrink: 0;
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(175, 80%, 50%, 0.2), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.bio-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bio-text p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.skills-section {
    max-width: 900px;
    margin: 0 auto;
}

.skills-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-card {
    padding: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-info h3 {
    font-size: 1.125rem;
}

.skill-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.skill-badge.strong {
    background: hsla(175, 80%, 50%, 0.2);
    color: var(--primary);
}

.skill-badge.middle {
    background: hsla(45, 100%, 50%, 0.2);
    color: hsl(45, 100%, 50%);
}

.skill-badge.basics {
    background: var(--muted);
    color: var(--muted-foreground);
}

.skill-percent {
    color: var(--muted-foreground);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--muted);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
    width: 0;
    transition: width 1s ease-out;
}

.skill-bar-fill.animate {
    width: var(--skill-width);
}

/* ================================
   Animations
================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ================================
   Responsive Adjustments
================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Modals & Admin UI
================================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10050;
}
.modal[aria-hidden="false"] {
    display: flex;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}
.modal-content {
    position: relative;
    width: min(900px, 95%);
    max-height: 90vh;
    overflow: auto;
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    animation: modalPop 0.32s cubic-bezier(.2,.9,.2,1);
}
.modal-close {
    position: absolute;
    right: 0.5rem;
    top: 0.25rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--muted-foreground);
}
.cert-modal-body {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.cert-modal-image {
    width: 360px;
    min-height: 220px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-modal-image img { width: 100%; height: auto; object-fit: contain; }
.cert-modal-info h3 { margin-bottom: 0.25rem; }
.cert-modal-info p { color: var(--muted-foreground); margin-bottom: 0.25rem; }

.cert-admin-auth { display:flex; flex-direction:column; gap:0.5rem; max-width:420px; }
.password-field { display:flex; gap:0.5rem; align-items:center; }
.password-field input { flex:1; padding:0.5rem 0.75rem; border-radius:8px; border:1px solid var(--border); background:var(--background); color:var(--foreground); }
.password-field .btn { padding:0.45rem 0.6rem; font-size:0.9rem; }
.cert-admin-auth h4 { margin:0; }

/* Profile hover swap */
.profile-circle { transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 420ms ease; }
.profile-circle:hover { transform: translateY(-8px) rotate(-2deg) scale(1.03); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.profile-circle.swap-image { border-color: var(--primary); box-shadow: var(--glow-primary);}

.cert-admin-body { max-width:820px; }
.cert-form .form-group { margin-bottom:0.75rem; }
.cert-form input[type="text"], .cert-form input[type="password"] { width:100%; padding:0.5rem 0.75rem; border-radius:6px; border:1px solid var(--border); background:var(--secondary); color:var(--foreground); }
.form-actions { display:flex; gap:0.5rem; margin-top:0.5rem; }
.cert-admin-list { display:flex; flex-direction:column; gap:0.5rem; margin-top:0.5rem; }
.cert-admin-list .admin-item { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; padding:0.5rem; border:1px dashed var(--border); border-radius:8px; }
.cert-admin-list .admin-item .meta { flex:1; overflow:hidden; }
.cert-admin-list .admin-item .meta strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cert-admin-list .admin-actions { display:flex; gap:0.5rem; }

/* Small admin button near title */
.cert-admin-actions { margin-top:0.75rem; display:flex; justify-content:center; }

/* Certificate card pointer and subtle 3D hover for advanced feel */
.certificate-card { transform: perspective(800px) translateZ(0); will-change: transform; }
.certificate-card:hover { transform: translateY(-10px) rotateX(2deg) translateZ(8px); }

@keyframes modalPop {
    from { transform: translateY(10px) scale(.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Advanced stagger animation helpers */
.stagger-in > * { opacity: 0; transform: translateY(24px) scale(.98); }
.stagger-in.visible > * { opacity: 1; transform: translateY(0) scale(1); transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.6s ease; }
.stagger-in.visible > *:nth-child(1) { transition-delay: 0.06s; }
.stagger-in.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-in.visible > *:nth-child(3) { transition-delay: 0.18s; }
.stagger-in.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-in.visible > *:nth-child(5) { transition-delay: 0.30s; }


/* ================================
   Values Grid (About Page)
================================ */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(260, 60%, 52%, 0.08), transparent);
    transition: left 0.6s ease;
}

.value-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px hsla(260, 60%, 52%, 0.18);
}

.value-item:hover::before {
    left: 100%;
}

.value-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.value-item:hover i {
    color: white;
    transform: scale(1.2) rotate(10deg);
}

.value-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.value-item:hover h4 {
    color: white;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.value-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

