/* ===== Base & Reset ===== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0f;
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Subtle dot grid background */
.bg-grid {
    background-image: radial-gradient(circle, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ===== Animated Gradient Hero ===== */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0a0a0f 0%,
        #0d1b2a 25%,
        #1b2a4a 50%,
        #0d2847 75%,
        #0a0a0f 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating orbs for hero depth */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-orb-3 {
    animation-name: orbFloat3;
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, calc(-50% - 20px)) scale(1.08); }
}

/* ===== Neon Glow Effects ===== */
.neon-text {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.2);
}

.neon-border {
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.neon-border:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(6, 182, 212, 0.05);
}

/* ===== Card Styles ===== */
.card-glow {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card-glow:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== Navigation ===== */
.nav-scrolled {
    background-color: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #06b6d4;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* ===== Form Styles ===== */
.form-input {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.form-input::placeholder {
    color: #6b7280;
}

/* ===== Section Dividers ===== */
.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

/* ===== Category Badge ===== */
.category-badge {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06b6d4;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== Portfolio Image ===== */
.portfolio-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    transition: transform 0.5s ease;
}

.card-glow:hover .portfolio-img {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 300px;
}

/* ===== Success/Error Alert ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
