/* =============================================
   MICHAEL FRASCONA — PORTFOLIO STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --blue:        rgb(56, 88, 196);
    --blue-dark:   rgb(26, 46, 122);
    --blue-deeper: rgb(13, 27, 75);
    --blue-navy:   rgb(5, 10, 26);
    --green:       rgb(76, 198, 88);
    --green-outline: rgba(74, 197, 93, 0.2);
    --green-glow:  rgba(76, 198, 88, 0.25);
    --gold:        rgb(240, 192, 64);
    --gold-light:  rgb(247, 217, 122);
    --gold-lighter: rgb(246, 230, 177);
    --gold-dark:   rgb(200, 150, 10);
    --gold-darker: rgb(119, 89, 60);
    --gold-glow:   rgba(255, 221, 126, 0.455);
    --white:       rgb(255, 255, 255);
    --text-light:  rgb(200, 212, 240);
    --text-muted:  rgb(122, 144, 196);
    --card-bg:     rgba(240, 192, 64, 0.3);
    --card-border: rgba(255, 255, 255, 0.09);
    --header-h:    100px;
    --radius:      12px;
    --radius-sm:   8px;
    --transition:  all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blue-navy);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    overflow-x: hidden;
    animation: pageFadeIn 0.4s ease-in;
}

/* =============================================
   Animations
   ============================================= */

@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroLineIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyFrames testimonialSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

h1, h2, h3, h4, h5 {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

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

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
    padding: 0;
}

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

/* =============================================
   TECHNO GRID BACKGROUND
   Applied to infoSection so the hero stays pure
   ============================================= */
.infoSection {
    position: relative;
    background-color: var(--blue-navy);
    /* Layered: animated circuit dots + grid lines + radial glow */
    background-image:
        /* Radial center glow for liveliness */
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 88, 196, 0.18) 0%, transparent 70%),
        /* Horizontal grid lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(56, 88, 196, 0.12) 60px
        ),
        /* Vertical grid lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(56, 88, 196, 0.12) 60px
        );
    background-size: 100% 100%, 60px 60px, 60px 60px;
}

/* Animated flowing circuit overlay on infoSection */
.infoSection::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Diagonal accent lines for artistic flair */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 119px,
            rgba(76, 198, 88, 0.04) 120px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 119px,
            rgba(56, 88, 196, 0.04) 120px
        );
    animation: gridFlow 8s linear infinite;
}

@keyframes gridFlow {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 120px 120px, -120px 120px; }
}

/* Glowing intersection dots */
.infoSection::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(56, 88, 196, 0.35) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 30px 30px;
    animation: dotPulse 4s ease-in-out infinite alternate;
}

@keyframes dotPulse {
    0%   { opacity: 0.4; }
    100% { opacity: 1; }
}

/* All direct children of infoSection need z-index above the grid */
.infoSection > * {
    position: relative;
    z-index: 1;
}

.infoSection {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 80px 8%;
}

/* =============================================
   HEADER & NAV
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background-color: rgba(18, 35, 91, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(56, 88, 196, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo-container h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    transition: var(--transition);
    white-space: nowrap;
}

#logo {
    fill: var(--green);
    transition: var(--transition);
    flex-shrink: 0;
}

#gear-path {
    transform-origin: 150px 150px;
    transition: fill 0.3s ease;
}

#infinity-path {
    transition: fill 0.3s ease;
}

.logo-container:hover h2 {
    color: var(--gold-light);
}

.logo-container:hover #gear-path {
    fill: var(--gold-light);
    animation: gearSpin 1.5s linear infinite;
}

.logo-container:hover #infinity-path {
    fill: var(--gold-light);
    filter: drop-shadow(0 0 6px var(--gold-light));
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li a {
    display: block;
    padding: 8px 18px;
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.03em;
}

nav ul li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
}

.hamburgerIcon {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.hamburgerMenu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburgerMenu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    user-select: none;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.heroContent {
    position: relative;
    z-index: 2;
    padding-left: 8%;
    padding-top: var(--header-h);
    pointer-events: none;
    max-width: 560px;
}

.heroContent h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    opacity: 0;
    transform: translateY(24px);
    animation: heroLineIn 0.9s cubic-bezier(0.34, 1.7, 0.64, 1) forwards;
}

.heroContent h2:nth-child(1) { animation-delay: 0.2s; }
.heroContent h2:nth-child(2) { animation-delay: 0.45s; }
.heroContent h2:nth-child(3) {
    animation-delay: 0.7s;
    color: var(--green);
}

.heroTagline {
    margin-top: 22px;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroLineIn 0.9s cubic-bezier(0.34, 1.7, 0.64, 1) forwards 0.95s;
}

.heroCTAs {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: heroLineIn 0.9s cubic-bezier(0.34, 1.7, 0.64, 1) forwards 1.15s;
}

.btnPrimary,
.btnSecondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 28px;
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btnPrimary {
    background: var(--green);
    color: var(--blue-navy);
    border: 1.5px solid var(--green);
    box-shadow: 0 4px 18px var(--green-glow);
}

.btnPrimary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--blue-navy);
    box-shadow: 0 6px 24px var(--gold-glow);
    transform: translateY(-2px);
}

.btnSecondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
}

.btnSecondary:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
}

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

.hero:hover { cursor: grab; }
.hero:active { cursor: grabbing; }

/* =============================================
   DRAG HINT ICON (desktop only)
   ============================================= */
.dragHint {
    position: absolute;
    bottom: 36px;
    right: 48px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: dragHintFadeIn 1s ease forwards 1.4s;
    pointer-events: none;
}

@keyframes dragHintFadeIn {
    to { opacity: 0.75; }
}

.dragHintIcon {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dragHintBob 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

/* Hand cursor SVG drawn in CSS */
.dragHintIcon::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0'/%3E%3Cpath d='M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2'/%3E%3Cpath d='M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

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

/* Left/right arrows around the icon */
.dragHintArrows {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.dragHintArrows span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.05em;
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.dragHintArrows::before,
.dragHintArrows::after {
    content: '';
    display: block;
    width: 14px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
    animation: arrowPulse 2s ease-in-out infinite;
}

.dragHintArrows::before { animation-delay: 0s; }
.dragHintArrows::after  { animation-delay: 0.5s; }

@keyframes arrowPulse {
    0%, 100% { opacity: 0.35; }
    50%       { opacity: 0.9; }
}

/* Hide drag hint on mobile/tablet */
@media (max-width: 1024px) {
    .dragHint { display: none; }
}

/* =============================================
   SECTION HEADERS (shared pattern)
   ============================================= */
.sectionTitle {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 8px;
}

.sectionTitle::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
    margin-top: 8px;
}

/* h3s inside infoSection */
.testimonials h3,
.missionStatement h3,
.skills h3,
.services h3,
#projects h3,
#aboutMe h3,
#contactForm h4 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 8px;
}

.testimonials h3::after,
.missionStatement h3::after,
.skills h3::after,
.services h3::after,
#projects h3::after,
#aboutMe .aboutMeInfo h3::after,
#contactForm h4::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    width: 100%;
}

.testimonialsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.testimonialCard {
    position: relative;
    background: var(--blue-deeper);
    border: 1px solid rgba(240, 192, 64, 0.22);
    border-radius: var(--radius);
    padding: 36px 34px 30px;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-80px);
}

.testimonialCard.is-visible {
    animation: testimonialSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes testimonialSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    .testimonialCard {
        opacity: 1;
        transform: none;
    }
    .testimonialCard.is-visible {
        animation: none;
    }
}

/* Animated gold shimmer bar along the top */
.testimonialCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-lighter), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 200% 100%;
    opacity: 0.75;
    transition: opacity 0.3s ease;
    animation: goldShimmer 3s linear infinite;
}

/* Soft green corner glow */
.testimonialCard::after {
    content: '';
    position: absolute;
    bottom: -620px;
    right: 0px;
    width: 1600px;
    height: 1200px;
    background: radial-gradient(ellipse, var(--blue) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.testimonialCard:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 192, 64, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 192, 64, 0.15);
}

.testimonialCard:hover::before { opacity: 1; }
.testimonialCard:hover::after { opacity: 0.7; }

.testimonialQuoteMark {
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: 'Dosis', serif;
    font-size: 15rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.3;
    text-shadow: 0 0 15px var(--gold-glow);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.testimonialRating {
    display: flex;
    gap: 4px;
    font-size: 2.05rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    filter: drop-shadow(0 0 4px var(--gold-glow));
    position: relative;
    z-index: 1;
}

.testimonialQuote {
    position: relative;
    z-index: 1;
    border-left: 2px solid rgba(76, 198, 88, 0.35);
    padding-left: 18px;
    margin: 0;
}

.testimonialQuote p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0 0 12px;
}

.testimonialQuote p:last-child { margin-bottom: 0; }

.testimonialQuote em {
    color: var(--white);
    font-style: italic;
    font-weight: 500;
}

.testimonialAuthor {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.testimonialAvatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    letter-spacing: 0.05em;
    box-shadow: 0 0 12px var(--green-glow);
}

.testimonialAvatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonialAuthorInfo {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.testimonialAuthorName {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    letter-spacing: 0.02em;
}

.testimonialAuthorRole {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .testimonialCard {
        padding: 30px 24px 26px;
    }

    .testimonialQuoteMark {
        font-size: 8rem;
        top: -15px;
        right: 14px;
    }

    .testimonialQuote {
        padding-left: 14px;
    }

    .testimonialQuote p {
        font-size: 0.95rem;
    }
}

/* =============================================
   MISSION STATEMENT
   ============================================= */
.missionStatement {
    max-width: 720px;
}

.missionStatement p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-top: 8px;
}

/* =============================================
   SKILLS CARDS — GOLD THEME
   ============================================= */
.skillsSection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.skillsCard {
    background-color: rgba(244, 179, 0, 0.35);
    border: 1px solid rgba(240, 192, 64, 0.2);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Gold shimmer line on top */
.skillsCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-lighter), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 200% 100%;
    transition: opacity 0.3s ease, height 0.3s ease;
    animation: goldShimmer 3s linear infinite;
}

@keyframes goldShimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Hover: rise and glow gold */
.skillsCard:hover {
    background: rgba(240, 192, 64, 0.70);
    border-color: rgba(240, 192, 64, 0.55);
    transform: translateY(-6px);
    box-shadow:
        0 8px 32px var(--gold-glow),
        0 0 0 1px rgba(240, 192, 64, 0.2),
        inset 0 0 20px rgba(240, 192, 64, 0.05);
}

.skillsCard:hover::before {
    height: 10px;
    transition: opacity 0.3s ease, height 0.3s ease;
}

/* Inner radial glow that appears on hover */
.skillsCard::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 90px;
    background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skillsCard:hover::after {
    opacity: 1;
}

.skillsCard h4 {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.skillsCard:hover h4 {
    color: white;
    transition: color 0.3s ease;
}

.skillsCard ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 5px 0;
    border-bottom: 1px solid rgba(247, 217, 122, 0.25);
    transition: color 0.2s ease;
}

.skillsCard ul li:last-child {
    border-bottom: none;
}

.skillsCard:hover ul li {
    color: white;
    transition: color 0.3s ease;
}

/* =============================================
   SERVICES
   ============================================= */
.sectionLead {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.7;
}

.servicesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 16px;
}

.serviceCard {
    background: rgba(56, 88, 196, 0.35);
    border: 1px solid rgba(56, 88, 196, 0.4);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.serviceCard::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 100%;
    background: linear-gradient(180deg, var(--green), #1e4d22);
    transition: opacity 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 1);
}

.serviceCard:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 198, 88, 0.5);
    background: rgba(76, 198, 88, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(76, 198, 88, 0.2);
}

.serviceIcon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(56, 88, 196, 0.7);
    border: 1px solid rgba(56, 88, 196, 0.35);
    color: var(--white);
    margin-bottom: 16px;
    transition: var(--transition);
}

.serviceIcon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.serviceCard:hover .serviceIcon {
    background: rgba(76, 198, 88, 0.7);
    border-color: var(--green);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 0 12px var(--green-glow);
}

.serviceCard h4 {
    font-family: 'Dosis', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.serviceCard p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* =============================================
   PROJECTS — CAROUSEL
   ============================================= */
#projects {
    width: 100%;
}

.projectsCarousel {
    position: relative;
    margin-top: 24px;
    padding: 0 56px;
}

.carouselViewport {
    overflow: hidden;
    border-radius: var(--radius);
    padding-top: 6px;
}

.carouselTrack {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carouselTrack .projectBox {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
}

.carouselBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(56, 88, 196, 0.85);
    border: 1.5px solid rgba(13, 27, 75, 0.50);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0;
}

.carouselBtn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.carouselBtn:hover:not(:disabled) {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--blue-navy);
    box-shadow: 0 4px 18px var(--gold-glow);
    transform: translateY(-50%) scale(1.08);
}

.carouselBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carouselPrev { left: 0; }
.carouselNext { right: 0; }

.carouselDots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.carouselDots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(240, 192, 64, 0.3);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.carouselDots button:hover {
    background: rgba(240, 192, 64, 0.6);
}

.carouselDots button.active {
    background: var(--gold);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--gold-glow);
}

.projectBox {
    position: relative;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    border: 2px solid var(--gold-dark);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.projectTag {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Dosis', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.projectBox:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
    border-color: var(--gold);
}

/* Dark gradient overlay -- always present but lightens on hover */
.projectBoxOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 10, 26, 0.95) 0%,
        rgba(5, 10, 26, 0.5) 50%,
        rgba(5, 10, 26, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    transition: var(--transition);
}

.projectBox:hover .projectBoxOverlay {
    background: linear-gradient(
        to top,
        rgba(5, 10, 26, 0.98) 0%,
        rgba(5, 10, 26, 0.7) 55%,
        rgba(5, 10, 26, 0.25) 100%
    );
}

.projectBoxOverlay h4 {
    font-family: 'Dosis', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

/* Description hidden at rest, slides up on hover */
.projectBoxOverlay p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-bottom: 0;
}

.projectBox:hover .projectBoxOverlay p {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 14px;
}

.projectBoxOverlay button {
    align-self: flex-start;
    background: transparent;
    border: 1.5px solid var(--green);
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(8px);
}

.projectBox:hover .projectBoxOverlay button {
    opacity: 1;
    transform: translateY(0);
}

.projectBoxOverlay button a {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

.projectBoxOverlay button:hover {
    background: var(--green);
    box-shadow: 0 4px 20px var(--green-glow);
}

.projectBoxOverlay button:hover a {
    color: var(--blue-navy);
}

/* =============================================
   ABOUT ME
   ============================================= */
#aboutMe {
    display: flex;
    align-items: center;
    gap: 48px;
}

.profilePic img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--green);
    box-shadow: 0 0 30px var(--green-glow);
    flex-shrink: 0;
}

.aboutMeInfo {
    background:
        linear-gradient(135deg, rgba(56, 88, 196, 0.14) 0%, rgba(76, 198, 88, 0.06) 100%),
        rgba(5, 10, 26, 0.55);
    border: 1px solid rgba(240, 192, 64, 0.22);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.aboutMeInfo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-lighter), var(--gold-light), var(--gold), var(--gold-dark));
    opacity: 0.75;
    transition: opacity 0.3s ease;
    animation: goldShimmer 3s linear infinite;
}

.aboutMeInfo::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.aboutMeInfo:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 192, 64, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 192, 64, 0.15);
    transition: all 0.3s ease;
}

.aboutMeInfo:hover::before { opacity: 1; }
.aboutMeInfo:hover::after { opacity: 0.9; }

.aboutMeInfo p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 620px;
}

.aboutHighlights {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 620px;
}

.aboutHighlights li {
    position: relative;
    padding-left: 26px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.aboutHighlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green) 0%, var(--green) 35%, transparent 60%);
    box-shadow: 0 0 8px var(--green-glow);
}

.aboutHighlights strong {
    color: var(--white);
    font-weight: 600;
}

/* =============================================
   CONTACT FORM — GOLD THEME
   ============================================= */
#contactForm {
    max-width: 640px;
}

#contactForm form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

#contactForm input,
#contactForm textarea {
    background: rgba(240, 192, 64, 0.2);
    border: 1px solid rgba(240, 192, 64, 0.5);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--white);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: rgba(240, 192, 64, 0.4);
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.07);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

#contactForm textarea {
    min-height: 140px;
    resize: vertical;
}

#contactForm button[type="submit"] {
    align-self: flex-start;
    background: var(--green);
    color: var(--blue-navy);
    border: 1.5px solid var(--green);
    border-radius: 25px;
    padding: 12px 32px;
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

#contactForm button[type="submit"]:hover {
    background-color: transparent;
    color: var(--green);
    box-shadow: 0 6px 28px var(--green-glow);
    transform: translateY(-2px);
}

/* =============================================
   RESUME DOWNLOAD
   ============================================= */
#resumeDownload {
    display: flex;
    align-items: center;
}

#resumeDownload a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    border: 1.5px solid var(--green);
    border-radius: 25px;
    padding: 12px 32px;
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: black;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

#resumeDownload a:hover {
    border-color: var(--green);
    color: var(--green);
    background-color: transparent;
    box-shadow: 0 6px 24px var(--green-glow);
    transform: translateY(-2px);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: rgba(5, 10, 26, 0.97);
    border-top: 1px solid rgba(56, 88, 196, 0.2);
    text-align: center;
    padding: 28px 40px;
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .carouselTrack .projectBox {
        flex: 0 0 calc((100% - 24px) / 2);
    }
    

}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .headerMain {
        justify-content: space-between;
        padding: 16px 0;
    }

    .hamburgerIcon {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        padding-bottom: 12px;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        padding: 12px 0;
        border-radius: 0;
        border-top: 1px solid var(--card-border);
    }

    .heroContent {
        padding-left: 6%;
        padding-right: 6%;
    }

    .heroContent h2 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .heroTagline {
        padding: 8px 14px;
    }

    .heroContent h2, .heroTagline {
        text-shadow: 1px 1px 8px black;

    }

    .infoSection {
        padding: 60px 6%;
        gap: 60px;
    }

    .projectsCarousel {
        padding: 0 0 0 0;
    }

    .carouselTrack .projectBox {
        flex: 0 0 100%;
    }

    .carouselBtn {
        width: 60px;
        height: 60px;
        top: auto;
        bottom: -30px;
        transform: none;
        background: rgba(18, 35, 91, 0.95);
    }

    .carouselBtn:hover:not(:disabled) {
        transform: scale(1.08);
    }

    .carouselPrev { left: calc(50% - 70px); }
    .carouselNext { right: calc(50% - 70px); }

    .carouselDots {
        margin-top: 18px;
    }

    .projectsCarousel {
        padding-bottom: 56px;
    }

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

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

    #aboutMe {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .profilePic img {
        width: 140px;
        height: 140px;
    }

    #heroCanvas {
        pointer-events: none;
        touch-action: none;
    }

    .projectBox {
        height: 280px;
    }

    .projectBoxOverlay {
        background: linear-gradient(
            to top,
            rgba(5, 10, 26, 0.98) 0%,
            rgba(5, 10, 26, 0.7) 55%,
            rgba(5, 10, 26, 0.25) 100%
        );
    }

    .projectBoxOverlay p {
        max-height: 80px;
        opacity: 1;
        margin-bottom: 14px;
    }

    .projectBoxOverlay button {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .testimonialQuote {
        margin-right: 0;
    }
    
    .skillsSection {
        grid-template-columns: 1fr;
    }

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

    .heroCTAs {
        width: 100%;
    }

    .btnPrimary,
    .btnSecondary {
        flex: 1;
        min-width: 0;
    }

    #contactForm button[type="submit"],
    #resumeDownload a {
        width: 100%;
        justify-content: center;
    }
}

@media (hover: none) {
    .projectBoxOverlay {
        background: linear-gradient(
            to top,
            rgba(5, 10, 26, 0.98) 0%,
            rgba(5, 10, 26, 0.7) 55%,
            rgba(5, 10, 26, 0.25) 100%
        );
    }

    .projectBoxOverlay p {
        max-height: 80px;
        opacity: 1;
        margin-bottom: 14px;
    }

    .projectBoxOverlay button {
        opacity: 1;
        transform: translateY(0);
    }
}