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

body {
    font-family: "Open Sans", sans-serif;
    background: #0d0d0d;
    color: #fff;
    line-height: 1.6;
}

a {
    color: #66ccff;
    text-decoration: none;
}

section {
    /*scroll-margin-top:100px; */
    padding: 60px 20px;
}

@media (max-width: 768px) {
    section {
        /*scroll-margin-top: 200px; */
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

h3 {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48
}


/* Container Layout */

header {
    background: #111;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}


/* === Title === */


/* .logo {
    color: white;
    font-size: 1.5rem;
    flex: 1;
    flex: 0 0 auto;
    text-align: left;
    margin-right: auto;
} */

@font-face {
    font-family: 'CodeBold';
    src: url('fonts/CodeBold.otf') format('woff2'), url('fonts/CodeBold.otf') format('woff');
    font-weight: normal;
    font-style: normal;
}

.logo {
    font-family: 'CodeBold', sans-serif;
    color: white;
    font-size: 1.5rem;
    flex: 0 0 auto;
    text-align: left;
}


/* === Nav Links === */

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

nav.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a {
    margin-left: 20px;
    font-weight: 600;
    color: #fff;
}

nav.nav-links a:hover {
    color: white;
}

nav.nav-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }
    .logo {
        order: 1;
        text-align: left;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .nav-actions {
        order: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        gap: 1rem;
        position: relative;
        z-index: 2;
    }
    .nav-toggle {
        display: flex;
    }
    nav.nav-links {
        order: 3;
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
        gap: 1rem;
        margin-top: 0;
        background-color: #111;
        padding: 1rem 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1;
    }
    nav.nav-links.open {
        display: flex;
    }
}

@media (min-width: 769px) {}


/* === Hamburger === */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    display: block;
}


/* === GitHub + Toggle Wrapper === */

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        /* <-- This is what’s missing! */
    }
    .nav-actions {
        order: 2;
        display: flex;
        /* Ensures hamburger + GitHub align */
        flex-direction: row;
        /* Row layout */
        justify-content: center;
        /* Centered horizontally */
        align-items: center;
        /* Vertical alignment */
        width: 100%;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}


/* === GitHub Button === */

.github-btn {
    background: #222;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #555;
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
}

.github-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.github-btn:hover::after {
    left: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
}

.social-icons a {
    font-size: 1.8rem;
    color: #fff;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #66ccff;
}


/* HERO */

.hero {
    position: relative;
    /* height: 100vh; */
    height: 100vh;
    background-image: url('https://images.pexels.com/photos/158826/structure-light-led-movement-158826.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero h1 {
    /* font-size: clamp(2rem, 5vw, 3.5rem); */
    /* font-family: './fonts/CodeBold', sans-serif; */
    font-size: 80px;
    text-align: center;
    /* font-size: clamp(2rem, 9vw, 6.5rem); */
    /* font-weight: 700; */
    /* line-height: 1.2; */
    /* margin-bottom: 1rem; */
    /* letter-spacing: -0.5px; */
}

.hero-title {
    font-size: 10rem;
    /* Force large size on desktop */
    font-weight: 900;
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 100%;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 9vw, 5rem);
        /* Responsive for small screens */
    }
    .hero h1 {
        font-size: 30px;
    }
}

.hero-tagline {
    font-size: clamp(1.5rem, 6vw, 3rem);
    /* Also larger on desktop */
    font-weight: 500;
    color: #ccc;
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 90vw;
    line-height: 1.4;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    /* margin-bottom: 2rem; */
    color: #ccc;
}

.cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #4D2043;
    color: white;
    border: 1px solid #fff2;
    border-radius: 8px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #ffffff30;
    border-color: #fff5;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em;
    }
}


/* END HERO */


/* ABOUT US */

.about {
    background-color: #fefefe;
    padding: 5rem 2rem;
    font-family: "Open Sans", sans-serif;
}

.about .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #111;
    text-align: center;
    position: relative;
}

.about h3::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: #222;
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.about strong {
    color: #000;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.15rem;
}

@media screen and (max-width: 768px) {
    .about {
        padding: 3rem 1.2rem;
    }
    .about h3 {
        font-size: 1.6rem;
    }
    .about p {
        font-size: 1rem;
    }
}


/* END ABOUT */


/* PROJECTS */

.project-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    flex: 0 0 280px;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    /* TRY 1 rem; */
    border: 1px solid #333;
    scroll-snap-align: start;
    min-width: 240px;
    min-height: 400px;
    background-color: #5362638f;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.projCardText {
    color: #cce4ef;
}

.project-card h4 {
    color: #66ccff;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-content {
    padding: 1.25rem;
}

.github-cta {
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .project-gallery {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        width: 100%;
    }
}


/* FLIPPING VALUE CARDS */


/*
.value-list {
  list-style: none;
  padding-left: 0;
} */

.value-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0;
    gap: 1rem;
}

.value-list li {
    flex: 1 1 220px;
    /* Flexible, but doesn't go below 220px */
    margin-bottom: 20px;
    font-size: 1em;
    max-width: 100%;
    background: transparent;
    perspective: 1000px;
    width: 22%;
    min-width: 220px;
    cursor: pointer;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 180px;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    background-color: #1e1e2f;
}

.value-list li.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #80aaff;
    padding: 1rem;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    user-select: none;
}

.flip-card-front {
    background-color: #1e1e2f;
    font-weight: 700;
    font-size: 1.25rem;
    gap: 12px;
    flex-wrap: nowrap;
}

.flip-card-front span {
    width: 50px;
    height: 50px;
    filter: brightness(0.85);
}

.flip-card-back {
    background-color: #252539;
    color: #cbd5ffcc;
    font-weight: 400;
    font-size: 1rem;
    transform: rotateY(180deg);
    padding: 1.2rem;
    line-height: 1.4;
    user-select: text;
}

@media (max-width: 768px) {
    .value-list {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-top: 2rem;
    }
    .value-list li {
        width: 100%;
        max-width: 100%;
    }
    .flip-card-inner {
        height: auto;
        min-height: 180px;
    }
    .flip-card-front,
    .flip-card-back {
        padding: 1rem;
        font-size: 1rem;
    }
}


/* CONTACT */

.contact {
    text-align: center;
}


/* FOOTER */

footer {
    background: #111;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    color: #888;
    border-top: 1px solid #222;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    /* or any fixed height you want */
    object-fit: contain;
    object-position: center;
    background-color: transparent;
    /* optional: padding background for aspect ratio gaps */
    border-radius: 6px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    .logo {
        order: 1;
        margin-bottom: 0;
        text-align: left;
        width: auto;
    }
    .nav-actions {
        order: 2;
        justify-content: flex-end;
        margin-bottom: 0;
        width: auto;
        gap: 1rem;
    }
    nav.nav-links {
        order: 3;
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
        gap: 1rem;
        margin-top: 1rem;
    }
    nav.nav-links.open {
        display: flex;
    }
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2rem;
}

.contact-info,
.newsletter-form {
    flex: 1 1 45%;
    text-align: left;
}

.contact-info h4,
.newsletter-form h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.newsletter-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: white;
}

.newsletter-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #ccc;
}

@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
    }
    .contact-info,
    .newsletter-form {
        flex: 1 1 100%;
    }
}