* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body, header, section, nav, footer {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3 {
    text-shadow: 0 0 8px rgb(45, 75, 140);
}

body {
    background: rgb(5, 10, 25);
    color: rgb(200, 220, 255);
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 2rem;
    /*background: rgb(15, 35, 70);*/
    color: rgb(220, 230, 255); 
    border-bottom: 4px solid rgb(45, 75, 140);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    font-style: italic;
}

nav {
    background: rgb(15, 35, 70); /* middle space blue */
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: rgb(200, 220, 255);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: rgb(45, 75, 140); /* light accent */
}

section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgb(15, 35, 70); /* middle space blue */
    color: rgb(200, 220, 255);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

section h2 {
    color: rgb(220, 230, 255); /* light text */
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8d7da;
    padding-bottom: 0.5rem;
    text-shadow: 0 0 8px rgb(45, 75, 140);
}

.about-content {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    gap: 1.5rem;
    flex-wrap: wrap;
}

.about-img {
    width: 70%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project {
    background: rgb(5, 10, 25); /* darkest blue */
    color: rgb(200, 220, 255);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

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

.contact-form label {
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    background: rgb(45, 75, 140);
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: rgb(70, 100, 180);
}

footer {
    text-align: center;
    padding: 1rem;
    background: rgb(15, 35, 70); 
    color: rgb(220, 230, 255);
    margin-top: 2rem;
}

.video-header {
    position: relative;
    width: 100%;
    height: 260px;                
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: rgb(220, 230, 255);
    border-bottom: 4px solid rgb(45, 75, 140);
}

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

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 25, 0.6);
    z-index: -1;
}

.video-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.video-header p {
    font-size: 1.2rem;
    max-width: 700px;
}



/* 
=====================================================
MEDIA QUERIES – RESPONSIVE OPTIMIZATION 
Add these at the END of your CSS file
=====================================================
*/

/* ----------- SMALL PHONES (max-width: 480px) ----------- */
@media (max-width: 480px) {

    header h1,
    .video-header h1 {
        font-size: 1.8rem; /* Smaller titles */
    }

    .video-header p {
        font-size: 1rem; /* Smaller description text */
        padding: 0 1rem;
    }

    nav ul li {
        display: block;         /* Stack nav links vertically */
        margin: 10px 0;
    }

    .about-content {
        flex-direction: column; /* Stack About section image & text */
        text-align: center;
    }

    .about-img {
        width: 100%;
    }

    section {
        margin: 1rem;
        padding: 1rem;
    }

    .project-list {
        grid-template-columns: 1fr; /* One card per row */
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem; 
        padding: 0.7rem;
    }

    .contact-form button {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

/* ----------- TABLETS (max-width: 768px) ----------- */
@media (max-width: 768px) {

    header h1,
    .video-header h1 {
        font-size: 2.1rem;
    }

    .video-header p {
        font-size: 1.1rem;
    }

    .about-img {
        width: 85%;
    }

    .project-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    section {
        margin: 1.5rem;
    }
}

/* ----------- SMALL LAPTOPS (max-width: 1024px) ----------- */
@media (max-width: 1024px) {

    section {
        max-width: 95%;
    }

    .project-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ----------- LARGE SCREENS / DESKTOPS (min-width: 1400px) ----------- */
@media (min-width: 1400px) {

    section {
        max-width: 1200px; /* More breathing room */
    }

    .video-header {
        height: 330px;      /* Larger hero video */
    }

    .video-header h1 {
        font-size: 3rem;
    }

    .project-list {
        gap: 1.5rem;
    }

    .about-img {
        width: 60%;
    }
}

/* ----------- ULTRA-WIDE MONITORS (min-width: 1800px) ----------- */
@media (min-width: 1800px) {

    body {
        font-size: 1.1rem; 
    }

    .video-header {
        height: 380px;
    }

    section {
        max-width: 1250px;
        padding: 2rem;
    }

    .project-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
