/* --- Variables & Reset --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --text-color: #e0e0e0;
    --accent-color: #00ff41; /* Cyber Green */
    --accent-dim: rgba(0, 255, 65, 0.1);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; color: #fff; }
.accent { color: var(--accent-color); }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Container Utility --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    min-height: fit-content;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo { font-size: 1.5rem; font-weight: bold; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--accent-color); }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: white; transition: var(--transition); }

/* --- Home / Hero --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--accent-dim);
}
.profile-img {
    transition: all 0.3s ease; /* This makes the effect smooth */
}

/* The Hover Effect */
.profile-img:hover {
    /* 1. This creates the green outer glow */
    box-shadow: 0 0 30px red; 
    
    /* 2. Optional: Zooms the image slightly for a better feel */
    transform: scale(1.05); 
    
    /* 3. Changes cursor to indicate interactivity */
    cursor: pointer; 
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-content h2 { font-size: 1.5rem; color: #888; margin-bottom: 20px; font-weight: 400; }
.tagline { margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Scroll Mouse Animation */
.mouse {
    width: 30px; height: 50px; border: 2px solid #fff; border-radius: 20px; display: block; margin: 0 auto; position: relative;
}
.wheel {
    width: 4px; height: 8px; background: var(--accent-color); position: absolute; top: 10px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: scroll 1.5s infinite;
}

/* --- About --- */
.about-content { text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.1rem; }

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.skill-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px var(--accent-dim); }
.progress-bar { background: #333; height: 6px; border-radius: 3px; margin-top: 15px; }
.progress { background: var(--accent-color); height: 100%; border-radius: 3px; }

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.project-card:hover { transform: scale(1.02); }
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; }
.tech-tags span {
    display: inline-block;
    background: #222;
    color: var(--accent-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    margin: 10px 5px 0 0;
    border-radius: 4px;
}
.card-links { margin-top: 20px; display: flex; gap: 15px; }
.card-links a { font-weight: bold; border-bottom: 1px solid var(--accent-color); }

/* --- Education (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid #333;
    padding-left: 30px;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
    content: ''; position: absolute; left: -36px; top: 5px;
    width: 10px; height: 10px; background: var(--accent-color); border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}
.date { font-size: 0.9rem; color: var(--accent-color); display: block; margin-bottom: 5px; }
.timeline-desc { color: #888; margin-top: 5px; }

/* --- Certifications --- */
.cert-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.cert-card {
    background: #111; border: 1px solid #333;
    padding: 20px; border-radius: 8px; width: 300px; text-align: center;
}
.cert-card:hover { border-color: var(--accent-color); }

/* --- Resume & Buttons --- */
.resume-section { text-align: center; background: #0f0f0f; }
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--accent-color); color: #000; }

/* --- Contact Form --- */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: #888; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-family: inherit;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-color); }
.error-msg { color: #ff4141; font-size: 0.8rem; display: none; margin-top: 5px; }
.error-msg.show { display: block; }

/* --- Footer --- */
footer { padding: 40px 0; background: #050505; text-align: center; border-top: 1px solid #222; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-links a {
    width: 40px; height: 40px; border: 1px solid #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.social-links a:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* --- Animations --- */
@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger { display: block; z-index: 2000; }
    .hamburger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .timeline { padding-left: 20px; }
}