/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* LIGHTING COLOR GRADE PALETTE */
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-glow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --purple-glow: 0 0 10px rgba(188, 19, 254, 0.5);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* =========================================
   2. BACKGROUND GRID & ATMOSPHERE
   ========================================= */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* =========================================
   3. NAVBAR
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mini-avatar {
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
}

/* =========================================
   4. HERO SECTION (Index.php)
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-text {
    z-index: 2;
    transform: translateY(-20px);
}

.row-1, .row-2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .row-1, .row-2 { font-size: 2.5rem; }
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

.filled-text {
    color: var(--text-main);
    text-shadow: var(--neon-glow);
}

/* Floating Graphics */
.graphics-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.spaceship-graphic img {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 150px;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px var(--neon-cyan));
    animation: float 6s ease-in-out infinite;
}

.eye-graphic img {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 120px;
    opacity: 0.6;
    filter: drop-shadow(0 0 15px var(--neon-purple));
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Marquee */
.marquee-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--neon-cyan);
    color: #000;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
    font-weight: 700;
    font-size: 0.8rem;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Bottom Icons */
.bottom-bar {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 5;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(0,0,0,0.5);
}

.icon-circle:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--neon-glow);
}

/* =========================================
   5. PAGE LAYOUTS (Projects, Skills, Contact)
   ========================================= */
.page-container {
    padding: 120px 10% 50px;
    min-height: 100vh;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* =========================================
   6. PROJECTS STYLING
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.2);
}

.project-card a { display: block; overflow: hidden; }

.p-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .p-img {
    transform: scale(1.1);
}

.p-info {
    padding: 20px;
}

.p-info h3 {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.p-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   7. SKILLS STYLING
   ========================================= */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.skill-category h2 {
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.skill-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.skill-card h3 {
    color: #fff;
    margin-bottom: 5px;
}

.skill-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list span {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
    border-radius: 20px;
    transition: var(--transition);
}

.skill-list span:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================
   8. CONTACT FORM
   ========================================= */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-bottom-color: var(--neon-cyan);
    box-shadow: 0 1px 0 0 var(--neon-cyan);
}

.contact-form button {
    margin-top: 10px;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 2px;
}

.contact-form button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: var(--neon-glow);
}