/* Design System Variables */
:root {
    /* Colors - Dark Corporate Theme */
    --bg-primary: #0f172a;
    /* Deep Navy/Black */
    --bg-secondary: #1e293b;
    /* Slightly lighter navy for cards */
    --text-primary: #f8fafc;
    /* Off-white for headings */
    --text-secondary: #94a3b8;
    /* Muted slate for body text */
    --accent-color: #38bdf8;
    /* Bright Sky Blue */
    --accent-hover: #0ea5e9;
    /* Darker Blue for hover */
    --border-color: #334155;
    /* Subtle border */

    /* Spacing */
    --container-width: 1100px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Typography */
    /* Importing Lato (Headers) and Karla (Body) - Classic Tech Combination */
    --font-heading: 'Lato', system-ui, -apple-system, sans-serif;
    --font-body: 'Karla', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;500;700&family=Lato:wght@400;700;900&display=swap');

/* Reset key elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
.logo,
.nav-links a {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Header & Nav */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    /* Base height for both */
    width: auto;
    object-fit: contain;
}

.logo-text {
    height: 38px;
    /* Slightly smaller to optical balance with icon */
    margin-top: 4px;
    /* Optical alignment */
}

@media (max-width: 600px) {
    .logo-text {
        display: none;
    }
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

/* Mobile Menu Styles (Hidden by default on Desktop) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later if needed, simple scaffold for now */
        /* To fully implement mobile menu, we'd add absolute positioning here */
    }

    .hamburger {
        display: block;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

/* Hero Section */
/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

/* Background glow effect behind image */
#hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

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

.hero-text {
    flex: 1;
    max-width: 600px;
}

/* Hero Image Styling - Modern Clean Grayscale */
.hero-image {
    position: relative;
    /* Create a gradient blob behind the image */
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 10px;
    /* Slightly smaller than the image container */
    background: linear-gradient(135deg, var(--accent-color), #4f46e5);
    /* Sky blue to Indigo */
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50%;
}

.hero-image img {
    max-width: 380px;
    width: 100%;
    height: auto;
    transition: var(--transition);
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.hero-text h1 {
    font-size: 3.5rem;
    /* Large and bold */
    margin: 1rem 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.role {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--accent-color);
    margin: 0 0.5rem;
}

.bio-short {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.btn.primary:hover {
    background-color: var(--accent-hover);
}

.btn.secondary {
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

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

/* About */
#about {
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

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

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

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

.skill-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.skill-card ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.skill-card ul li::before {
    content: '▹';
    color: var(--accent-color);
    margin-right: 10px;
}

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

.company {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: monospace;
    /* Optional: tech feel for dates */
    opacity: 0.8;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns */
    gap: 2rem;
}

@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr;
        /* Stack on tablet */
    }
}

@media (max-width: 600px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    border-color: var(--accent-color);
}

.project-image.placeholder {
    height: 180px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-image: linear-gradient(45deg, #1e293b 25%, transparent 25%, transparent 75%, #1e293b 75%, #1e293b), linear-gradient(45deg, #1e293b 25%, transparent 25%, transparent 75%, #1e293b 75%, #1e293b);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.5;
}

.project-info {
    padding: 2rem;
    /* More breathing room */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: auto;
    /* Remove fixed height constraint */
    display: flex;
    align-items: center;
    justify-content: center;
}

.company,
.date {
    text-align: center;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: justify;
    /* Justify text */
    hyphens: auto;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 1rem;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Contact */
#contact {
    text-align: center;
}

.contact-text {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

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

.social-btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

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

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Mobile Hero */
    .hero-container {
        flex-direction: column-reverse;
        /* Text on top (or bottom depending on pref), usually Image top or Text top. Let's do Column-reverse to put text on bottom if we want image first, or column for text first. Let's do text first because it's valuable. */
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

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

    .hero-image img {
        max-width: 280px;
    }
}