/* ===== CUSTOM STYLES COMPLEMENTING TAILWIND ===== */

:root {
    --color-purple: #a78bfa;
    --color-purple-dark: #7c3aed;
    --color-pink: #ec4899;
    --color-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 10%, rgba(167, 139, 250, 0.14), transparent 20%),
                radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.08), transparent 18%),
                linear-gradient(180deg, #030712 0%, #0b1120 100%);
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== TYPOGRAPHY =====  */
@font-face {
    font-family: 'Bebas Neue';
    src: url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
}

.font-bebas {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== NAV LINK ACTIVE STATE ===== */
.nav-link {
    position: relative;
    color: #e2e8f0;
    text-decoration: none;
}

.nav-link.active-link {
    color: #a78bfa;
}

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #ec4899);
}

/* ===== HEADER STYLES ===== */
.l-header {
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.l-header.is-scrolled {
    background: rgba(15, 23, 42, 0.8);
    border-bottom-color: rgba(51, 65, 85, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== HOVER EFFECTS ===== */
.group:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

/* ===== INPUT FOCUS STYLES ===== */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== BACKDROP BLUR SUPPORT ===== */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-xl {
        backdrop-filter: blur(12px);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== SECTION STYLING ===== */
.section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 2rem;
    padding: 2.5rem;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent 70%);
    border-radius: 50%;
    filter: blur(42px);
    pointer-events: none;
}

.section .section-inner {
    position: relative;
    z-index: 2;
}

/* ===== BUTTON STYLES ===== */
button[type="submit"] {
    transition: all 0.3s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== FORM VALIDATION ===== */
input:valid,
textarea:valid {
    border-color: rgba(34, 197, 94, 0.3);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.3);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .font-bebas {
        letter-spacing: 0.05em;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .section::before {
        width: 250px;
        height: 250px;
    }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(203, 213, 225, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== LOADING STATE ===== */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== CONTACT FORM CUSTOM ===== */
#contact-form {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input-focus:focus {
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

/* ===== SOCIAL LINKS HOVER ===== */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

/* ===== STATUS INDICATOR ===== */
.status-online {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-expand,
    #nav-toggle,
    #back-to-top,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
