:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --gradient-main: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

section {
    padding: 3rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    color: var(--bg-color);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--neon-blue);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    border-image: var(--gradient-main);
    border-image-slice: 1;
    background: transparent;
    color: white;
    border: 2px solid transparent;
    /* Fallback */
    position: relative;
}

/* specific fix for gradient border button feeling */
.btn-glow {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.7);
    transform: translateY(-2px);
}

/* Navbar */
nav {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--neon-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    /* Ensure content clears fixed nav */
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content h3 {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 1.5rem 0 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card h3 {
    margin-bottom: 1rem;
    color: white;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

#contact {
    padding-bottom: 8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--neon-purple);
}

/* Utility Classes */
.subtitle-large {
    font-size: 2rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

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

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.date-badge {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.job-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.location-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-disc {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.list-item-spaced {
    margin-bottom: 0.5rem;
}

.list-item-with-icon {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.list-item-with-icon-lg {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.list-icon {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--neon-purple);
    font-size: 0.8rem;
}

.icon-large {
    color: var(--neon-purple);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.icon-colored-blue {
    color: var(--neon-blue);
}

.icon-colored-purple {
    color: var(--neon-purple);
}

.text-white {
    color: white;
}

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.max-width-600 {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.card-mb {
    margin-bottom: 2rem;
}

/* Media Queries & Responsive Design */

/* 
   Breakpoints based on common device widths:
   - Mobile: < 480px
   - Tablet/Large Phone: 481px - 768px
   - Small Laptop/Tablet Landscape: 769px - 1024px
   - Desktop: 1025px - 1440px
   - Large Screens: > 1440px
*/

/* 1. Tablet & Mobile (Max Width 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Container padding adjustment */
    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Hero Section */
    .hero {
        text-align: center;
        padding-top: 8rem;
        /* account for taller fixed nav */
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
    }

    .hero p {
        margin: 1.5rem auto 2rem;
    }

    /* Grid adjustments */
    .grid {
        gap: 1.5rem;
    }
}

/* 2. Mobile Small (Max Width 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
        /* Single column */
    }
}

/* 3. Small Laptop / Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }
}

/* 4. Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1140px;
    }
}

/* 5. Large Screens (> 1440px) */
@media (min-width: 1441px) {
    .container {
        max-width: 1320px;
        font-size: 1.1rem;
        /* Slightly larger text for big screens */
    }

    h1 {
        font-size: 4rem;
    }
}