/* ==========================================================================
   SANSKAR ACHARYA PORTFOLIO — MODERN & PREMIUM STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-display: 'Space Grotesk', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Brand palette — Plain, professional tone */
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --primary-glow: rgba(5, 150, 105, 0.18);
    --accent-slate: #1e293b;
    --accent-teal: #0f766e;

    --gradient-brand: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-indigo: linear-gradient(135deg, #047857 0%, #059669 100%);
    --gradient-rose: linear-gradient(135deg, #047857 0%, #059669 100%);

    /* Surfaces */
    --bg-main: #F8F4E9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-soft: #F1EBDA;
    --bg-input: #F3EFE3;
    --bg-ink: #0d1424;

    /* Text */
    --text-heading: #0b1526;
    --text-body: #46566d;
    --text-muted: #8a97ab;
    --text-white: #ffffff;
    --text-soft: #c7d2e0;

    /* Lines & borders */
    --border-color: #e4e9f0;
    --border-light: rgba(228, 233, 240, 0.7);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 12px 30px -8px rgba(16, 24, 40, 0.12);
    --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
    --shadow-glow: 0 12px 30px rgba(5, 150, 105, 0.28);

    /* Motion */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Dark Theme Token Overrides */
[data-theme="dark"] {
    --bg-main: #0b1120;
    --bg-card: #131c31;
    --bg-glass: rgba(19, 28, 49, 0.92);
    --bg-soft: #0f172a;
    --bg-input: #1e293b;

    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --text-soft: #94a3b8;

    --border-color: #1e293b;
    --border-light: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);

    --primary-light: rgba(5, 150, 105, 0.18);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
}

button, input, textarea, select {
    font-family: inherit;
}

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

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: fixed;
    top: -72px;
    left: 16px;
    z-index: 2000;
    background: var(--primary);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.35);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   4. SECTION COMMON
   -------------------------------------------------------------------------- */
.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .reveal:not(.active) {
    opacity: 0;
    transform: translateY(40px);
}

.js-reveal .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 10px 30px -10px rgba(16, 24, 40, 0.12);
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--gradient-brand);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
    transition: transform var(--transition-fast);
}

.logo:hover .logo-box {
    transform: rotate(-8deg) scale(1.08);
}

.logo-text h2 {
    font-size: 17px;
    letter-spacing: -0.4px;
}

.logo-text p {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    color: var(--text-heading);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2.5px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-nav {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: var(--radius-full);
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg) scale(1.08);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    padding: 70px 6% 90px;
    overflow: hidden;
}

/* Decorative background: dot grid + gradient blobs */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(13, 20, 36, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.blob-1 {
    top: -120px;
    right: -80px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.18), transparent 70%);
    animation: floatDrift 14s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -140px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.14), transparent 70%);
    animation: floatDrift 18s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    top: 30%;
    left: 45%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.12), transparent 70%);
    animation: floatDrift 22s ease-in-out infinite alternate;
}

@keyframes floatDrift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, -24px) scale(1.08); }
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
    font-size: clamp(42px, 5.8vw, 68px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.text-gradient {
    color: var(--primary);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.85;
    max-width: 560px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button & Card Micro-Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
}

.btn-primary:hover::before {
    left: 140%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Stats Cards */
.hero-highlights {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 116px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.highlight-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.highlight-card h3 {
    color: var(--primary);
    font-size: 25px;
    font-weight: 700;
}

.highlight-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Profile Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-orbit {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.22), transparent 70%);
    opacity: 0.7;
    filter: blur(28px);
    animation: floatAura 6s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes floatAura {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.image-wrapper {
    position: relative;
    z-index: 1;
    width: min(320px, 78vw);
    height: min(320px, 78vw);
    border-radius: 50%;
    padding: 8px;
    background: var(--gradient-brand);
    box-shadow: 0 24px 50px -12px rgba(5, 150, 105, 0.4);
    transition: transform var(--transition-normal);
}

.image-wrapper:hover {
    transform: scale(1.03);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-card);
}

/* Floating chips around the avatar */
.hero-chip {
    position: absolute;
    z-index: 2;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-full);
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    animation: bob 5s ease-in-out infinite;
}

.chip-location {
    bottom: 26px;
    left: -6px;
}

.chip-location i {
    color: var(--accent-rose);
}

.chip-status {
    top: 26px;
    right: -10px;
    animation-delay: -2.5s;
    color: #16a34a;
}

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

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    z-index: 5;
}

.scroll-indicator:hover {
    color: var(--primary);
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 7px;
    transition: border-color var(--transition-fast);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    border-radius: var(--radius-full);
    background: currentColor;
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 6%;
    background-color: var(--bg-soft);
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 36px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    align-self: flex-start;
    margin-bottom: 16px;
}

.about-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 18px;
}

.about-lead {
    font-size: 16px;
    color: var(--text-heading);
    line-height: 1.8;
    margin-bottom: 14px;
    font-weight: 500;
}

.about-card p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

.pillar-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    flex: 1;
}

.pillar-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--primary);
    box-shadow: 0 16px 36px -10px rgba(5, 150, 105, 0.18);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.15);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.15) rotate(8deg);
    background: var(--primary);
    color: var(--text-white);
}

.icon-backend,
.icon-code,
.icon-growth {
    background: var(--primary-light);
    color: var(--primary);
}

.pillar-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.pillar-content p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.about-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-heading);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.highlight i {
    color: var(--primary);
}

.highlight:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   8. SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-section {
    padding: 100px 6%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px 14px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 14px 30px -6px rgba(5, 150, 105, 0.2);
}

.skill-logo {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-item:hover .skill-logo {
    transform: scale(1.18) rotate(6deg);
}

.skill-item h3 {
    font-size: 15px;
    color: var(--text-heading);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-section {
    padding: 100px 6%;
    background-color: var(--bg-soft);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 44px -10px rgba(16, 24, 40, 0.18);
    border-color: rgba(5, 150, 105, 0.4);
}

/* Gradient cover band (replaces the removed preview images) */
.project-cover {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    opacity: 0.7;
}

.project-cover i {
    position: relative;
    z-index: 1;
    font-size: 52px;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-cover i {
    transform: scale(1.18) rotate(-6deg);
}

.cover-emerald {
    background: var(--gradient-emerald);
}

.cover-indigo {
    background: var(--gradient-indigo);
}

.cover-rose {
    background: var(--gradient-rose);
}

.project-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.project-body h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.project-body p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.project-tech span {
    background: var(--bg-soft);
    color: var(--text-body);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.project-buttons {
    display: flex;
    gap: 12px;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--text-heading);
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.btn-dark:hover {
    background: var(--gradient-brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 6%;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-info,
.contact-message {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Contact info panel: dark green card with white text */
.contact-info {
    background: #047857;
    color: white;
    padding: 40px;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.contact-info h3,
.contact-message h3 {
    font-size: 23px;
    margin-bottom: 30px;
}

.contact-info h3 {
    color: #ffffff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    color: var(--text-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.25);
}

/* Icon tiles: white with green glyph on the dark card */
.contact-info .contact-item i {
    background: #ffffff;
    color: #047857;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.contact-item small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.contact-info .contact-item small {
    color: rgba(255, 255, 255, 0.7);
}

.contact-item p,
.contact-item a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 15px;
    word-break: break-word;
}

.contact-info .contact-item p,
.contact-info .contact-item a {
    color: #ffffff;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-info .contact-item a:hover {
    color: #a7f3d0;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 36px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--gradient-brand);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-message form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
}

.contact-message input,
.contact-message textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-heading);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-message input::placeholder,
.contact-message textarea::placeholder {
    color: var(--text-muted);
}

.contact-message input:focus,
.contact-message textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.contact-message button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--gradient-brand);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.25);
    transition: all var(--transition-fast);
}

.contact-message button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(5, 150, 105, 0.35);
}

.contact-message button[type="submit"]:active {
    transform: translateY(0) scale(0.98);
}

.contact-message button[type="submit"]:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
footer {
    background: var(--bg-ink);
    padding: 32px 6% 24px;
    text-align: center;
    color: var(--text-soft);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.footer-copy {
    color: var(--text-soft);
    font-size: 13.5px;
    margin-bottom: 14px;
}

.footer-copy strong {
    color: var(--text-white);
    font-weight: 700;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.footer-made {
    display: block;
    color: var(--text-muted);
    font-size: 12.5px;
}

.footer-heart {
    color: #ef4444;
    margin: 0 2px;
    animation: heartbeat 1.6s infinite ease-in-out;
}

.footer-back-to-top {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
}

.footer-back-to-top:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   12. SCROLL TO TOP & TOAST
   -------------------------------------------------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: var(--primary-hover);
    border-color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.6), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.scroll-top-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text-heading);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.4s ease 3.6s forwards;
    font-weight: 500;
    font-size: 14px;
}

.toast i {
    color: var(--primary);
    font-size: 20px;
}

.toast.error {
    border-color: #ef4444;
}

.toast.error i {
    color: #ef4444;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-image {
        order: -1;
        margin-bottom: 24px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-highlights {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-normal);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 40px;
    }

    .about-card,
    .contact-info,
    .contact-message {
        padding: 30px 22px;
    }

    .chip-location {
        left: 4px;
    }

    .chip-status {
        right: 0;
    }

    .footer-back-to-top {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 14px auto 0;
    }

    .footer-back-to-top:hover {
        transform: scale(1.12);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .highlight-card {
        min-width: 100%;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        flex-direction: column;
        gap: 14px;
    }

    .logo-text p {
        display: none;
    }

    .nav-right {
        gap: 12px;
    }

    .logo-text h2 {
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   14. ACCESSIBILITY: REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-reveal .reveal:not(.active) {
        opacity: 1 !important;
        transform: none !important;
    }

    .scroll-wheel {
        display: none;
    }
}
