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

html{
    scroll-behavior: smooth;
}

:root{
    /* new color palette: warmer pink + purple accents */
    --accent: #FF9CC2;       /* warm pink (replaces old red) */
    --accent-strong: #A66AC9; /* purple for stronger accents */
    --accent-contrast: #F7B6E0; /* lighter pink for highlights */
}

body{
    background: #050505; /* slightly darker than #080808 */
    color: #fff;
}

#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
}

/* Animated decorative smoke lines for the entire site */
.site-smoke{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0; /* behind content */
    overflow: visible;
    mix-blend-mode: screen;
    opacity: 0.9;
}

.site-smoke .smoke{
    transform-origin: center;
}

/* Canvas background for aerospace effect */
#site-bg{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* Gentle horizontal drift animations */
@keyframes drift-left-right {
    0%   { transform: translateX(-6%); }
    50%  { transform: translateX(6%); }
    100% { transform: translateX(-6%); }
}

@keyframes drift-slow {
    0%   { transform: translateX(0%); }
    50%  { transform: translateX(4%); }
    100% { transform: translateX(0%); }
}

.smoke-1{
    animation: drift-left-right 18s ease-in-out infinite;
    opacity: 0.55;
}
.smoke-2{
    animation: drift-slow 24s ease-in-out infinite;
    opacity: 0.45;
}
.smoke-3{
    animation: drift-left-right 30s ease-in-out infinite;
    opacity: 0.4;
}

/* Ensure header content sits above the SVG */
.container{
    position: relative;
    z-index: 1;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
    .smoke-1, .smoke-2, .smoke-3{
        animation: none !important;
    }
}

.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo{
    width: 0;
    overflow: hidden;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}


nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent-strong);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

/* header layout: text and image side-by-side */
.header-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Right-side constellation canvas next to header text */
.header-canvas{
    flex-basis: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-canvas canvas{
    width: 100%;
    max-width: 520px;
    height: 320px;
    background: transparent;
    border-radius: 12px;
    display: block;
    pointer-events: none; /* allow clicks through */
}

.header-image img{
    max-width: 360px;
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 30px rgba(20,10,30,0.5);
}

.header-text h1 span{
    color: var(--accent-strong);
}

#about{
    padding: 80px 0;
    color: #ababab;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}

.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: white;
}

/* Awards / Recognition scroller */
#awards{
    padding: 60px 0;
    color: #ddd;
}
.awards-scroller-wrap{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}
.awards-scroller{
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.award{
    min-width: 220px;
    max-width: 260px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 14px;
    text-align: left;
    scroll-snap-align: start;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.award img{
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.award-title{
    margin-top: 10px;
    font-weight: 600;
    color: #fff;
}
.award-meta{
    margin-top: 6px;
    font-size: 13px;
    color: #d0c7d6;
    display: flex;
    gap: 10px;
    align-items: center;
}
.award-meta .award-date{
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    color: #fff;
}
.award-meta .award-org{
    color: #cfcfcf;
}
.award-desc{
    margin-top: 6px;
    color: #cfcfcf;
    font-size: 14px;
}
.scroller-btn{
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.scroller-note{
    margin-top: 16px;
    font-size: 13px;
    color: #9a9a9a;
}

@media (max-width: 800px){
    .award img{ height: 120px }
    .award{ min-width: 200px }
}


.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent-strong);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 100%;
}

.tab-contents ul li{
    font-size: 15px;
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span{
    color: #b54769;
    font-size: 20px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* Specializations */
#Specializations{
    padding: 30px 0;
}

.Specializations-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.Specializations-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.Specializations-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.Specializations-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.Specializations-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.Specializations-list div:hover{
    background: var(--accent-strong);
    transform: translateY(-10px);
}

/* portfolio */
#porfolio{
    padding: 50px 0;
}

.work-list{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 50px;
    justify-content: center; /* center items on incomplete rows */
    align-items: stretch;
    padding: 0 12px; /* small horizontal padding so centered rows look balanced */
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex: 1 1 240px; /* allow items to shrink/grow, base width ~240px */
    max-width: 360px;
    height: 360px; /* slightly taller tile height so all tiles match */
    display: flex;
    flex-direction: column;
}

/* Desktop: force exactly 3 items per row when viewport is wide enough
   This ensures 5 items will render as 3 on the first row and 2 centered below. */
@media (min-width: 900px){
    .work-list{
        /* keep flex layout but constrain items to one-third widths */
        justify-content: center;
    }
    .work{
        flex: 0 0 calc((100% - 48px) / 3); /* two gaps of 24px per row */
        max-width: none;
    }
}

.work img{
    width: 100%;
    height: 100%; /* fill the tile height */
    object-fit: cover; /* crop to fill while maintaining aspect */
    display: block;
    transition: transform 0.5s;
    border-radius: 0; /* radius applied to parent .work */
}

.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), var(--accent));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a{
    margin-top: 20px;
    color: var(--accent-strong);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

/* Rectangular CTA for abstracts without disturbing icon bubbles */
.layer .abstract-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent-strong);
    color: #fff;
    border-radius: 8px;
    line-height: 1.3;
    height: auto;
    width: auto;
    font-size: 15px;
}

.layer .abstract-btn i{
    line-height: 1;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--accent-strong);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: var(--accent-strong);
}

.contact-left{
    flex-basis: 35%;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color: var(--accent-strong);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px; 
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: var(--accent-strong);
    transform: translateY(-5px);
}

.btn.btn2{
    display: inline-block;
    background: var(--accent-strong);
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #262626;
    font-size: small;
    font-weight: 100;
    margin-top: 50px;
}


/* css for small device screen */

nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 600px){
    #header{
        background-image: url(images/phone-background.png);
    }

    /* Reduce or hide decorative smoke on small screens for performance and clarity */
    .site-smoke{
        display: none;
    }

    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1{
        font-size: 30px;
    }

    .header-row{
        flex-direction: column-reverse;
        gap: 20px;
    }

    /* hide the decorative constellation canvas on small screens */
    .header-canvas{ display: none; }

    .header-image img{
        max-width: 220px;
        margin: 0 auto;
    }

    nav .fa-solid{
        display: block;
        font-size: 25px;
    }

    nav ul{
        background: var(--accent-strong);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li{
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title{
        font-size: 40px;
    }

    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }

    .about-col-1{
        margin-bottom: 30px;
    }

    .about-col-2{
        font-size: 14px;
    }

    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }

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

    .copyright{
        font-size: 14px;
    }

    /* Mobile fallback background (subtle animated gradient/clouds) */
    #mobile-bg{
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(120deg, rgba(22,6,30,0.95), rgba(46,6,46,0.9));
        opacity: 0.95;
        overflow: hidden;
    }

    /* moving soft overlay using pseudo elements */
    #mobile-bg::before, #mobile-bg::after{
        content: '';
        position: absolute;
        left: -10%;
        top: -30%;
        width: 140%;
        height: 120%;
        background: radial-gradient(circle at 20% 30%, rgba(247,182,224,0.12), transparent 25%), radial-gradient(circle at 80% 70%, rgba(166,106,201,0.08), transparent 30%);
        transform: translateX(0) translateY(0) scale(1.05);
        will-change: transform;
        animation: mobile-cloud 14s linear infinite;
    }

    #mobile-bg::after{animation-duration:20s;opacity:0.9}

    @keyframes mobile-cloud{
        0%{transform:translateX(-5%) translateY(0)}
        50%{transform:translateX(5%) translateY(2%)}
        100%{transform:translateX(-5%) translateY(0)}
    }

    @media (prefers-reduced-motion: reduce){
        #mobile-bg::before,#mobile-bg::after{animation:none}
    }
}

/* Responsive tile heights so all work tiles remain equal-sized */
@media (min-width: 900px){
    .work{ height: 380px; }
}

@media (max-width: 900px) and (min-width: 601px){
    .work{ height: 320px; }
}

@media (max-width: 600px){
    .work{ height: 260px; }
}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}