/* ============================================
   PORTFOLIO — Abhay Kumar
   Modern Design System (David Franco–style)
   ============================================ */

/* ---------- Google Fonts loaded via base.html ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a2e;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --text-muted: #888899;
    --accent: #00C896;
    --accent-dark: #00a87d;
    --accent-light: rgba(0, 200, 150, 0.12);
    --border: #e8e8ee;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1320px;
    --nav-height: 80px;

    /* Theme-specific defaults (light) */
    --navbar-bg: linear-gradient(135deg, #f0fdf9 0%, #e8f5f0 40%, #f0f7ff 100%);
    --contact-bg: linear-gradient(135deg, #f0fdf9 0%, #e8f5f0 40%, #f0f7ff 100%);
    --soft-bg: #f0f0ff;
    --soft-border: #e0e0f0;
    --soft-accent: #6c5ce7;
    --soft-accent-hover-bg: rgba(108, 92, 231, 0.1);
    --soft-card-gradient: linear-gradient(90deg, #6c5ce7, #a29bfe);
    --soft-card-icon-bg: rgba(108, 92, 231, 0.1);
    --btn-primary-bg: #1a1a2e;
    --btn-primary-color: white;
    --form-submit-bg: var(--text-primary);
    --hero-blob-opacity: 0.7;
    --hero-photo-border: rgba(0, 200, 150, 0.25);
    --hero-photo-glow: rgba(0, 200, 150, 0.15);
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-text-muted: rgba(255, 255, 255, 0.5);
    --footer-text-faint: rgba(255, 255, 255, 0.4);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-heading: white;
}

/* ---------- Dark Theme ---------- */
html[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-dark: #0a0a14;
    --bg-card: #1e1e32;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6e6e85;
    --accent: #00d9a3;
    --accent-dark: #00c896;
    --accent-light: rgba(0, 217, 163, 0.12);
    --border: #2a2a40;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --navbar-bg: linear-gradient(135deg, #12122a 0%, #161630 40%, #141428 100%);
    --contact-bg: linear-gradient(135deg, #12122a 0%, #161630 40%, #141428 100%);
    --soft-bg: rgba(108, 92, 231, 0.1);
    --soft-border: rgba(108, 92, 231, 0.2);
    --soft-accent: #a29bfe;
    --soft-accent-hover-bg: rgba(108, 92, 231, 0.15);
    --soft-card-gradient: linear-gradient(90deg, #a29bfe, #6c5ce7);
    --soft-card-icon-bg: rgba(162, 155, 254, 0.12);
    --btn-primary-bg: #00d9a3;
    --btn-primary-color: #0f0f1a;
    --form-submit-bg: var(--accent);
    --hero-blob-opacity: 0.4;
    --hero-photo-border: rgba(0, 217, 163, 0.3);
    --hero-photo-glow: rgba(0, 217, 163, 0.1);
    --footer-text: rgba(232, 232, 240, 0.7);
    --footer-text-muted: rgba(232, 232, 240, 0.5);
    --footer-text-faint: rgba(232, 232, 240, 0.4);
    --footer-border: rgba(232, 232, 240, 0.08);
    --footer-heading: #e8e8f0;
}

/* Smooth theme transition */
html {
    transition: background-color 0.4s ease, color 0.4s ease;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .section,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .experience-section,
html[data-theme="dark"] .bg-card,
html[data-theme="dark"] .exp-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .skills-card,
html[data-theme="dark"] .about-focus-card,
html[data-theme="dark"] .about-stats,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .skill-tag,
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea {
    transition: background 0.4s ease, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

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

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Header CV Download Button */
.header-cv-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 5px !important;
    border-width: 1.5px !important;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.3);
}

.theme-toggle i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:active i {
    transform: rotate(360deg);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 30px 16px 30px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 2px dashed var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: var(--accent-light);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 200, 150, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-socials span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.3);
}

.social-icon.linkedin {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.social-icon.linkedin:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    margin-right: -48px;
}

.hero-image-wrapper {
    position: relative;
    width: 440px;
    height: 500px;
}

/* Photo container for hero section */
.hero-photo-bg {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 3px solid var(--hero-photo-border);
    box-shadow:
        var(--shadow-lg),
        0 0 60px var(--hero-photo-glow);
    transition: var(--transition);
}

.hero-photo-bg:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 80px rgba(0, 200, 150, 0.25);
    border-color: rgba(0, 200, 150, 0.4);
    transform: translateY(-4px);
}

.hero-photo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.hero-photo-bg:hover img {
    transform: scale(1.05);
}

/* About section photo background */
.about-photo-bg {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(0, 200, 150, 0.2);
    box-shadow:
        var(--shadow-lg),
        0 0 40px rgba(0, 200, 150, 0.1);
    transition: var(--transition);
}

.about-photo-bg:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 60px rgba(0, 200, 150, 0.2);
    transform: translateY(-4px);
}

.about-photo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.about-photo-bg:hover img {
    transform: scale(1.05);
}

.hero-blob {
    position: absolute;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    background: var(--accent);
    opacity: var(--hero-blob-opacity);
    z-index: 1;
    animation: blob-float 6s ease-in-out infinite;
}

.blob-1 {
    width: 200px;
    height: 200px;
    top: -30px;
    right: -40px;
}

.blob-2 {
    width: 160px;
    height: 160px;
    bottom: -20px;
    left: -30px;
    animation-delay: -3s;
    border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(10px, -10px) rotate(5deg);
    }

    66% {
        transform: translate(-5px, 5px) rotate(-3deg);
    }
}

/* Circular text badge */
.hero-circular-text {
    position: absolute;
    bottom: 40px;
    left: -20px;
    width: 100px;
    height: 100px;
    z-index: 3;
    animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---------- MARQUEE / SERVICES BAR ---------- */
.marquee-section {
    background: var(--bg-dark);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 20s linear infinite;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-right: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: capitalize;
}

.marquee-item .star {
    color: var(--accent);
    font-size: 1.5rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ---------- SECTION COMMON ---------- */
.section {
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ---------- ABOUT SECTION ---------- */
.about-container {
    max-width: var(--max-width);
    margin: 0 auto 48px;
}

/* Stats Row */
.about-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 40px;
    margin-bottom: 40px;
}

.about-stat-item {
    flex: 1;
    text-align: center;
}

.about-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.about-stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
    margin: 0 8px;
}

/* Bio Text */
.about-bio {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-bio p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Focus / What I Do Cards */
.about-focus-grid {
    display: flex;
    gap: 24px;
}

.about-focus-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-focus-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

.about-focus-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-focus-card:hover::after {
    transform: scaleX(1);
}

.about-focus-card i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.about-focus-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.about-focus-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Cards — Two side-by-side cards */
.skills-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.skills-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skills-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.skills-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.skills-card:hover::before {
    transform: scaleX(1);
}

.skills-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.skills-card-header i {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.skills-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Skills Tags */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.15);
}

.skill-tag i {
    color: var(--accent);
}

/* Soft skills — slightly different accent (blue-purple) */
.skill-tag.soft {
    background: var(--soft-bg);
    border-color: var(--soft-border);
}

.skill-tag.soft i {
    color: var(--soft-accent);
}

.skill-tag.soft:hover {
    background: var(--soft-accent-hover-bg);
    border-color: var(--soft-accent);
    color: var(--soft-accent);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

/* Second card (Soft Skills) — purple top accent bar */
.skills-card:nth-child(2)::before {
    background: var(--soft-card-gradient);
}

.skills-card:nth-child(2) .skills-card-header i {
    background: var(--soft-card-icon-bg);
    color: var(--soft-accent);
}

/* Experience Cards */
.experience-section {
    background: var(--bg-secondary);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.exp-card:hover::before {
    transform: scaleY(1);
}

.exp-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.exp-card .exp-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.exp-card .exp-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.exp-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ---------- PROJECTS SECTION ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--accent-light), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    overflow: hidden;
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 24px;
}

.project-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.project-tech span {
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

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

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    transition: var(--transition);
}

.project-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}


/* ---------- CERTIFICATIONS SECTION ---------- */
.cert-section {
    background: var(--bg-secondary);
}

.cert-dash {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cert-logo {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-logo i {
    font-size: 1.8rem;
    color: var(--accent);
}

.cert-body {
    flex: 1;
    min-width: 0;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.cert-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.cert-issuer-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #c93b3b;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cert-topics {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cert-status {
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.cert-status-value.certified {
    color: #00a87d;
    font-weight: 600;
}

.cert-status-value.in-progress {
    color: #f0a500;
    font-weight: 600;
}

.cert-divider {
    height: 1px;
    background: var(--border);
    margin: 0 0 16px 0;
    width: 100%;
}

.cert-footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.cert-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #198754;
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.cert-view-btn:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
    color: white;
}

.cert-view-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.cert-view-btn:hover i {
    transform: translateX(3px);
}


/* ---------- CONTACT SECTION ---------- */
.contact-section {
    background: var(--contact-bg);
    border-top: 1px solid rgba(0, 200, 150, 0.1);
    border-bottom: 1px solid rgba(0, 200, 150, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1rem;
}

.contact-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Clickable address link — redirects to Google Maps on click */
.contact-item-link {
    cursor: pointer;
    text-decoration: none;
}

.contact-item-link:hover {
    color: var(--accent);
}

.contact-item-link:hover span {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--form-submit-bg);
    color: var(--btn-primary-color);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 200, 150, 0.3);
}


/* ---------- DJANGO MESSAGES / ALERTS ---------- */
.messages-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 48px 0;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
    animation: alert-slide-in 0.4s ease;
}

.alert-success {
    background: rgba(0, 200, 150, 0.12);
    color: #00a87d;
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

@keyframes alert-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation errors */
.form-error {
    display: block;
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 6px;
}


/* ---------- BLOG SECTION ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.blog-card .blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card .read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card .read-more:hover {
    gap: 10px;
}


/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-dark);
    color: var(--footer-text);
    padding: 60px 24px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-brand .logo {
    color: var(--footer-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand .logo .logo-icon {
    background: var(--accent);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--footer-text-muted);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--footer-heading);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: var(--footer-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--footer-text-faint);
}


/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- PAGE TOP SPACER ---------- */
main {
    padding-top: var(--nav-height);
}


/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }

    .hero-image-wrapper {
        width: 300px;
        height: 360px;
    }

    .about-grid {
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 0 24px;
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-left: auto;
        margin-right: 12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        padding: 100px 24px 40px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-socials {
        justify-content: center;
    }

    .hero-image {
        max-width: 320px;
        order: -1;
    }

    .hero-image-wrapper {
        width: 260px;
        height: 310px;
    }

    /* Sections */
    .section {
        padding: 60px 24px;
    }

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

    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 24px 20px;
    }

    .about-stat-divider {
        display: none;
    }

    .about-stat-item {
        flex: 0 0 45%;
    }

    .about-focus-grid {
        flex-direction: column;
    }

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

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

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

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

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

    /* Footer */
    .footer {
        padding: 40px 24px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 260px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-stat-item {
        flex: 0 0 100%;
    }

    .skills-cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- FIXED CV BUTTON ---------- */
.fixed-cv-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
}

.fixed-cv-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.fixed-cv-btn span {
    white-space: nowrap;
}

.fixed-cv-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 200, 150, 0.5);
    color: white;
}

.fixed-cv-btn:hover i {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .fixed-cv-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
    .fixed-cv-btn span {
        display: none;
    }
    .fixed-cv-btn i {
        font-size: 1.3rem;
        margin: 0;
    }
}
