/* style.css */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary-red: #ff1f1f; /* Slightly brighter for glowing effects */
    --text-light: #ffffff;
    --text-dim: #888888;
    --grid-color: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    perspective: 1000px; /* Essential for 3D effects */
}

/* --- ANIMATED BACKGROUND GRID --- */
.gradient-bg {
    position: relative;
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-move 100s linear infinite;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.15), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* --- PREMIUM GLASS CARD --- */
.glass-card {
    /* Change this line: make it 0.08 instead of 0.03 */
    background: rgba(255, 255, 255, 0.08); 
    
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Increased border visibility */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* The "Glare" effect moving across cards */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 125%;
    transition: 0.7s;
}

/* --- TYPOGRAPHY & GLOWS --- */
.hero-text-glow {
    text-shadow: 0 0 40px rgba(229, 9, 20, 0.4);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin-top: 10px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.visible::after {
    transform: scaleX(1);
}

/* --- BUTTONS --- */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    border: 1px solid var(--primary-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-red);
    z-index: -1;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-button:hover {
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
    transform: translateY(-2px);
}

/* --- MODAL & FORMS --- */
.modal-overlay {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.form-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    transition: 0.3s;
}

.form-input:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
    outline: none;
}

/* --- NEW ANIMATIONS --- */

/* 1. Floating Animation for Profile Picture */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

/* 2. Cyber Button (Slide Fill Effect) */
.btn-cyber {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(229, 9, 20, 0.05); /* Very faint red tint */
    z-index: 1;
}

/* The sliding background */
.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-red);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth snap effect */
}

/* Hover State */
.btn-cyber:hover {
    color: white;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
    transform: translateY(-2px);
}

.btn-cyber:hover::before {
    width: 100%;
}