/* CSS Variables */
:root {
    /* Colors */
    --bg-main: #0a0a0a;
    --bg-card: #171717;
    --bg-surface: rgba(23, 23, 23, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Brand Gradients */
    --brand-primary: #4f46e5;
    --brand-secondary: #ec4899;
    --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    --gradient-border: linear-gradient(90deg, #4f46e5, #ec4899, #06b6d4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;

    /* Modify specific shadows and borders for light mode visibility */
    --border-light: rgba(0, 0, 0, 0.1);
}

/* Reset & Initial Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* cursor: none; */
    /* For custom cursor */
}

/* Typography styles */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Section Titles */
.section-title {
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.underline {
    width: 100%;
    height: 6px;
    background: var(--gradient-brand);
    position: absolute;
    bottom: 5px;
    left: 0;
    border-radius: 3px;
    z-index: 1;
    opacity: 0.3;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: auto;
    /* Match custom cursor */
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-3px);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--bg-surface);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--brand-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-brand);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--brand-primary);
    transform: rotate(15deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0 10%;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.greeting {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-size: clamp(4rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.role {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.description {
    max-width: 500px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-brand);
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.8) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(30px, -30px);
    }

    100% {
        transform: scale(0.9) translate(-20px, 20px);
    }
}

.floating-element {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.el-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    color: #61dafb;
}

.el-2 {
    top: 60%;
    left: 10%;
    animation-delay: -2s;
    color: #f7df1e;
}

.el-3 {
    top: 40%;
    right: 15%;
    animation-delay: -4s;
    color: #e34c26;
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 3rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.05));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-fast);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    color: var(--brand-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-pill {
    background: var(--border-light, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.skill-pill:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.skill-pill i {
    font-size: 1.2rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.05));
    transition: var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.project-card:hover .img-placeholder {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(3px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.25rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    transform: scale(1.1) !important;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech span {
    font-size: 0.8rem;
    color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4rem;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.05));
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--border-light, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--brand-secondary);
}

.info-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-details p,
.info-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-details a:hover {
    color: var(--brand-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--border-light, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-main);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-primary);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.05));
    background: var(--bg-main);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-top {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    background: var(--border-light, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.scroll-top:hover {
    background: var(--brand-primary);
    border-color: transparent;
}


/* Media Queries */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 4rem;
        width: 100%;
        height: 400px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-actions {
        gap: 1rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
        /* Ensure hamburger is above menu */
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(23, 23, 23, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        margin: 0;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 6rem;
        /* Push links down */
        gap: 0;
        z-index: 1000;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .section {
        padding: 5rem 0 3rem;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .about-content {
        gap: 2rem;
    }

    .skill-category {
        padding: 2rem 1.5rem;
    }

    .contact-content {
        padding: 2rem;
        gap: 2.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .name {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .role {
        font-size: 1.5rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .blob {
        width: 250px;
        height: 250px;
    }

    .floating-element {
        padding: 1rem;
        font-size: 1.8rem;
    }

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

    .section {
        padding: 4rem 0 2rem;
    }

    .project-img {
        height: 200px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .contact-content {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
}