/* Fonts are now pre-loaded in HTML for better performance */

:root {
    --bg-color: #050505;
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --text-main: #ffffff;
    --text-dim: #cccccc;
    --nav-bg: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --drive-bg: url('./images/bg-image.webp');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background System */
.glow-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color); /* Fallback */
    background-image: var(--drive-bg);
    background-size: cover;
    background-position: center;
}

.glow-field::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 5, 0.95) 100%),
                linear-gradient(to bottom, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.8));
    z-index: 1;
}

/* Typography Refresh - Robust & Glowing */
h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff; /* Fallback */
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.4));
}

p, footer p {
    font-weight: 600;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.2);
}

.hero-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    color: #ffffff;
}

.neon-text {
    animation: neonPulse 3s infinite alternate;
}

@keyframes neonPulse {
    from { filter: drop-shadow(0 0 10px var(--accent-primary)); }
    to { filter: drop-shadow(0 0 20px var(--accent-secondary)); }
}

/* Navbar Style - High Contrast */
.navbar-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.navbar {
    background-color: var(--nav-bg);
    padding: 14px 45px;
    border-radius: 50px;
    display: flex;
    gap: 35px;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.nav-link {
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    color: #000000; /* Force black for visibility on white bg */
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-secondary);
}

.nav-link.active {
    color: var(--accent-secondary); /* Changed from primary for better contrast on white */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Section Containers */
section {
    min-height: 100vh;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Glass Cards - Fixed for Visibility */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    background: var(--accent-primary);
    color: #000000;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 30px var(--accent-primary);
    transform: scale(1.05);
}

/* Grid Layouts */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-category {
    margin-top: 40px;
}

.skill-category-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.skill-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.2));
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--accent-primary));
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 10px 25px; gap: 20px; }
    .nav-link { font-size: 0.85rem; }
    section { padding: 60px 5%; }
    .hero-heading { font-size: 3rem; }
}