:root {
    --bg-color: #0a0a0a;
    --bg-dark: #00162e14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-blue: #00f3ff;
    --accent-purple: #bc13fe;
    --glow-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
}

[data-theme="light"] {
    --bg-color: #F8FAFC;
    --bg-dark: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-color: #1E293B;
    --text-muted: #475569;
    --accent-blue: #3B82F6;
    --accent-purple: #14B8A6;
    /* Using Teal as secondary accent */
    --glow-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

/* Global Light Mode Typography Overrides */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: var(--text-color);
}

/* Light Mode Specific Overrides */
[data-theme="light"] .main-heading {
    background: linear-gradient(to right, #1E293B, #3B82F6);
    /* Dark Slate to Blue */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .btn-secondary {
    color: var(--text-color);
    border-color: var(--text-color);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

[data-theme="light"] .skill-card h3,
[data-theme="light"] .project-card h3 {
    color: var(--text-color);
}

[data-theme="light"] .project-card p {
    color: var(--text-muted);
}

/* Glass effect for cards in light mode */
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .contact-wrapper {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.6);
    /* Slightly more transparent for glass feel */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly less transparent */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hamburger .bar {
    background-color: #000;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    /* Separate from nav links */
    position: relative;
    z-index: 100;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    width: 60px;
    height: 30px;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    transition: all 0.4s ease;

    /* Dark Mode Default Style */
    background-color: #0f172a;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(188, 19, 254, 0.5),
        /* Neon Purple Glow */
        0 0 20px rgba(0, 243, 255, 0.3);
    /* Neon Blue Glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode Style (Checked) */
.checkbox:checked+.checkbox-label {
    background-color: #3B82F6;
    /* Sky Blue */
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(59, 130, 246, 0.4);
    /* Soft Shadow */
    border-color: rgba(255, 255, 255, 0.3);
}

/* Icons within the toggle */
.fa-moon {
    color: #f1c40f;
    transition: all 0.4s ease;
    font-size: 14px;
    opacity: 1;
    transform: scale(1);
    position: absolute;
    right: 8px;
    z-index: 1;
}

.fa-sun {
    color: #fff;
    transition: all 0.4s ease;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
    left: 8px;
    z-index: 1;
}

/* Hide sun in dark mode, Hide moon in light mode */
.checkbox:checked+.checkbox-label .fa-moon {
    opacity: 0;
    transform: scale(0.5);
}

.checkbox:checked+.checkbox-label .fa-sun {
    opacity: 1;
    transform: scale(1);
}

/* The Sliding Ball */
.checkbox-label .ball {
    background-color: #fff;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 3px;
    top: 2px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy Apple-like effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Move ball in Light Mode */
.checkbox:checked+.checkbox-label .ball {
    transform: translateX(30px);
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.checkbox-label:hover {
    transform: scale(1.05);
    /* Slight zoom */
}

/* Dark Mode Hover Glow */
.checkbox-label:hover {
    border-color: var(--accent-blue);
}

.checkbox:not(:checked)+.checkbox-label:hover {
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(188, 19, 254, 0.7),
        0 0 30px rgba(0, 243, 255, 0.5);
}

/* Light Mode Hover Glow */
.checkbox:checked+.checkbox-label:hover {
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(59, 130, 246, 0.6);
}


* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #0B132B 0%, #020205 100%);
    transition: background 0.5s ease;
}

[data-theme="light"] #particles-canvas {
    background: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bg-dark), var(--accent-blue));
    border-radius: 5px;
}

/* Typography */
h1,
h2,
h3 {
    color: #fff;
    font-weight: 700;
}

span.dot {
    color: var(--accent-blue);
}

span.accent {
    color: var(--accent-purple);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: radial-gradient(circle at top right, rgba(0, 243, 255, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(188, 19, 254, 0.05), transparent 40%);
    padding-top: 80px;
    /* Offset for fixed navbar */
}

.hero-content {
    max-width: 600px;
}

.welcome-text {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.main-heading {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a0f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(0, 243, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 10px 10px 0 var(--accent-blue);
    transition: var(--transition);
}

.about-img:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0 var(--accent-purple);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    /* Placeholder height */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1));
    z-index: 1;
}

.project-content {
    padding: 30px;
    z-index: 2;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-sm {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-sm:hover {
    background: var(--accent-blue);
    color: #000;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        width: 60%;
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 30px 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
        gap: 50px;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
    }

    .main-heading {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
        max-width: 300px;
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .hero-content .main-heading {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .skill-card {
        width: 130px;
        height: 130px;
        padding: 20px;
    }

    .skill-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 400px) {
    .hero-content .main-heading {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .hero-image-container {
        width: 200px;
        height: 200px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-img {
        max-width: 250px;
    }

    .skill-card {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
        gap: 20px;
    }

    .skill-icon {
        margin-bottom: 0;
        font-size: 2rem;
    }

    .contact-wrapper {
        padding: 20px;
    }
}