/* v3 */
@import 'tailwindcss';
...
@import 'tailwindcss';
@import 'tw-animate-css';

@custom-variant dark (&:is(.dark *));

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

@theme inline {
  --font-sans: 'Geist', 'Geist Fallback';
  --font-mono: 'Geist Mono', 'Geist Mono Fallback';
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Parallax effect for hero image */
.hero-image {
    will-change: transform;
    transform: translateY(0px);
    transition: transform 0.1s ease-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Color Variables */
:root {
    --primary-gold: #d4a574;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --accent-gold: #d4a574;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-border);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    margin-top: 80px;
    padding: 0 2rem;
    background-color: var(--light-bg);
    overflow: hidden;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; 
}

.accent-line {
    width: 3rem;
    height: 0.25rem;
    background-color: var(--accent-gold);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.hero-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--gray-light);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-footer {
    max-width: 1200px;
    margin: 5rem auto 0;
    padding: 2rem 2rem;
    text-align: center;
}

.hero-footer p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-footer .highlight-gold {
    color: var(--accent-gold);
}

.small-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: 6rem 2rem;
    background-color: var(--gray-light);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: white;
}

.btn-primary:hover {
    background-color: #c49060;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: #2a2a2a;
    color: white;
    border: none;
    padding: 0.65rem 1.3rem;
    font-size: 0.9rem;
}

.btn-dark:hover {
    background-color: var(--text-dark);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 0.65rem 1.3rem;
    font-size: 0.9rem;
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: white;
}

.btn-submit {
    display: flex;
    justify-content: center;
    background-color: var(--accent-gold);
    color: white;
    padding: 0.8rem 2rem;
    width: auto;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #c49060;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, #faf7f2 100%);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-label {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 1.5rem auto 0;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease,
                border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,165,116,0.6), transparent 50%, rgba(212,165,116,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 30px 60px -20px rgba(212, 165, 116, 0.35),
                0 12px 28px -12px rgba(0, 0, 0, 0.12);
}

.project-card:hover::after { opacity: 1; }

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: var(--gray-light);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0) 40%, rgba(20, 20, 30, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-overlay-links {
    display: flex;
    gap: 0.75rem;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-overlay-links { transform: translateY(0); }

.project-icon-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.project-icon-link svg {
    width: 18px;
    height: 18px;
}

.project-icon-link:hover {
    background: var(--accent-gold);
    color: #fff;
    transform: scale(1.1);
}

.project-icon-link.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-body {
    padding: 1.75rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title { color: var(--accent-gold); }

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}

.project-tag:hover {
    background: var(--accent-gold);
    color: #fff;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

.skills {
    padding: 6rem 2rem;
    background-color: var(--gray-light);
}

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-left {
    text-align: left;
    margin-bottom: 4rem;
}

.section-header-left .section-title {
    text-align: left;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
}

.skill-card {
    min-height: 200px;
    background-color: white;
    border: 1px solid var(--gray-border);
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15);
    transform: translateY(-4px);
}

.skill-icon {
    font-size: 1.5rem;           /* This is the most important line */
    margin-bottom: 1.2rem;     /* Adds breathing room between icon and text */
    color: #1a1a1a;            /* Keeps them sharp and dark */
    display: inline-block;     /* Ensures they respect margins/padding */
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    color: #b08968;            /* Optional: matches your gold/tan accent color */
}

.skill-card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

.blog {
    padding: 6rem 2rem;
    background-color: white;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.blog-content {
    /* Wrapper kept for backward compatibility; not used as a flex/grid item now */
    display: contents;
}

.blog-quote {
    align-self: center;
    text-align: right;
    padding-right: 1rem;
}

.blog-quote p {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    transition: opacity 0.6s ease;
}

.blog-quote p.fade-out {
    opacity: 0;
}

.quote-break {
    display: inline;
}

.blog-main {
    align-self: center;
    max-width: 480px;
}

.blog-main h2,
.blog-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.blog-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -30px; /* Adjusts how far below the text the line sits */
    width: 50px;    /* Matches the short length in your reference image */
    height: 4px;    /* Thickness of the line */
    background-color: #d4a373; /* That golden/tan color from your screenshot */
    border-radius: 2px;
}

.blog-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin: 1.5rem 0 2rem;
}

.blog-link {
    color: var(--text-dark);
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-gold);
}

.blog-illustration {
    width: 100%;
    align-self: center;
}

.blog-illustration img {
    width: 100%;
    height: 700px;
    object-fit: contain;
}

/* Override clip-path wipe for blog illustration - smooth fade + slide-up instead */
.blog-illustration.fx-img-mask img {
    clip-path: none !important;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-illustration.fx-img-mask.is-visible img {
    opacity: 1;
    transform: translateY(0);
}

/* Override clip-path wipe for blog illustration - smooth fade + slide-up instead */
.blog-illustration.fx-img-mask img {
    clip-path: none !important;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-illustration.fx-img-mask.is-visible img {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .blog {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .blog-quote { text-align: center; padding-right: 0; }
    .blog-main { margin: 0 auto; }
}

/* Achievements section removed */

/* Memories section removed */

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
    padding: 6rem 2rem;
    background-color: var(--gray-light);
}

.contact-header {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding-left: 0;
    text-align: left;
}

.contact-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.contact-form-container {
    max-width: 1100px;
    margin: 0 auto;
    /* Add these to center the card vertically and horizontally */
    display: flex;
    justify-content: center; 
    align-items: center;
    min-height: 400px; /* Adjust based on your section height */
}

.contact-card {
    background-color: white;
    border: 1px solid var(--gray-border);
    border-radius: 0.75rem;
    padding: 3rem;
    width: 100%; /* Ensures it's responsive */
    max-width: 700px;
    /* margin: 0; */ /* Flexbox handles the spacing now */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.email-input-wrapper {
    position: relative;
}

.email-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    color: var(--accent-gold);
    pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 3rem 2rem;
    background-color: var(--light-bg);
    border-top: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 
   New addition: This ensures the Left, Center, and Right 
   containers all have the same width so the center is 100% accurate.
*/
.footer > * {
    flex: 1;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left; /* Keep your name on the left */
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center; /* Force this to the exact center */
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end; /* Keep the SVGs on the right */
}

.footer-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8); 
    transition: all 0.3s ease;
}

.footer-icon:hover img {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.75rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .blog {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .contact-card {
        padding: 2rem;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .project-buttons {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem 0.75rem;
    }

    /* achievements-timeline removed */

    .footer-text {
        order: 2;
    }

    .footer-links {
        order: 1;
        width: 100%;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card,
.skill-card {
    animation: fadeInUp 0.6s ease-out;
}

section {
    position: relative;
}

/* ==========================================================================
   MINIMALIST PRELOADER
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: all;
    overflow: hidden;
}

/* Two curtains that split apart on exit */
.preloader-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: #ffffff;
    /* Use a standard ease or cubic-bezier */
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1); 
    z-index: 1;
}

.preloader-curtain-left  { left: 0; }
.preloader-curtain-right { right: 0; }

.preloader.is-exiting .preloader-curtain-left  { transform: translateX(-100%); }
.preloader.is-exiting .preloader-curtain-right { transform: translateX(100%); }

.preloader.is-hidden { display: none; }

/* Center content sits above curtains */
.preloader-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.preloader.is-exiting .preloader-content { opacity: 0; }

/* Letters rise into view, staggered */
.preloader-letters {
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.preloader-letters span {
    display: inline-block;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    transform: translateY(110%);
    opacity: 0;
    animation: preloaderLetterRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.preloader-letters span:nth-child(1) { animation-delay: 0.00s; }
.preloader-letters span:nth-child(2) { animation-delay: 0.08s; }
.preloader-letters span:nth-child(3) { animation-delay: 0.16s; }
.preloader-letters span:nth-child(4) { animation-delay: 0.24s; }
.preloader-letters span:nth-child(5) { animation-delay: 0.32s; }
.preloader-letters span:nth-child(6) { animation-delay: 0.40s; }

@keyframes preloaderLetterRise {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Gold progress line */
.preloader-bar {
    position: relative;
    width: clamp(12rem, 25vw, 18rem);
    height: 2px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.preloader-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background-color: #d4a574;
    transition: width 0.05s linear;
}

.preloader-counter {
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #666666;
}

/* Lock body scroll while loading */
body.is-loading {
    overflow: hidden;
}

/* Hero reveal animation triggered after preloader */
body.is-loading .hero-content > *,
body.is-loading .hero-image {
    opacity: 0;
    transform: translateY(20px);
}

body.is-loaded .hero-content > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.is-loaded .hero-content > *:nth-child(1) { transition-delay: 0.1s; }
body.is-loaded .hero-content > *:nth-child(2) { transition-delay: 0.25s; }
body.is-loaded .hero-content > *:nth-child(3) { transition-delay: 0.4s; }

body.is-loaded .hero-image {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-letters span,
    .preloader-curtain,
    .preloader-content,
    body.is-loaded .hero-content > *,
    body.is-loaded .hero-image {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   ✨ COOL MINIMAL EFFECTS LAYER — additive, site-wide
   ========================================================================== */

/* ---------- 1. Subtle floating grid background ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 165, 116, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 165, 116, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: fxGridFade 1.2s ease 2s forwards, fxGridDrift 40s linear 2s infinite;
}
@keyframes fxGridFade { to { opacity: 1; } }
@keyframes fxGridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

/* Soft gold ambient blob behind hero */
.hero { position: relative; overflow: hidden; }
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,165,116,0.18) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: fxBlobFloat 12s ease-in-out infinite;
}
@keyframes fxBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 30px) scale(1.1); }
}
.hero > * { position: relative; z-index: 1; }

/* ---------- 2. Custom cursor (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, label { cursor: none; }

    .fx-cursor-dot, .fx-cursor-ring {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 99999;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        will-change: transform;
    }
    .fx-cursor-dot {
        width: 6px; height: 6px;
        background: var(--primary-gold);
        transition: transform 0.15s ease, opacity 0.2s ease;
    }
    .fx-cursor-ring {
        width: 36px; height: 36px;
        border: 1.5px solid var(--primary-gold);
        opacity: 0.6;
        transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    }
    .fx-cursor-ring.is-hover {
        width: 60px; height: 60px;
        background: rgba(212,165,116,0.1);
        opacity: 1;
    }
    .fx-cursor-dot.is-hover { transform: translate(-50%, -50%) scale(0); }
}

/* ---------- 3. Scroll progress bar ---------- */
.fx-scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: var(--fx-scroll, 0%);
    background: linear-gradient(90deg, var(--primary-gold), #f0d4a8);
    z-index: 10000;
    box-shadow: 0 0 10px rgba(212,165,116,0.5);
    transition: width 0.1s linear;
}

/* ---------- 4. Reveal on scroll ---------- */
.fx-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fx-reveal-left { transform: translateX(-40px); }
.fx-reveal-left.is-visible { transform: translateX(0); }
.fx-reveal-right { transform: translateX(40px); }
.fx-reveal-right.is-visible { transform: translateX(0); }

/* Stagger delay helpers */
.fx-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fx-stagger.is-visible > *           { opacity: 1; transform: translateY(0); }
.fx-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.fx-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.fx-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.fx-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.fx-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.fx-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.fx-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.fx-stagger.is-visible > *:nth-child(8) { transition-delay: 0.40s; }
.fx-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.45s; }

/* ---------- 5. Section title letter rise ---------- */
.fx-title-anim .fx-letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.fx-title-anim .fx-letter.fx-space { width: 0.3em; }
.fx-title-anim.is-visible .fx-letter { transform: translateY(0); opacity: 1; }

/* ---------- 6. Accent line draw-in ---------- */
.accent-line {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;
}
.fx-reveal.is-visible .accent-line,
.is-visible > .accent-line,
.is-visible .accent-line { transform: scaleX(1); }

/* ---------- 7. Image reveal mask (clip-path) ---------- */
.fx-img-mask {
    overflow: hidden;
    position: relative;
}
.fx-img-mask img {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s ease;
}
.fx-img-mask.is-visible img { clip-path: inset(0 0 0 0); }
.fx-img-mask:hover img { transform: scale(1.05); }

/* ---------- 8. Project card tilt + glow ---------- */
.project-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---------- 9. Magnetic buttons + ripple ---------- */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                background 0.3s ease,
                color 0.3s ease;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, rgba(212,165,116,0.4), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 0;
}
.btn:hover::before { width: 300px; height: 300px; }
.btn > * { position: relative; z-index: 1; }
.btn:hover {
    box-shadow: 0 12px 30px -8px rgba(212,165,116,0.5);
}

/* ---------- 10. Nav link reveal underline + active ---------- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 2px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.nav-link:hover, .nav-link.active { color: var(--primary-gold); }

/* Navbar shrink on scroll */
.navbar {
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.is-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255,255,255,0.85);
    box-shadow: 0 4px 20px -8px rgba(0,0,0,0.1);
}

/* ---------- 11. Skill card hover lift + icon spin ---------- */
.skill-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.skill-card:hover {
    transform: translateY(-8px);
    background: #fff;
    border-color: var(--primary-gold);
    box-shadow: 0 18px 40px -15px rgba(212,165,116,0.4);
}
.skill-icon { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease; }
.skill-card:hover .skill-icon {
    transform: rotate(360deg) scale(1.1);
    color: var(--primary-gold);
}

/* ---------- 12. Milestone dot pulse — section removed ---------- */

/* ---------- 13. Form focus glow ---------- */
.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 4px rgba(212,165,116,0.15);
    outline: none;
    transform: translateY(-2px);
}

/* ---------- 14. CTA title shimmer ---------- */
.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-align: center;
}
@keyframes fxShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 16. Blog link arrow slide + breathing ---------- */
.blog-link {
    position: relative;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-block;
    animation: blogBreathe 1.6s ease-in-out infinite;
}
.blog-link:hover {
    color: var(--primary-gold);
    letter-spacing: 0.05em;
    animation-play-state: paused;
}

@keyframes blogBreathe {
    0%, 100% { opacity: 1;    transform: scale(1);    }
    50%       { opacity: 0.5; transform: scale(0.95); }
}

/* ---------- 17. Highlight gold animated underline ---------- */
.highlight-gold {
    background: linear-gradient(transparent 75%, rgba(212,165,116,0.4) 75%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: fxHighlight 1.4s ease-out 2.5s forwards;
}
@keyframes fxHighlight { to { background-size: 100% 100%; } }

/* ---------- 18. Reduce motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem; 
        margin: 0 1rem;
    }
}

/* About section scroll positioning */
#about {
    scroll-margin-top: 200px;        /* offsets fixed navbar so text is visible */
    padding-top: 40px;              /* tighter top so 'I am a Bachelor...' is the first thing seen */
    padding-bottom: 80px;
}

#about .hero-footer {
    padding-top: 0;
    margin-top: 0;
}

#home.hero {
    display: flex;
    align-items: center;
    scroll-margin-top: 0;
}
/* This ensures the external image stays inside your white box */
img.skill-icon {
    width: 3.5rem !important;  /* Use !important if other styles are overriding this */
    height: 3.5rem !important;
    object-fit: contain;       /* Keeps the logo from stretching */
    display: block;
    margin: 0 auto 1.2rem auto; /* Centers it and adds bottom spacing */
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

/* GitHub button - dark themed */
.project-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #24292e;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* Live button - gold accent */
.project-icon-link--live {
    background: var(--accent-gold);
    color: #fff;
}

.project-icon-link:hover {
    transform: scale(1.15);
    background: #444d56;
}

.project-icon-link--live:hover {
    background: var(--accent-gold);
    filter: brightness(1.15);
}

.link-label {
    display: none;
}
/* ---------- In Progress Status Badge ---------- */
.project-status {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.45);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    animation: statusPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.75); }
}
/* ==========================================================================
   MOBILE RESPONSIVENESS — COMPREHENSIVE FIX
   ========================================================================== */

/* ── Navbar: hamburger menu on mobile ────────────────────────────────────── */

/* Button hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
    z-index: 1100;
}

/* The three bars */
.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity   0.25s ease,
                width     0.3s ease;
    transform-origin: center;
}

/* Bars animate into X when open */
.mobile-menu-btn.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.mobile-menu-btn.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-container {
        padding: 0 1.25rem;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Nav links: smooth slide-down drawer */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--gray-border);
        padding: 0.5rem 0;
        gap: 0;
        z-index: 1000;
        box-shadow: 0 12px 32px rgba(0,0,0,0.10);
        /* Slide animation */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links li:last-child .nav-link {
        border-bottom: none;
    }

    /* Kill the underline animation inside the dropdown */
    .nav-link::after {
        display: none;
    }
}

/* ── Hero section ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding: 0 1.25rem;
        margin-top: 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2.5rem 0 3rem;
        gap: 2rem;
        /* Image first, text below — matches typical portfolio mobile layout */
        grid-template-rows: auto auto;
    }

    /* Put image on top, content below */
    .hero-image {
        order: -1;
        aspect-ratio: 4/3;
        max-height: 320px;
        border-radius: 0.75rem;
    }

    .hero-content {
        order: 0;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .accent-line {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        aspect-ratio: 3/2;
        max-height: 240px;
    }
}

/* ── About / Hero footer ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-footer {
        margin-top: 2rem;
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    .hero-footer p {
        font-size: 1rem;
    }
}

/* ── CTA section ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cta-section {
        padding: 3.5rem 1.25rem;
    }

    .cta-title {
        font-size: 1.6rem;
        letter-spacing: 0.08em;
    }

    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ── Projects section ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .projects {
        padding: 4rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Show project overlay links always on mobile (no hover) */
    .project-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(20,20,30,0.7) 100%);
    }

    .project-overlay-links {
        transform: translateY(0);
    }
}

/* ── Skills section ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .skills {
        padding: 4rem 1.25rem;
    }

    .section-header-left {
        margin-bottom: 2rem;
        text-align: center;
    }

    .section-header-left .section-title {
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .skill-card {
        min-height: 130px;
        padding: 1.25rem 0.5rem;
    }

    .skill-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Blog section ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .blog {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1.25rem;
        text-align: center;
        max-width: 100%;
    }

    .blog-quote {
        text-align: center;
        padding-right: 0;
        order: 2;
    }

    .blog-main {
        order: 1;
        margin: 0 auto;
        max-width: 100%;
    }

    .blog-illustration {
        order: 3;
    }

    .blog-quote p {
        font-size: 1.1rem;
    }

    .blog-illustration img {
        height: 280px;
    }
}

/* ── Contact section ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 1.25rem;
    }

    .contact-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-description {
        max-width: 100%;
    }

    .contact-form-container {
        min-height: auto;
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
        margin: 0;
        border-radius: 0.75rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 1.25rem;
    }

    .footer > * {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-text {
        order: 3;
        text-align: center;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-links {
        order: 1;
    }
}

/* ── General section padding on small screens ────────────────────────────── */
@media (max-width: 480px) {
    .projects,
    .skills,
    .blog,
    .contact {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Prevent horizontal overflow globally ────────────────────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Disable parallax & tilt on touch devices ────────────────────────────── */
@media (hover: none) {
    .hero-image {
        transform: none !important;
        transition: none !important;
    }

    .project-card {
        transform: none !important;
    }

    .project-card:hover {
        transform: translateY(-4px) !important;
    }
}