:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #D0FE1D;
    /* Acid Green for strong contrast */
    --accent-glow: rgba(208, 254, 29, 0.4);
    --gradient-1: #D0FE1D;
    --gradient-2: #00C2FF;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.1;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent {
    color: var(--accent);
}

.gradient-text {
    background: linear-gradient(to right, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: var(--accent);
    color: #000;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    margin-left: 10px;
    padding: 14px 20px;
}

.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Navbar */
.navbar {
    padding: 30px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    mix-blend-mode: difference;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    /* mix-blend-mode handles this */
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* nav spacer */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Abstract Shapes */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    top: 10%;
    left: 20%;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: 10%;
    right: 10%;
    opacity: 0.3;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

/* Skills Section */
.skills-section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 120px 0;
}

.filter-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    /* Fallback background */
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Dark background for transparent images */
}

.portfolio-thumb img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.portfolio-overlay {
    display: none;
    /* Removed as per user request */
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.08) translateY(-10px);
    filter: brightness(1.1);
}

.portfolio-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
    z-index: 5;
}

/* Footer style */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-title {
    font-size: 4rem;
    font-family: var(--font-display);
    margin-bottom: 30px;
}

.footer-email {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    transition: var(--transition);
}

.footer-email:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.social-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: flex-end;
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
}


/* Responsive */
/* Responsive */
@media (max-width: 900px) {
    .navbar .container {
        /* Keep logo and hamburger aligned */
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0px;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* Full width on mobile */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 90;
        /* Below hamburger */
        justify-content: center;
        padding-top: 60px;
        opacity: 0;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
        opacity: 1;
    }

    .nav-link {
        opacity: 0;
        font-size: 1.5rem;
    }

    /* Animate Links In */
    .nav-links.nav-active .nav-link {
        opacity: 1;
        transition: opacity 0.5s ease-in 0.3s;
    }

    /* Hamburger Styles */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 100;
        /* Above regular nav */
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: white;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--accent);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        /* Wait, user HTML has only 2 spans likely? Let's check index.html */
        /* index.html has 2 spans? No, let's assume standard hamburger usually has 3, but let's check index.html again. */
        /* Checking index.html line 36-38: It has 2 spans. */
    }
}

/* Fix for 2-span hamburger in HTML (custom design) */
/* index.html lines 36-37 show 2 spans */
@media (max-width: 900px) {
    .hamburger span:nth-child(1) {
        /* Top bar */
    }

    .hamburger span:nth-child(2) {
        /* Bottom bar */
    }

    .hamburger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        /* Adjusted for 2 bars */
        width: 30px;
        /* Optional visual tweak */
    }

    .hamburger.toggle span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 30px;
    }
}



@media (max-width: 900px) {
    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .social-links {
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        /* Significantly smaller for phones */
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skill-card {
        padding: 25px;
    }

    .profile-container {
        max-width: 280px;
        /* Smaller image on phones */
    }

    .container {
        padding: 0 15px;
        /* Tighter padding */
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
}

/* Profile Image */
.profile-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/5;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-container:hover .profile-img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 60px rgba(208, 254, 29, 0.15);
    border-color: rgba(208, 254, 29, 0.3);
}

.profile-container:hover .shape-1 {
    transform: translate(-30px, -30px) scale(1.2);
    opacity: 0.6;
}

.profile-container:hover .shape-2 {
    transform: translate(30px, 30px) scale(1.2);
    opacity: 0.5;
}

/* Adjust shapes to be behind */
.hero-visual .abstract-shape {
    z-index: 1;
}

/* Admin Trigger */
#admin-trigger {
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.1;
    /* Almost invisible */
    font-size: 0.8rem;
    margin-left: 10px;
    cursor: pointer;
}

#admin-trigger:hover {
    opacity: 1;
    color: var(--accent);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(208, 254, 29, 0.2);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-main);
}


/* Admin Controls */
.admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--accent);
    color: black;
}

.delete-btn:hover {
    background: #ff4757;
    color: white;
}