:root {
    --bg-color: #0d0d0d;
    --sidebar-bg: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --accent-color: #3b82f6;
    --font-main: 'Inter', sans-serif;
    --sidebar-width: 250px;
}

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



body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 100;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.logo-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    border-color: var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease, margin-left 0.3s ease;
    display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
    margin-left: 5px;
    font-weight: 700;
    /* Bold active link */
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Main Content */
.content {
    margin-left: 0;
    /* Allow content to span full width */
    flex: 1;
    padding: 0;
    /* Remove global padding */
}

/* Page Sections */
.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem calc(var(--sidebar-width) + 4rem);
    /* Add sidebar width to padding */
}

.hero {
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    /* Slight adjustment for overlay */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.subtitle,
.section-text {
    font-size: 1.5rem;
    color: #e0e0e0;
    /* Lighter text for better contrast on video */
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 800px;
    line-height: 1.6;
}

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

.cta-container {
    display: flex;
    gap: 1.5rem;
}

.btn {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn.primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* For the link card */
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* GitHub Card Specifics */
.github-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 300px;
    /* Match height rough estimate */
}

.github-content {
    padding: 2rem;
}

.github-card .arrow {
    display: block;
    font-size: 2rem;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.github-card:hover .arrow {
    transform: translateX(10px);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

/* ... existing focus styles ... */

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.form-actions .btn {
    padding: 0.75rem 4rem;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn.primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ... existing styles for secondary btn ... */

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.contact-link:hover {
    border-color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links .contact-link {
    border-bottom: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links .contact-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, fill 0.3s ease;
    fill: var(--text-secondary);
}

.social-links .contact-link:hover svg {
    transform: translateY(-3px);
    fill: var(--text-primary);
}

/* Map Styling */
.map-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: pulse 2s infinite;
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.google-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) invert(100%) contrast(90%) brightness(0.7);
    mix-blend-mode: normal;
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
        background-color: rgba(13, 13, 13, 0.9);
        /* Add bg for readability on scroll */
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links {
        display: none;
        /* Mobile menu logic pending */
    }

    .content {
        margin-left: 0;
        padding: 0;
    }

    .page-section {
        padding: 4rem 2rem;
        padding-top: 100px;
        /* Space for top nav */
    }

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

    .subtitle,
    .section-text {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-frame {
        min-height: 300px;
    }
}