/* --- EDIT HERE: GLOBAL COLORS (Change these to change the whole site's theme) --- */
:root {
    --bg-dark: #0a192f;        /* Deep Navy Background */
    --accent-blue: #64ffda;    /* Neon Teal Accent */
    --glass-bg: rgba(255, 255, 255, 0.03); /* See-through card color */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ccd6f6;
    --text-bright: #ffffff;
}

/* BASIC SETUP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* This background image adds a cool star/grain effect to the deep space vibe */
    background-image: radial-gradient(circle at top right, #112240 0%, transparent 40%), 
                      radial-gradient(circle at bottom left, #112240 0%, transparent 40%);
    background-attachment: fixed;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #112240; border-radius: 10px; border: 1px solid var(--glass-border);}
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px); /* Makes the nav bar blurry like frosted glass */
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-bright); }
.logo span { color: var(--accent-blue); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--text-main); transition: 0.3s; font-size: 0.95rem; font-weight: 600;}
.nav-links a:hover { color: var(--accent-blue); }

/* --- HERO / INTRO SECTION --- */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.15); /* Glowing effect */
    object-fit: cover;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); color: var(--text-bright); margin-bottom: 10px; }
.accent { color: var(--accent-blue); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 20px; font-weight: 300; }

.contact-info { margin-bottom: 30px; font-size: 0.95rem; }
.contact-info a { color: var(--accent-blue); text-decoration: none; }

/* --- BUTTONS --- */
.glass-btn {
    padding: 12px 25px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    border-radius: 8px;
    margin: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    background: rgba(100, 255, 218, 0.05);
}

.glass-btn:hover {
    background: rgba(100, 255, 218, 0.15);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: translateY(-3px);
}

/* --- COMMON CONTAINER STYLES --- */
.container { padding: 100px 8%; max-width: 1400px; margin: 0 auto; }
.section-title { 
    font-size: 2.2rem; 
    margin-bottom: 50px; 
    color: var(--text-bright); 
    display: flex;
    align-items: center;
}
/* Creates a cool line next to section titles */
.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background: var(--glass-border);
    margin-left: 20px;
}

/* --- THE 3D GLASS CARD (Used everywhere) --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); /* Glass blur effect */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

/* --- EDUCATION SECTION --- */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.date { display: block; margin-top: 15px; font-size: 0.9rem; color: #8892b0; font-weight: 600; }

/* --- PROJECTS SECTION --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 35px 25px;
    transform-style: preserve-3d; /* CRITICAL FOR TILT.JS TO WORK */
}

/* Makes text physically "pop out" of the card when you tilt it */
.card-content { transform: translateZ(40px); }

.tech-tag { color: var(--accent-blue); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }
.project-card h3 { margin: 15px 0; color: var(--text-bright); font-size: 1.6rem; }
.project-card ul { padding-left: 20px; margin-bottom: 20px; font-size: 0.95rem; }
.project-card li { margin-bottom: 10px; }
.link-btn { text-decoration: none; color: var(--accent-blue); font-weight: bold; }
.link-btn:hover { text-decoration: underline; }

/* --- SKILLS SECTION --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.skill-box h3 { margin-bottom: 15px; font-size: 1.2rem; }

/* --- CERTIFICATES SECTION --- */
.cert-list { display: flex; flex-direction: column; gap: 20px; }
.cert-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    text-decoration: none; 
    color: var(--text-main);
}
.cert-item:hover { border-color: var(--accent-blue); }
.cert-item h3 { font-size: 1.1rem; color: var(--text-bright); }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; border-top: 1px solid var(--glass-border); font-size: 0.9rem; margin-top: 50px;}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hides nav on small phones to keep it clean */
    .container { padding: 80px 5%; }
    .section-title::after { display: none; }
    .cert-item { flex-direction: column; text-align: center; gap: 15px; }
}
