:root {
    --bg-color: #0a0a0c;
    --card-bg: #16161a;
    --text-primary: #fffffe;
    --text-secondary: #94a1b2;
    --accent-color: #3a86ff;
    --accent-glow: rgba(58, 134, 255, 0.4);
    --gradient-start: #3a86ff;
    --gradient-end: #00f5d4;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.project-main {
    padding-top: 100px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    /* Ensure container takes full width available */
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Scroll Offset for Fixed Header */
html {
    scroll-padding-top: 25px;
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 25px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.logo .accent {
    color: var(--accent-color);
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .btn-primary {
    color: white;
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    background: radial-gradient(circle at 50% 50%, rgba(127, 90, 240, 0.1) 0%, transparent 50%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Section Common */
.section {
    padding: 2rem 0;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.skills-grid a {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: block;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding-bottom: 2rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.card-image {
    height: 200px;
    background: #2a2a2e;
    /* Placeholder */
}

.card-content {
    padding: 1.5rem;
    position: relative;
    padding-bottom: 2rem;
    flex-grow: 1;
}

/* Project Details Page Layout */
/* Project Details Page Layout */
.project-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.project-media {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 350px;
    /* Fixed height for banner effect */
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-info {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}


.tags {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    row-gap: 0.5rem;
}

.project-main .container>.tags {
    justify-content: center;
}

.tags span {
    background: rgba(58, 133, 255, 0.048);
    color: #008cff;
    /* Lighter Electric Blue for readability */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    border: 1px solid rgba(45, 125, 255, 0.3);
    font-weight: 600;
    text-shadow: 0 0 1px rgba(0, 140, 255, 0.8);
    box-shadow: 0 0 2px rgba(0, 140, 255, 0.3);
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact {
    padding-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group textarea {
    resize: none;
    overflow-y: hidden;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form .btn-primary {
    font-size: 1.1rem;
    /* Slightly larger text, standard padding */
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper */
.hamburger {
    display: none;
}



/* Update for custom images */
.card-image {
    height: 200px;
    background-color: #2a2a2e;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease;
    /* Smooth zoom if they add it */
}

.logo-geii-filtered {
    height: 160px;
    filter: invert(1) hue-rotate(180deg) brightness(1.3);
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Project Banner / Hero */
.project-banner {
    position: relative;
    height: 80vh;
    /* Takes up 60% of viewport height */
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    /* Text at the bottom */
    justify-content: center;
    padding-bottom: 3rem;
    margin-top: -85px;
    /* Pull up behind the header */
    padding-top: 85px;
    /* Compensate for header */
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Dark top (for header), clear middle, dark bottom (for text) */
    background: linear-gradient(to bottom,
            rgba(10, 10, 12, 0.9) 0%,
            rgba(10, 10, 12, 0.3) 30%,
            rgba(10, 10, 12, 0.8) 70%,
            var(--bg-color) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    text-align: center;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content .tags {
    justify-content: center;
}

/* Update project-detail to remove old media styles */
.project-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.project-info {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}



/* Scroll Down Indicator */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s ease 0.5s 2;
}

.scroll-down-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.scroll-down-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll Down Wrapper (Positioning + Entrance/Exit) */
.scroll-wrapper {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: all 0.5s ease;
}

.scroll-wrapper.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

/* Scroll Down Button (Visuals + Bounce) */
.scroll-down-btn {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    border: 2px solid #fff;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* Bounce Animation: Run once after 2s delay */
    animation: bounce 2s ease 0.5s 2;
}

.scroll-down-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Card Button Style */
.card-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: inline-block;
    color: #888;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.skill-card:hover .card-btn,
.project-card:hover .card-btn {
    color: var(--accent-color);
    transform: scale(1.2);
}