:root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #cf9b2b;
    /* Neon Cyan */
    --accent-glow: #954901;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-height: 70px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', sans-serif;
    /* Modern, tech-focused fonts */
    overflow-x: hidden;
    cursor: url('../images/bug.png'), auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent,
.hero-title,
.navbar-brand {
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FDB931;
    /* Fallback */
}

.text-secondary-custom {
    color: var(--text-secondary);
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    background: radial-gradient(circle at 50% 50%, rgba(214, 145, 16, 0.05) 0%, rgba(10, 10, 10, 0) 50%);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    /* Gradient handled by shared rule */
}

.typing-container {
    font-family: 'Fira Code', monospace;
    /* Terminal vibe */
    color: var(--accent);
    font-size: 1.25rem;
    min-height: 2rem;
    margin-bottom: 2rem;
}

/* Contact Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 4px;
    /* Sharp professional look */
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
    border-color: var(--accent);
}

/* Buttons */
.btn-antigravity {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-antigravity:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: var(--accent);
}

/* Tech Stack Grid */
.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.tech-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Experience Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-left: 1rem;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(10px);
    border: 1px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Bento Box Projects */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

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

.code-snippet-bg {
    background: #000;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    overflow: hidden;
    white-space: pre-wrap;
    height: 120px;
    /* Aesthetic height */
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 1.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 5rem;
}

footer .btn-outline-light {
    transition: all 0.3s ease;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

footer .btn-outline-light:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Utilities */
.neon-border {
    border: 1px solid var(--accent);
}

/* Profile Image */
.profile-img {
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    box-shadow: 0 0 30px var(--accent-glow);
    max-width: 350px;
    width: 100%;
    width: 100%;
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--accent-glow);
    border-color: var(--accent);
}



/* Navbar Logo */
.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Page Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-img {
    width: 80px;
    height: auto;
    animation: bug-pulse 1.5s infinite ease-in-out;
}

@keyframes bug-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

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

/* Mobile Navbar Background */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #000;
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
}