/* ========== CSS Variables ========== */
:root {
    --color-primary: #002c49;
    --color-a: #5a7b91;
    --color-light: #f8f9fa;
    --color-accent: #024274;
    --color-dark: #343a40;
    --color-bg: #002c49;
    --color-bg2: #002f4e;
    --color-text: #212529;
    
    --font-family-base: 'Segoe UI', sans-serif;
    --font-family-heading: 'Montserrat', sans-serif;
    
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    
    --line-height-base: 1.5;
    --font-weight-bold: 700;
    
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    --space-l5: 5rem;
    --space-l6: 6rem;
    
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ========== Base Reset ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: var(--line-height-base);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* ========== Typography ========== */
h1, h2 {
    font-family: var(--font-family-heading);
}

h1 {
    font-size: var(--font-size-xxl);
    color: var(--color-light);
    
}

h2 {
    padding-bottom: 1rem;
    font-size: var(--font-size-xl);
    margin: 0 0 1rem;
    position: relative;
    margin-bottom: 2rem;
    color: var(--color-primary);
}
h2::after{
    position: absolute;
    content: "";
    height: 3px;
    bottom: 0;
    background-color: var(--color-primary);
    left: 0;
    width: 40px;
    transition: width 700ms ease;
}
h3{
    font-size: 1.25rem;
}
p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-md);
}

/* ========== General ========== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--space-l6) 0;
}

.btn {
    display: inline-block;
    font-weight: bold;
    border-radius: var(--border-radius-md);
    padding: var(--space-xs) var(--space-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
}

.window-scroll {
    background-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--color-light);
    letter-spacing: 1px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: var(--space-xxl);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--color-light);
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
    padding: 3px 0;
    position: relative;
}

.nav-links a::after {
    position: absolute;
    content: "";
    height: 1px;
    bottom: 0;
    background-color: white;
    left: 0%;
    width: 0;
    transition: width 700ms ease;
}
.nav-links .current-page::after{
    width: 25px;
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
}

/* ========== Section Alternation ========== */
.section:nth-child(even) {
    background-color: var(--color-light);
}

.section:nth-child(odd) {
    background-color: #e3e8ee;
}

/* ========== Hero Section ========== */
#home.hero {
    background-color: #002c49;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23073857' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--color-light);
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero-h2 {
    font-size: 2.1rem;
    margin: 0;
    color: var(--color-light);
}
#hero-h2 span{
    font-size: 2rem;
    color: rgb(241, 236, 236);
}
.hero p {
    font-size: 1.2rem;
    margin: 1rem 0 3rem;
}

.cta-buttons .btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    margin-right: var(--space-md);
}

.btn--primary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-light);
}

.btn--primary:hover {
    background-color: var(--color-bg2);
    color: var(--color-lights);
    border-color: var(--color-light);
}

.btn--secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn--secondary:hover {
    background-color: var(--color-light);
    color: var(--color-bg2);
}


/* ========== Projects Section ========== */
.project-tab-buttons{
    padding: var(--space-sm);
    border-radius: 20px;

    max-width: 700px;
    margin: 3rem auto 1.5rem;
    display: flex;
    column-gap: var(--space-sm);
    background-color: #e3e8ee;
    overflow: auto;
}
.project-tab{
    border: none;
    outline: none;
    background-color: white;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    flex: 1;
}
.project-tab.active-tab{
    color: white;
    background-color: var(--color-primary);  
}

.project-tab.active-tab:hover{
    background-color: var(--color-primary);
}
.project-tab:hover{
    background-color: #bcc7ce;
}

.project-tab-panels{
    border-radius: 20px;
    padding: 1.5rem 1rem;
}

.project-panel{
    display: none;
}
.project-panel > .empty-state{
    border-radius: 10px;
    background-color: #bcc7ce;
    color: black;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}
.project-panel.active-panel{
    display: grid;
    justify-content: center;
    align-items: center;
}
.active-panel{
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project{
    padding: var(--space-sm) var(--space-sm) var(--space-md);
    background-color: var(--color-light);
    border-radius: var(--space-sm);
    position: relative;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    transition: var(--transition);
}
.project:hover{
    transform: translateY(-5px);
}
.project-image{
    border-radius: var(--space-xs) var(--space-xs) 0 0;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid #e3e8ee;
    overflow: hidden;
}
.project-image img{
    width: 100%;
    height: 100%;
}
.project-category{
    font-size: 0.7rem;
    margin: var(--space-xs) 0;
    font-weight: 800;
    font-family: var(--font-family-heading);
}
.project-name{
    font-weight: 600;
    margin: var(--space-md) 0 var(--space-md);
}
.project-description{
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-family-heading);
    margin-bottom: var(--space-l5);
}
.project-btns{
    position: absolute;
    bottom: var(--space-sm);
}
.project-btns a{
    display: inline-block;
    font-size: 0.6rem;
    border-radius: 12px;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-primary);
}
.btn-live-preview{
    background-color: var(--color-primary);
    color: var(--color-light);
}

.hidden{
    background-color: green;
}
.disclaimer {
    color: red;
}
/* ========== About Section ========== */
.about-container{
    display: flex;
    column-gap: 3rem;
}

.about-left{
    width: 40%;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0; /* prevent shrinking in flex */
}
.about-left img{
    border-radius: 30px;
}
.about-right{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-right p{
    font-size: 1.2rem;
    line-height: 1.6;
}
/* skils */
.skills span {
    display: inline-block;
    background-color: #ffffff;
    padding: 0.2rem 0.7rem;
    margin: 0.2rem 0.2rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--color-dark);
}

/* CONTACT */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 1px solid black;
    border-color: var(--primary);
}

.btn--submit {
    padding: 1rem;
    background: var(--color-accent);
    color: var(--color-light);
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
}
.btn--submit:hover {
    background: var(--color-primary);
}
.contact-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.contact-links a {
    color: var(--color-primary);
    width: 45px;
    height: 45px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-links a:hover {
    scale: 120%;
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23073857' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--color-light);
    text-align: center;
    padding: var(--space-lg) 0;
    font-size: var(--font-size-base);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 5rem;
        right: 0;
        background-color: var(--color-primary);
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: var(--space-md) 0;
        z-index: 999;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a{
        display: block;
        padding: var(--space-md);
        text-align: center;
    }
    .nav-links li:hover a,
    .nav-links li:focus a
    {
        background-color: rgb(219, 215, 215);
        color: var(--color-primary);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links .current-page{
        border-top: 1px solid var(--color-light);
        background-color: var(--color-light);
        color: var(--color-primary);
    }
    .site-footer {
        line-height: 0.5;
        padding: var(--space-lg) 0;
        
        
    }
}

@media (max-width: 600px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: left;
    }
    #hero-h2 {
        
        font-size: 1.7rem;
        margin: 0;
        color: var(--color-light);
    }
    #hero-h2 span{
        font-size: 1.2rem;
        display: block;
        margin-top: var(--space-md);
        color: rgb(228, 245, 242)
    }
    .container--portfolio h2{
        padding-left: var(--space-xl);
        
    }
    .container--portfolio h2::after{
        left: var(--space-xl);
    }
    .hero p {
        font-size: 0.9rem;
        margin: 1rem 0 3rem;
    }
    .cta-buttons{
        display: flex;
        transition: var(--transition);
        flex-direction: column;
    }
    .cta-buttons .btn {
        display: block;
        width: 100%;
        padding: var(--space-xs) var(--space-lg);
        border-radius: var(--border-radius-lg);
        font-weight: bold;
        cursor: pointer;
        margin-bottom: var(--space-md);
    }
    .nav-links {
        flex-direction: column;
        gap: 5px;
    }
    .project-tab{
        text-wrap: nowrap;
    }
    .project-card {
        padding: var(--space-sm);
    }
    
    .about-container{
        flex-direction: column;
    }
    .about-left{
        width: 100%;
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 425px) {
    .project-tab-buttons{
        padding: 0.3rem;
        border-radius: 20px;
        overflow: auto;
    }
    .contact-links{
        font-size: 0.6rem;
    }
}
@media (max-width: 400px) {
    .container{
        width: 90%;
    }
    .container.container--portfolio{
        width: 100%;
    }
    .site-header{
        height: 5rem;
    }
    .cta-buttons{
        display: flex;
    }

    .project-tab-panels{
        border-radius: 10px;
        padding: 0.3rem;  
    }
    .services-container{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    .project-tab-buttons{
        width: 100%;
        margin-bottom: 10px;
        border-radius: 9px;
        column-gap: 10px;
        overflow: auto;
        contain: content;
        border: 1px solid var(--color-primary);
    }
    .project-tab-buttons button{
        border-radius: 9px;
    }
    .project-tab{
        border-bottom: 1px solid var(--color-primary);
        outline: none;
        background-color: white;
        padding: 0.5rem;
        border-radius: 3px;
        cursor: pointer;
        flex: 1;
        font-size: 1rem;
        transition: all 0.5s fade-in;
        color: var(--color-primary);
        
    }
    .site-footer {
        color: var(--color-light);
        line-height: 1;
        padding: var(--space-lg) 0 0;
    }   
    .site-footer p{
        font-size: 0.7rem;
    }
    
}
