/* Custom Styles for Andrew Grow Portfolio - Hartmann Capital Redesign */

/* === Root Variables === */
:root {
    --navy-dark: #0A1929;
    --navy-medium: #10203A;
    --navy-light: #1A2F4A;
    --cyan-bright: #00D9FF;
    --cyan-glow: #00A3CC;
    --blue-vibrant: #0066FF;
    --text-white: #FFFFFF;
    --text-light: #B4C7E0;
    --text-muted: #7B92B0;
}

/* === Global Styles === */
body {
    background: var(--navy-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* === Flowing Background Gradients === */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 163, 204, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: flowingGradient 20s ease-in-out infinite;
}

@keyframes flowingGradient {

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

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

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

/* === Wave Decoration === */
.wave-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.wave-decoration::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 217, 255, 0.1) 50%, transparent 60%);
    transform: rotate(-15deg);
    animation: waveFlow 15s ease-in-out infinite;
}

@keyframes waveFlow {

    0%,
    100% {
        transform: rotate(-15deg) translateX(0);
    }

    50% {
        transform: rotate(-15deg) translateX(10%);
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInDelayed {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delayed {
    animation: fadeInDelayed 1s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--navy-medium);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan-bright);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-glow);
}

/* === Section Titles === */
.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.section-title span {
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--blue-vibrant) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--blue-vibrant) 100%);
    color: var(--navy-dark);
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.7), 0 0 60px rgba(0, 217, 255, 0.4);
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--blue-vibrant) 100%);
    color: var(--navy-dark);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary-large:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan-bright);
    font-weight: 700;
    border: 2px solid var(--cyan-bright);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: var(--cyan-bright);
    color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.4);
}

/* === Navigation === */
nav {
    background: rgba(10, 25, 41, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.nav-link {
    position: relative;
    color: var(--text-light) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-bright);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cyan-bright) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.text-brand-indigo {
    color: var(--cyan-bright) !important;
}

/* === Glassmorphism Cards === */
.glass-card {
    background: rgba(16, 32, 58, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* === Skill Badges === */
.skill-badge {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan-bright);
    font-weight: 600;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(10px);
}

.skill-badge:hover {
    background: var(--cyan-bright);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* === Experience Cards === */
.experience-card {
    padding: 2rem;
    background: rgba(16, 32, 58, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border-left: 4px solid var(--cyan-bright);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-left: 4px solid var(--cyan-bright);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.experience-card:hover {
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.2);
    transform: translateX(10px);
    border-color: rgba(0, 217, 255, 0.4);
}

/* === Featured Websites Section === */
#websites {
    background: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
    position: relative;
}

#websites::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* === Project Cards === */
.project-card {
    background: rgba(16, 32, 58, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 217, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(0, 217, 255, 0.3);
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(252, 211, 77, 0.4),
        0 0 80px rgba(252, 211, 77, 0.2);
    border-color: rgba(252, 211, 77, 0.6);
}

.screenshot-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 41, 0);
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
}

.project-card:hover .screenshot-overlay {
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(4px);
    opacity: 1;
}

.overlay-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.text-cyan-bright {
    color: #00D9FF;
}

.project-panel {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 217, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.panel-glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 217, 255, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover .panel-glow-effect {
    opacity: 0.8;
    background: radial-gradient(circle at center, rgba(252, 211, 77, 0.3) 0%, transparent 70%);
}

.panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.panel-header {
    position: relative;
    z-index: 2;
}

.panel-overlay {
    z-index: 3;
    backdrop-filter: blur(10px);
}

.text-cyan-bright {
    color: #00D9FF;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 217, 255, 0.1) 100%);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.project-card:hover .project-image {
    transform: scale(1.08);
    filter: brightness(1);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--cyan-bright);
    font-weight: 700;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--text-white);
    transform: translateX(6px);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* === Service Cards === */
.service-card {
    position: relative;
    padding: 2.5rem;
    background: rgba(16, 32, 58, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 2px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.service-card:hover {
    border-color: var(--cyan-bright);
    box-shadow: 0 12px 36px rgba(0, 217, 255, 0.2);
    transform: translateY(-10px);
}

.service-card-featured {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 217, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 3px solid var(--cyan-bright);
    box-shadow: 0 12px 32px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

.service-card-featured:hover {
    box-shadow: 0 20px 48px rgba(0, 217, 255, 0.4);
    transform: translateY(-10px) scale(1.02);
}

/* === Social Links === */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan-bright);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--cyan-bright);
    color: var(--navy-dark);
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.5);
}

/* === Scroll to Top Button === */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--blue-vibrant) 100%);
    color: var(--navy-dark);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1000;
    border: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 0 35px rgba(0, 217, 255, 0.6);
}

/* === Text Colors === */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
}

p,
li,
span {
    color: var(--text-light);
}

.text-brand-indigo {
    color: var(--cyan-bright) !important;
}

.text-brand-teal {
    color: var(--cyan-bright) !important;
}

/* === Background Overrides === */
.bg-white {
    background: transparent !important;
}

.bg-gray-50 {
    background: rgba(10, 25, 41, 0.3) !important;
}

.bg-gray-900 {
    background: #050F1A !important;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .screenshot-overlay {
        padding: 1.5rem;
    }

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

    /* Touch device support - tap to darken overlay */
    .project-card:active .screenshot-overlay {
        background: rgba(10, 25, 41, 0.9);
        backdrop-filter: blur(4px);
        opacity: 1;
    }
}

/* === Positioning Context === */
section {
    position: relative;
    z-index: 1;
}

/* === Revision Updates === */
.text-gold-glow {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5);
    }
}

.light-sweep {
    background: linear-gradient(to right, #B4C7E0 20%, #ffffff 50%, #B4C7E0 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 5s linear infinite;
    display: inline-block;
}

/* === Revision 11 Updates === */

/* Branding Title: Montserrat Bold, All Caps, Glowing Blue */
.branding-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00aaff;
    text-shadow: 0 0 14px rgba(0, 170, 255, 0.5);
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    margin-bottom: 1.5rem;
}

.branding-title::after {
    content: "";
    display: block;
    margin-top: 6px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #ffffff, #00aaff, #ffffff);
    border-radius: 2px;
    filter: blur(2px);
    opacity: 0.7;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* GROW Highlight: Pulsing Golden Glow */
.grow-highlight {
    color: #fcd34d;
    font-weight: 800;
    display: inline-block;
    text-shadow: 0 0 20px rgba(252, 211, 77, 0.6);
    animation: goldenPulse 2.5s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(252, 211, 77, 0.6),
            0 0 30px rgba(252, 211, 77, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(252, 211, 77, 0.9),
            0 0 50px rgba(252, 211, 77, 0.6),
            0 0 70px rgba(252, 211, 77, 0.4);
        transform: scale(1.05);
    }
}

.hero-title {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Hero Section with Particle Background */
#hero {
    position: relative;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    overflow: hidden;
    min-height: 85vh;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Structured Glowing Mesh Streams (Layered Grid) */
.stream {
    opacity: 0.4;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    animation: glowPulse 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.8s);
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
        stroke-width: 1.5;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 28px rgba(59, 130, 246, 1));
        stroke-width: 3;
    }
}