/* css/style.css - V8.2 Default Cursor & Compact Projects */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Fira+Code:wght@400;600&display=swap');

:root {
    --bg-color: #0a0a14;
    --primary-color: #1a1a2e;
    --accent-color-1: #00aaff;
    --accent-color-2: #ff00ff;
    --text-color: #e0e0e0;
    --heading-font: 'Fira Code', monospace;
    --body-font: 'Roboto', sans-serif;
    --hacker-green: #a200ff;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* --- REMOVED CURSOR: NONE --- */
}

/* --- HIDE DEFAULT CURSOR ONLY ON INTERACTIVE ELEMENTS --- */
a, button, input, textarea {
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow: hidden;
}

/* --- UPDATED SVG CURSOR STYLES --- */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    /* --- INVISIBLE BY DEFAULT --- */
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
#custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- ANIMATED BACKGROUND --- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.shape {
    position: absolute;
    list-style: none;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s linear infinite;
    bottom: -150px;
}
.shape1 { left: 10%; width: 80px; height: 80px; animation-duration: 22s; }
.shape2 { left: 20%; width: 30px; height: 30px; animation-duration: 18s; border-radius: 50%;}
.shape3 { left: 35%; width: 100px; height: 100px; animation-duration: 25s; }
.shape4 { left: 55%; width: 40px; height: 40px; animation-duration: 15s; border-radius: 50%;}
.shape5 { left: 80%; width: 60px; height: 60px; animation-duration: 20s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; }
}

/* --- FULL-PAGE SCROLL CONTAINER --- */
main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary-color);
    padding: 1.2rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s, text-shadow 0.3s;
}
nav a.active {
    color: var(--accent-color-1);
    text-shadow: 0 0 10px var(--accent-color-1);
}

/* --- GENERAL SECTION STYLING --- */
section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
}

.section-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- SCROLL-REVEAL ANIMATION STYLES --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 { font-family: var(--heading-font); }
h1 { font-size: 4rem; }
h2 { font-size: 3rem; color: var(--accent-color-1); margin-bottom: 2rem;}
p { font-size: 1.1rem; }

/* --- HERO SECTION --- */
#hero p {
    font-size: 1.5rem;
    color: var(--accent-color-2);
    min-height: 2.2rem;
}

/* --- ABOUT SECTION --- */
#about .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: left;
}
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--accent-color-1);
    box-shadow: 0 0 20px var(--accent-color-1);
    object-fit: cover;
    flex-shrink: 0;
}
.resume-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-color-2);
    border-radius: 5px;
    color: var(--accent-color-2);
    text-decoration: none;
    font-family: var(--heading-font);
    transition: background-color 0.3s, color 0.3s;
}
.resume-button:hover {
    background-color: var(--accent-color-2);
    color: var(--bg-color);
}


/* --- SKILLS SECTION --- */
#skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
#skills li {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--heading-font);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}
#skills i { font-size: 2.5rem; }

/* --- PROJECTS SECTION --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: left;
}
.project-card, .tilt-element {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}
.project-card {
    background: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    border: 1px solid var(--hacker-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    overflow: hidden; 
}
.project-card img {
    width: 100%;
    height: 120px; /* Reduced image height */
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.project-card:hover img {
    opacity: 1;
}
.project-card-content {
    padding: 1rem; /* Reduced padding */
}
.project-card h3 {
    color: var(--hacker-green);
    margin-bottom: 0.5rem;
    font-size: 1rem; /* Reduced font size */
}
.project-card p {
    color: var(--text-color);
    font-size: 0.85rem; /* Reduced font size */
    line-height: 1.4;
}
.project-card a {
    display: inline-block;
    margin-top: 0.8rem; /* Reduced margin */
    color: var(--hacker-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem; /* Reduced font size */
}

/* --- ACHIEVEMENTS SECTION (HORIZONTAL) --- */
.achievements-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
}
.achievement-card {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    width: 250px;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}
.achievement-card.in-view {
    opacity: 1;
    transform: translateY(0);
}
.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color-2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.achievement-card h3 {
    color: var(--accent-color-1);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.achievement-card p {
    font-size: 0.9rem;
}


/* --- CONTACT SECTION --- */
form { display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; gap: 1rem; }
input, textarea {
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 1rem; padding: 1rem; border-radius: 8px; border: 1px solid transparent;
}
input:focus, textarea:focus {
    outline: none; border-color: var(--accent-color-1); box-shadow: 0 0 10px var(--accent-color-1);
}
button {
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    color: #fff; font-weight: bold;
    font-size: 1.1rem; padding: 1rem; border-radius: 8px; border: none;
}

/* --- FOOTER --- */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    background: rgba(10, 10, 20, 0.5);
    font-size: 0.8rem;
    z-index: 100;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1200px) {
    .project-grid, .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    section { padding: 6rem 1rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; margin-bottom: 2rem;}
    
    #about .about-content {
        flex-direction: column;
        text-align: center;
    }

    .project-grid, .achievements-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}