:root {
    --bg-color: #0b1120;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    /* Sky blue */
    --accent-hover: #0ea5e9;
    --border: #334155;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --spacing-section: 120px;
}

/* Light Theme Variables (Optional switch, but default dark for premium feel) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--spacing-section) 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: white;
}

.text-accent {
    color: var(--accent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn {
    color: var(--bg-color) !important;
    /* Force primary button text color */
    background-color: var(--accent) !important;
    /* Force primary button bg */
    border: none;
    line-height: 1.5;
}

.nav-links .btn:hover {
    color: #fff !important;
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-intro {
    color: var(--accent);
    font-family: monospace;
    font-size: 16px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 70px);
    margin-bottom: 10px;
}

.hero h2 {
    font-size: clamp(30px, 5vw, 60px);
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-blurp {
    max-width: 540px;
    margin-bottom: 40px;
    font-size: 18px;
}

.value-statement {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 40px;
    font-style: italic;
    color: var(--text-primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: start;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--border);
    flex-grow: 1;
    margin-left: 20px;
    max-width: 300px;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--accent);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-size: 13px;
    font-family: monospace;
    color: var(--text-secondary);
}

.skill-tag::before {
    content: "▹";
    color: var(--accent);
    margin-right: 5px;
}

/* Projects */
.project {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
}

.project:last-child {
    margin-bottom: 0;
}

.project-content {
    grid-column: 1 / 7;
    grid-row: 1 / -1;
    z-index: 2;
    padding-right: 20px;
}

.project-image {
    grid-column: 6 / -1;
    grid-row: 1 / -1;
    z-index: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.project:hover .project-image img {
    filter: none;
    transform: scale(1.02);
}

/* Alternate project layout */
.project:nth-of-type(even) .project-content {
    grid-column: 7 / -1;
    text-align: right;
    padding-right: 0;
    padding-left: 20px;
}

.project:nth-of-type(even) .project-image {
    grid-column: 1 / 8;
}

.project-overline {
    color: var(--accent);
    font-family: monospace;
    font-size: 13px;
    margin-bottom: 8px;
}

.project-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.project-description {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

.project:nth-of-type(even) .project-tech-list {
    justify-content: flex-end;
}

.project-links a {
    color: var(--text-primary);
    font-size: 20px;
    margin-left: 20px;
}

.project:nth-of-type(even) .project-links a {
    margin-left: 0;
    margin-right: 20px;
}

/* Contact */
.contact-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive */
/* Default Mobile CTA State */
.cta-mobile {
    display: none;
}

.cta-desktop {
    display: inline-block;
}

@media (max-width: 1000px) {
    .project-content {
        grid-column: 1 / -1;
        padding: 40px 40px 30px;
        background-color: var(--card-bg);
        text-align: left;
        grid-row: auto;
    }

    .project:nth-of-type(even) .project-content {
        grid-column: 1 / -1;
        text-align: left;
        padding: 40px 40px 30px;
    }

    .project-image {
        display: none;
        /* Simplify for tablets/mobile or stack if preferred */
    }

    .project:nth-of-type(even) .project-tech-list {
        justify-content: flex-start;
    }

    .project:nth-of-type(even) .project-links a {
        margin-left: 20px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Need JS for mobile menu */
    }

    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero h2 {
        font-size: 30px;
    }
}

/* Mobile Devices (Phones) specific override for CTA */
@media (max-width: 600px) {
    .cta-desktop {
        display: none !important;
    }

    .cta-mobile {
        display: inline-block !important;
    }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Email Copy Button */
.email-display {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.email-display:hover {
    color: var(--accent-hover);
    transform: scale(1.02);
}

.email-display:active {
    transform: scale(0.98);
}

.copy-helper {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.seeking-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.github-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.github-secondary:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}