/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #030303; /* Deeper black */
    --secondary-color: #ffffff; /* Pure white for subtle accents */
    --accent-color: #ebebeb; /* Near-white for main highlights */
    --neon-glow-color: rgba(220, 250, 255, 0.08); /* Extremely subtle, cool white/cyan neon glow */
    --bg-color-dark: #030303; /* Main background color, almost black */
    --text-color: #e8e8e8; /* Slightly brighter light text */
    --card-bg: #0a0a0a; /* Very slightly lighter than background for subtle card definition */
    --border-color: rgba(255, 255, 255, 0.02); /* Near-invisible border */
    --gradient-start: #060606;
    --gradient-end: #030303;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px; /* Small dot */
    height: 8px; /* Small dot */
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none; /* Allows clicks on elements beneath it */
    transform: translate(-50%, -50%); /* Center the dot on the cursor */
    z-index: 9999;
    opacity: 0.7; /* Subtle visibility */
    transition: width 0.15s ease-out, height 0.15s ease-out, opacity 0.15s ease-out, transform 0.05s linear; /* Fast transform, subtle size change */
    box-shadow: 0 0 5px var(--neon-glow-color); /* Very subtle glow */
}

/* Ensure no default cursor on interactive elements */
a, button, input[type="range"], .skill-item, .project-item {
    cursor: none !important;
}


.custom-cursor.hovered {
    width: 16px; /* Slightly larger on hover */
    height: 16px;
    opacity: 0.9; /* Slightly more visible on hover */
    box-shadow: 0 0 10px var(--neon-glow-color); /* More pronounced glow on hover */
}

/* Particle Canvas Overlay */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03; /* Even more subtle particle effect */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--accent-color);
    text-shadow: 0 0 3px var(--neon-glow-color), 0 0 8px rgba(255, 255, 255, 0.03); /* Fainter, more diffused glow */
}

/* Header & Navigation */
.header {
    background: rgba(3, 3, 3, 0.9); /* Slightly less transparent */
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* backdrop-filter: blur(20px); -- Removed to fix persistent blur */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 0 0 3px var(--neon-glow-color); /* Fainter logo glow */
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.logo-dot {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

/* Hover underline animation */
.hover-underline-animation:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px; /* Thinner line */
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-underline-animation:hover:after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Music Toggle Button */
.music-toggle-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: none; /* Controlled by custom cursor */
    transition: background-color 0.2s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

.music-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--secondary-color);
    box-shadow: 0 0 10px var(--neon-glow-color);
}

.music-toggle-btn.playing {
    color: var(--secondary-color); /* Highlight when playing */
    box-shadow: 0 0 10px var(--neon-glow-color);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px; /* Thin bar */
    background-color: var(--accent-color);
    width: 0%;
    z-index: 1001; /* Above header if needed */
    transition: width 0.1s linear; /* Smooth fill */
    box-shadow: 0 0 8px var(--neon-glow-color); /* Subtle glow */
}


/* Hero Section */
.hero-section {
    padding: 150px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    gap: 60px;
}

.hero-content {
    max-width: 600px;
    text-align: center;
}

.hero-content h2 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 5px var(--neon-glow-color), 0 0 10px rgba(255, 255, 255, 0.05); /* Fainter, more diffused glow */
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #bdbdbd; /* Slightly darker white */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    color: var(--text-color);
    font-size: 2.2rem;
    transition: color 0.2s ease-out, transform 0.2s ease-out; /* Faster, smoother transition */
}

.social-icon:hover {
    color: var(--secondary-color); /* White hover */
    transform: translateY(-3px) scale(1.05); /* Even more subtle lift and scale */
}

.hero-image {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color); /* Even thinner border */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.08), 0 0 15px var(--neon-glow-color), inset 0 0 8px rgba(255, 255, 255, 0.05); /* Very minimalist glow */
    animation: pulse-glow 3s infinite ease-in-out alternate;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(1.05); /* Slightly darker B&W for contrast */
}

@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(255, 255, 255, 0.08), 0 0 15px var(--neon-glow-color), inset 0 0 8px rgba(255, 255, 255, 0.05); }
    100% { transform: scale(1.005); box-shadow: 0 0 12px rgba(255, 255, 255, 0.15), 0 0 25px var(--neon-glow-color), inset 0 0 12px rgba(255, 255, 255, 0.08); } /* Very subtle scale and glow on pulse */
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #c5c5c5;
}

.about-content p {
    margin-bottom: 25px;
}

.about-content strong {
    color: var(--accent-color); /* White strong text */
    font-weight: 700;
}

/* Skills Section */
.skills-section {
    background-color: var(--card-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 45px;
    margin-top: 50px;
}

.skill-item {
    background-color: var(--bg-color-dark);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; /* Faster, smoother transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-5px); /* Very subtle lift */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25), 0 0 8px var(--neon-glow-color); /* Softer, diffused shadow and glow */
    border-color: var(--secondary-color); /* White border on hover */
}

.skill-icon {
    font-size: 3.8rem;
    color: var(--accent-color); /* White icon */
    margin-bottom: 25px;
    animation: float 4s infinite ease-in-out;
}

.skill-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.skill-item p {
    font-size: 1.05rem;
    color: #c0c0c0;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 45px;
}

.project-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; /* Faster, smoother transition */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-5px); /* Very subtle lift */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25), 0 0 8px var(--neon-glow-color); /* Softer, diffused shadow and glow */
    border-color: var(--accent-color); /* White border on hover */
}

.project-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    filter: grayscale(100%) brightness(0.7); /* Desaturated and slightly darker */
    transition: filter 0.3s ease-out; /* Faster transition */
}

.project-item:hover img {
    filter: grayscale(0%) brightness(1); /* Colorize on hover */
}

.project-item h3 {
    font-size: 1.8rem;
    margin: 30px 30px 15px;
    color: var(--text-color);
}

.project-description {
    padding: 0 30px;
    color: #b0b0b0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-features {
    list-style: none;
    padding: 0 30px 25px;
}

.project-features li {
    font-size: 1.05rem;
    color: #c0c0c0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.project-features li i {
    color: var(--secondary-color); /* White icons */
    margin-right: 15px;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin: 0 30px 30px;
    transition: background-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; /* Faster, smoother transition */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: none; /* Controlled by custom cursor */
    border: 1px solid var(--accent-color); /* White border for buttons */
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.03); /* Extremely subtle transparent white */
    color: var(--accent-color); /* White text */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 6px var(--neon-glow-color); /* Soft shadow and subtle neon glow */
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly more opaque on hover */
    transform: translateY(-2px); /* Very subtle lift */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 8px var(--neon-glow-color); /* Softer hover shadow and glow */
}

.disabled-btn {
    background-color: #121212; /* Slightly darker disabled background */
    color: #444; /* Darker disabled text */
    cursor: none !important; /* Controlled by custom cursor */
    box-shadow: none;
    border-color: #222; /* Darker disabled border */
}

.disabled-btn:hover {
    background-color: #121212;
    transform: none;
    box-shadow: none;
}

/* Contact Section */
.contact-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
    color: #c5c5c5;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.contact-btn {
    background-color: rgba(255, 255, 255, 0.03); /* Extremely subtle transparent white */
    color: var(--accent-color); /* White text */
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; /* Faster, smoother transition */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 6px var(--neon-glow-color); /* Soft shadow and subtle neon glow */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-color); /* White border for buttons */
    cursor: none; /* Controlled by custom cursor */
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly more opaque on hover */
    transform: translateY(-3px); /* Very subtle lift */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 8px var(--neon-glow-color); /* More pronounced hover shadow and glow */
}

.contact-btn i {
    margin-right: 15px;
    font-size: 1.4rem;
}

/* Footer */
footer {
    background-color: var(--bg-color-dark);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 50px;
    }

    .hero-image {
        margin-bottom: 40px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-item, .project-item {
        margin: 0 10px;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content p, .skill-item p, .project-description, .project-features li {
        font-size: 0.9rem;
    }

    .btn, .contact-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* Animations for elements appearing on scroll */
/* Hidden initially */
.fade-in-up, .slide-in-bottom, .zoom-in, .scale-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Delay for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Specific animation properties when 'animated' class is added by JS */
.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-bottom.animated {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in.animated {
    opacity: 1;
    transform: scale(1);
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

.hero-image.scale-in {
    transform: scale(0.8); /* Start smaller */
}

.hero-image.scale-in.animated {
    transform: scale(1); /* Scale up */
}
