/* 
  Theme Variables & Reset 
*/
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);

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

    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 
  Utilities 
*/

/* Animation Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.section {
    padding: 100px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-main);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation usually requires JS toggle, simplistic for now */
    }
}

/* 
  Hero Section 
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 0%;
    transform: translateX(0);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 650px;
}

.avatar-container {
    margin-bottom: 24px;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    animation: float 6s ease-in-out infinite;
    background: var(--card-bg);
    /* Fallback color */
}

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

    50% {
        transform: translateY(-10px);
    }

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* Hero Image Styling */
.hero-image-container {
    flex: 0 0 400px;
    height: 500px;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.hero-image-container:hover .hero-profile-img {
    filter: grayscale(0%);
}


@media (max-width: 968px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

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

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-container {
        flex: 0 0 300px;
        height: 380px;
        transform: rotate(0deg);
        width: 100%;
        max-width: 300px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

/* 
  Bento Grid (About) 
*/
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.bio-card {
    grid-row: span 2;
}

.stack-card {
    grid-row: span 2;
    justify-content: space-between;
}


.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tags span {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.vibe-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
}

.vibe-card p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* 
  Projects Section 
*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.project-image-container {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-link:hover {
    background: var(--text-main);
    color: #000;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 8px;
}

.tags span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 
  Contact Section 
*/
.contact-section {
    padding-top: 150px;
    padding-bottom: 60px;
    text-align: center;
}

.contact-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-radius: 32px;
    padding: 80px 20px;
    border: 1px solid var(--card-border);
}

.contact-container h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--text-main);
    color: #000;
}

.footer {
    margin-top: 80px;
    color: #444;
    font-size: 0.9rem;
}

/* 
  Cursor Glow Effect 
*/
/* 
  Cursor Glow Effect 
*/
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    position: fixed;
    top: -200px;
    left: -200px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(0, 0);
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

/* 
  Responsive Adjustments 
*/
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        /* Keep hidden on mobile for simplicity, or implement toggle if requested */
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        /* Stack projects on mobile */
    }

    .contact-container h2 {
        font-size: 2rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero::before {
        width: 100%;
        height: 400px;
    }

    .bento-card {
        padding: 24px;
    }

    .contact-container {
        padding: 40px 20px;
    }

    .hero-image-container {
        height: 300px;
        /* Smaller image on very small screens */
    }
}