:root {
    --primary: #FF3B30; 
    --bg: #0A0A0A;
    --card-bg: #141414;
    --text-main: #FFFFFF;
    --text-dim: #A0A0A0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header & Nav --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    max-width: 1920px;
}

main{
    max-width: 1920px;
}

.logo { 
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}
.logo span { 
    color: var(--primary);
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    width: 100%;
}


/* --- Menu --- */
.hamburger{
    display: none;
}

.hamburger button {
    background: transparent; 
    border: none;            
    padding: 0;              
    outline: none;           
    cursor: pointer;         
    appearance: none;      
}

.hamburger span {
    display: block; 
    height: 4px;
    width: 25px;
    background-color: var(--primary);
    color: transparent;
    margin: 4px 0;
    transition: 0.3s; 
}

.hamburger span:not(:first-child):not(:last-child){ 
    width: 20px;
    background-color: var(--primary);
}

.hamburger span:last-child{
    width: 15px;
    background-color: var(--primary);
}

/* --- Global Sections --- */
section { padding: 8rem 10% 2rem 10%; }

.section-title { 
    font-size: clamp(1rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
 }
.section-title span { 
    color: transparent; 
    -webkit-text-stroke: 1px white;
}
.section-subtitle { 
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px; font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- Hero --- */
.hero {
    height: 85vh;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 2rem;
}

.badge { 
    background: #1a1a1a;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid #333;
}

.hero h1 { 
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin: 1.5rem 0;
    font-weight: 900;
}

.hero p { 
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-btns { 
    display: flex; 
    gap: 1rem;
}  

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary { 
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}

.btn-secondary {
    border: 1px solid #333; color: white;  
}
.btn-secondary:hover { 
    border-color: var(--primary);
    background: rgba(255, 59, 48, 0.05);
}

.hero-featured { 
    position: relative;
}
.featured-label { 
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}
.featured-card { 
    background: var(--card-bg);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #222;
}
.featured-card img { 
    width: 100%;
    border-radius: 10px; 
}
.card-info { 
    padding: 1rem;
}

/* --- About --- */

.about-grid { 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 5rem;
    align-items: center;
}   
.about-image img { 
    width: 100%;
    border-radius: 20px;
    filter: contrast(100%);
    transition: var(--transition); 
}
.about-image img:hover { 
    filter: contrast(80%);
}

.about-grid .about-content a{
    margin-top: 1rem;
}

/* --- Projects --- */
.section-header { 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.text-link { 
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.project-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}
.project-card { 
    background: var(--card-bg); 
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #1a1a1a; 
    transition: var(--transition);
    position: relative;
}
.project-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary);
}

.project-img-container{
    position: relative;
}

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


.project-img-container .overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow: hidden;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);

}

.project-img-container .overlay span{
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    letter-spacing: 2px;
    color: transparent;
    -webkit-text-stroke: 1px #FFFFFF;
    transition: transform 0.5s ease-in-out;
}

.project-img-container:hover .overlay{
    display: flex;
}

.project-details { 
    padding: 2rem;
}

.status-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    width: 150px;
    transform: rotate(45deg);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.status-ribbon.completed {
    background: #28a745; 
}

.status-ribbon.ongoing {
    background: var(--primary); 
}

.tags { 
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.tags span { 
    font-size: 0.7rem;
    background: #000;
    padding: 5px 12px;
    border-radius: 4px;
    color: var(--text-dim);
    border: 1px solid #222;
}

/* --- Contact --- */

.contact-card { 
    background: var(--card-bg); 
    max-width: 900px;
    margin: 4rem auto;
    padding: 4rem;
    border-radius: 30px; border: 1px solid #222;
}
.minimal-form { 
    display: flex; 
    flex-direction: column;
    gap: 1.5rem;
}
.input-group label { 
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.input-group input, .input-group textarea { 
    width: 100%;
    background: #0A0A0A;
    border: 1px solid #333;
    padding: 1.2rem;
    color: white;
    border-radius: 10px;
    outline: none;
}
.input-group input:focus, .input-group textarea:focus { 
    border-color: var(--primary);
}

/* --- Footer --- */
footer { 
    text-align: center;
    padding: 3rem;
    border-top: 1px solid #1a1a1a;
    color: var(--text-dim);
    margin-top: 5rem;
}

footer .socials{
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .socials a{
    text-decoration: none;
    padding: 1rem;
    color: white;
}

footer .socials a img{
    width: 60px;
    height: 60px;
    padding: 1rem;
    border-radius: 16px;
    background-color: var(--primary);
}

@media (max-width: 724px) {

    .nav-links{
        position: fixed;
        top: -300%;
        right: 0;
        width: 100%;
        background-color: var(--card-bg);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;

        transition: top 0.4s ease-in-out;
        /* transform: translateY(-100%); */
        z-index: 100;
        padding: 1rem;
    }

    .nav-links a{
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .nav-links .nav-cta{
        width: 100px;
        padding: 0.5rem;
    }

    .nav-links.toggle{
        top: 0;
    }

    .hamburger{
        display: block;
        z-index: 101;
    }

    .section-header { 
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
    }

    .section-header .selected-project{
        margin: 0;
    }

    .contact-card { 
        margin: 0;
    }

    footer .socials a img{
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        border-radius: 16px;
        background-color: var(--primary);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .hero { 
        grid-template-columns: 1fr;
        text-align: center;
        height: auto;
    }
    .hero-btns { 
        justify-content: center;
    }
    .hero-featured { 
        display: none;
    }
    .about-grid { 
        grid-template-columns: 1fr;
        text-align: center;
    }
    section { 
        padding: 5rem 5%;
    }
}