/* Variables & Reset */
:root {
    --bg-dark: #0a0a0b;
    --bg-card: #141416;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.section-padding {
    padding: 60px 0;
}

.highlight {
    color: var(--primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading), serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    /* navbar offset */
}

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

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
    font-family: var(--font-heading), serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.glow-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 5s infinite ease-in-out;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-main);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

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

.about-card h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading), serif;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tech Stack */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stack-category h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    display: inline-block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s;
    border: 1px solid transparent;
    display: inline-block;
    text-decoration: none;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.3);
}

.highlight-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Experience */
.timeline {
    margin-top: 40px;
    border-left: 2px solid var(--border);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-family: 'Fira Code', monospace;
}

.experience-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.experience-link:hover {
    color: var(--primary);
}

/* AI Focus */
.focus-card {
    background: linear-gradient(145deg, rgba(20, 20, 22, 1) 0%, rgba(10, 10, 11, 1) 100%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.focus-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.focus-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.focus-card p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Contact */
.contact-box {
    text-align: center;
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 16px;
    background: rgba(20, 20, 22, 0.4);
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item:hover {
    color: var(--primary);
}

footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer i {
    color: var(--accent);
}

/* Animations Class */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
        /* Hide expensive visual on mobile for simplicity */
    }

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
}