/* =============================================
   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:        #3858c4;
    --blue-dark:   #1a2e7a;
    --blue-deeper: #0d1b4b;
    --blue-navy:   #050a1a;
    --green:       #4cc658;
    --green-glow:  rgba(76, 198, 88, 0.25);
    --gold:        #f0c040;
    --gold-light:  #f7d97a;
    --gold-dark:   #c8960a;
    --gold-glow:   rgba(240, 192, 64, 0.3);
    --white:       #ffffff;
    --text-light:  #c8d4f0;
    --text-muted:  #7a90c4;
    --card-bg:     rgba(255, 255, 255, 0.04);
    --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;
}

@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);
    }
}

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;
}

/* Apply to existing h3s inside infoSection */
.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;
}

.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;
}

/* =============================================
   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: rgba(240, 192, 64, 0.05);
    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: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    opacity: 0.6;
    transition: opacity 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.1);
    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 {
    opacity: 1;
}

/* Inner radial glow that appears on hover */
.skillsCard::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    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: 0.8rem;
    color: var(--gold);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

.skillsCard:hover ul li {
    color: var(--off-white, #f0f4ff);
}

/* =============================================
   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: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.serviceCard::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--green), var(--blue));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.serviceCard:hover::before { opacity: 1; }

.serviceIcon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(76, 198, 88, 0.1);
    border: 1px solid rgba(76, 198, 88, 0.25);
    color: var(--green);
    margin-bottom: 16px;
    transition: var(--transition);
}

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

.serviceCard:hover .serviceIcon {
    background: rgba(76, 198, 88, 0.18);
    border-color: var(--green);
    transform: scale(1.05);
}

.serviceCard h4 {
    font-family: 'Dosis', sans-serif;
    font-size: 1.05rem;
    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(18, 35, 91, 0.85);
    border: 1.5px solid rgba(240, 192, 64, 0.35);
    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: 340px;
    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 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.04);
    border: 1px solid rgba(240, 192, 64, 0.2);
    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(--gold);
    color: var(--blue-navy);
    border: none;
    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: var(--gold-light);
    box-shadow: 0 6px 28px var(--gold-glow);
    transform: translateY(-2px);
}

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

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

#resumeDownload a:hover {
    border-color: var(--green);
    color: var(--green);
    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,
    .heroTagline {
        display: inline-block;
        background: rgba(5, 10, 26, 0.55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 4px 12px;
        border-radius: 6px;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

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

    .heroTagline {
        padding: 8px 14px;
    }

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

    .projectsCarousel {
        padding: 0 0 0 0;
    }

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

    .carouselBtn {
        width: 38px;
        height: 38px;
        top: auto;
        bottom: -58px;
        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 1fr;
    }

    .servicesGrid {
        grid-template-columns: 1fr 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) {
    .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);
    }
}