* {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
#header {
    background-image: url("images/Background2_use.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make header content fill the viewport so .header-text can stick to bottom */
#header .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}
body {
    background-image: url("images/Background1_use.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    text-align: justify;
    color: rgb(122, 211, 255);
    margin-bottom: 1rem;
}

.container {
    padding: 20px 5%;
    max-width: 1400px;
    /* margin: 0 auto; */
}

@media (min-width: 768px) {
    .container {
        padding: 30px 8%;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 40px 10%;
    }
}
.logo {
    width: min(450px, 80vw);
    height: auto;
    max-width: 100%;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 20px;
}

/* Fade underline for the nav bar (scoped so it won't break other <ul> lists) */
/* .container ul {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(
        to right,
        rgba(122, 211, 255, 0),
        rgba(122, 211, 255, 0.6),
        rgba(1, 135, 201, 1),
        rgba(122, 211, 255, 0.6),
        rgba(122, 211, 255, 0)
    );
    border-radius: 999px;
    pointer-events: none;
} */

/* Menu icons (hidden on desktop) */
.menu-open,
.menu-close {
    display: none;
}

/* Desktop nav list layout (prevents items going off-screen) */
nav ul#sideMenu {
    list-style: none;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
    margin: 0;
    padding: 0;
}

nav ul#sideMenu li {
    list-style: none;
    margin: 0;
    position: relative;
}
nav ul li a {
    text-decoration: none;
    color: rgb(122, 211, 255);
    font-size: clamp(16px, 1.5vw, 18px);
    position: relative;
    font-weight: 500;
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: rgb(122, 211, 255);
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
nav ul li a:hover::after {
    width: 100%;
}
.header-text {
    margin-top: auto;
    margin-bottom: clamp(40px, 8vh, 80px);
    padding: 20px;
    color: rgb(122, 211, 255);
    font-size: clamp(18px, 2vw, 20px);
    align-self: flex-start;
    max-width: 100%;
}
.header-text h1 {
    color: rgb(1, 135, 201);
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.3;
    margin-top: 15px;
    font-weight: 700;
}
.header-text h1 span{
    color: rgb(88, 197, 251);
}
.header-text p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 0;
}

/* -------- about -------- */

#about {
    padding: clamp(40px, 8vw, 80px) 0;
    color: rgb(122, 211, 255);
}
.row {
    display: flex;
    justify-content: space-between;
    align-items: left;
    flex-wrap: wrap;
}
.about-col-1 {
    flex-basis: 100%;
    margin-bottom: 30px;
}
.about-col-1 img{
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    display: block;
}
.about-col-2 {
    flex-basis: 100%;
}

@media (min-width: 768px) {
    .about-col-1 {
        flex-basis: 35%;
        margin-bottom: 0;
    }
    .about-col-2 {
        flex-basis: 60%;
    }
}
.sub-title {
    font-size: clamp(24px, 4vw, 36px);
    color: rgb(1, 135, 201);
    font-weight: 700;
    border-bottom-style: double;
    border-width: 5px;
    border-color: rgba(0, 62, 148, 0.567);
    padding: 10px 5px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.sub-title2 {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgb(1, 135, 201);
    font-weight: 600;
    padding: 5px 2px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.tab-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0 30px;
}
.tab-links {
    color: rgb(1, 135, 201);
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
}
.tab-links::after {
    content: '';
    width: 0%;
    height: 3px;
    background-color: rgb(122, 211, 255);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
.tab-links.active-link::after {
    width: 50%;
}
.tab-contents ul li {
    margin: 15px 0;
    line-height: 1.8;
}
.tab-contents ul li span {
    color: rgb(1, 135, 201);
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
}
.tab-contents#experience {
    color: rgb(1, 135, 201);
    font-size: clamp(16px, 2vw, 18px);
    padding: 10px 0;
}
.tab-contents {
    display: none;
}
.tab-contents.active-tab {
    display: block;
}

/* -------- services -------- */

#services {
    padding: clamp(40px, 8vw, 80px) 0;
    color: rgb(122, 211, 255);
}
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: clamp(30px, 5vw, 50px);
}
.services-list div {
    background: linear-gradient( rgb(10, 54, 102), rgb(4, 0, 40)) ;
    border: 2px solid;
    border-color: rgba(0, 62, 148, 0.567);
    border-radius: 10px;
    border-style: outset;
    padding: clamp(20px, 3vw, 30px);
    transition: background 0.5s, transform 0.5s;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}
.services-list div i {
    color: rgb(1, 135, 201);
    font-size: clamp(36px, 5vw, 50px);
    margin-bottom: 15px;
}
.services-list div p {
    flex-grow: 1;
    margin-bottom: 15px;
}
.services-list div a {
    color: rgb(1, 135, 201);
    font-size: clamp(16px, 1.8vw, 18px);
    margin-top: auto;
    display: inline-block;
    font-weight: 500;
}
.services-list div:hover {
    background: linear-gradient( rgb(21, 69, 121), rgb(4, 0, 40)) ;
    transform: translateY(-10px);
}
.services-list div a:hover {
    color: rgb(206, 239, 255);
}

/* -------- portfolio -------- */

#services {
    padding: 30px 0;
    color: rgb(122, 211, 255);
}
.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: clamp(30px, 5vw, 50px);
}
.work {
    /* width: 250px; */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient( rgb(21, 69, 121, 0.85), rgb(4, 0, 40, 1));
    border-radius: 10px;
    padding: 0 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: height 0.5s;

    font-size: clamp(16px, 2vw, 18px);
    text-align: center;
}
.layer h2 {
    margin-bottom: 10px;
}
.layer p {
    margin-bottom: 0;
}
.layer a {
    color: rgb(122, 211, 255);
    font-size: 25px;
    margin: 20px 0;
    text-decoration: none;
    line-height: 60px;
    background-color: rgb(11, 61, 130);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    transition: transform 0.5s, background 0.5s;
}
.layer a:hover {
    transform: scale(1.1);
    background: rgb(0, 103, 155);
}
.work:hover img{
    transform: scale(1.05);
}
.work:hover .layer {
    height: 100%;
}
.btn {
    display: block;
    margin: clamp(30px, 5vw, 50px) auto;
    width: fit-content;
    border: 2px solid rgb(1, 135, 201);
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 40px);
    border-radius: 100px;
    text-decoration: none;
    color: rgb(122, 211, 255);
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 500;
    background: rgb(4, 36, 80);
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    border-style: outset;
}
.btn:hover {
    background: rgb(0, 103, 155);
    border-color: rgb(122, 211, 255);
    transform: translateY(-2px);
}

/* -------- contact info -------- */
.contact-left {
    flex-basis: 100%;
    margin-bottom: 30px;
}
.contact-right {
    flex-basis: 100%;
}

@media (min-width: 768px) {
    .contact-left {
        flex-basis: 35%;
        margin-bottom: 0;
    }
    .contact-right {
        flex-basis: 60%;
    }
}
.contact-left p {
    color: rgb(122, 211, 255);
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 15px;
}
.contact-left p i {
    font-size: clamp(22px, 3vw, 26px);
    padding-top: 5px;
    padding-right: 12px;
}
.social-icons {
    margin-top: 25px;
    margin-bottom: 20px;
}
.social-icons a {
    text-decoration: none;
    color: rgb(1, 135, 201);
    font-size: clamp(26px, 4vw, 32px);
    margin-right: clamp(15px, 3vw, 25px);
    display: inline-block;
    transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
    color: rgb(122, 211, 255);
    transform: scale(1.1);
}
.btn.btn2 {
    display: inline-block;
    font-size: clamp(15px, 1.8vw, 17px);
    border-style: outset;
    margin-top: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 100px;
}

.btn.btn2:hover {
    transform: translateY(-2px);
}
.contact-right form {
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 2px solid rgba(0, 62, 148, 0.3);
    outline: none;
    background-color: rgba(2, 14, 31, 0.5);
    background-image: none;
    padding: clamp(12px, 2vw, 15px);
    margin: 8px 0;
    color: rgb(122, 211, 255);
    font-size: clamp(15px, 1.8vw, 17px);
    border-radius: 10px;
    transition: border-color 0.3s, background 0.3s;
}

form input:focus, form textarea:focus {
    border-color: rgba(0, 62, 148, 0.8);
    background-color: rgba(2, 14, 31, 0.7);
    background-image: none;
}

/* Keep consistent dark background on browser autofill (Chrome/Edge) */
form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form textarea:-webkit-autofill,
form textarea:-webkit-autofill:hover,
form textarea:-webkit-autofill:focus,
form select:-webkit-autofill,
form select:-webkit-autofill:hover,
form select:-webkit-autofill:focus {
    -webkit-text-fill-color: rgb(122, 211, 255);
    caret-color: rgb(122, 211, 255);
    box-shadow: 0 0 0px 1000px rgba(2, 14, 31, 0.3) inset;
    transition: background-color 9999s ease-in-out 0s;
    border-color: rgba(0, 62, 148, 0.8);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}
form input::placeholder, form textarea::placeholder {
    color: rgb(36, 103, 137);
    font-size: 16px;
}
#msg {
    color: rgb(36, 103, 137);
    margin-bottom: 40px;
}
.copyright {
    width: 100%;
    
    padding: 10px 0;
    background: rgba(2, 14, 31, 0.5);
}
.copyright p {
    color: rgb(36, 103, 137);
    font-size: 16px;
    font-weight: 300;
    text-align: center;
}

/* -------- css for small screen -------- */
@media only screen and (max-width: 768px) {
    #header {
        background-image: url("images/Background2_phone_use.jpg");
        background-position: center bottom;
        min-height: 100vh;
    }
    .logo {
        width: 300px;
    }
    .header-text p {
        font-size: 16px;
    }
    .header-text {
        font-size: clamp(16px, 2.5vw, 18px);
        padding: 15px;
    }
    /* Open (hamburger) icon */
    nav .menu-open {
        color: rgb(122, 211, 255);
        font-size: 28px;
        display: block;
        position: relative;
        cursor: pointer;
        z-index: 3;
        padding: 8px;
        margin-left: auto;
    }

    /* Drop-down menu from top */
    #sideMenu {
        background: rgba(2, 14, 31, 0.95);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 60px 20px 30px 20px;
        z-index: 2;
        transition: max-height 0.5s ease-in-out;
        border-bottom: 2px solid rgba(1, 135, 201, 0.5);
    }

    /* When menu is open, expand height */
    #sideMenu.menu-active {
        max-height: 100vh;
    }

    #sideMenu li {
        margin: 0;
        padding: 16px 0;
        display: block;
        border-bottom: 1px solid rgba(122, 211, 255, 0.1);
        list-style: none;
    }

    #sideMenu li:last-child {
        border-bottom: none;
    }

    #sideMenu li a {
        text-decoration: none;
        color: rgb(122, 211, 255);
        font-size: 18px;
        font-weight: 500;
        display: block;
        padding: 8px 0;
    }

    #sideMenu li a:hover {
        color: rgb(88, 197, 251);
        transition: color 0.3s ease;
    }

    /* Close (X) icon inside the menu */
    #sideMenu .menu-close {
        color: rgb(122, 211, 255);
        font-size: 28px;
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
        cursor: pointer;
        padding: 8px;
        background: none;
        border: none;
        transition: color 0.3s ease;
    }

    #sideMenu .menu-close:hover {
        color: rgb(88, 197, 251);
    }

    /* -------- about -------- */

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    .about-col-1 img {
        width: 100%;
        margin-bottom: 20px;
    }

    /* -------- contact -------- */

    .contact-left, .contact-right {
        flex-basis: 100%;
    }

}