*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    font-size: 20px;
}
body{
    background: #080808;
    color: #fff;
}
html{
    scroll-behavior: smooth;
}
/* Make media and layout elements fluid by default */
img, video{ max-width: 100%; height: auto; display: block; }
svg{ height: auto; }
/* Prevent accidental horizontal scroll on small screens */
body{ overflow-x: hidden; }
/* Lock scrolling when menu is open */
body.menu-open{ overflow: hidden; }
/* --------- Scroll reveal base --------- */
.reveal{
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}
.reveal.in-view{
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* stagger children */
.stagger > *{
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.stagger.in-view > *{
    opacity: 1;
    transform: translateY(0);
}
.stagger.in-view > *:nth-child(1){ transition-delay: .05s; }
.stagger.in-view > *:nth-child(2){ transition-delay: .15s; }
.stagger.in-view > *:nth-child(3){ transition-delay: .25s; }
.stagger.in-view > *:nth-child(4){ transition-delay: .35s; }
.stagger.in-view > *:nth-child(5){ transition-delay: .45s; }
/* Directional variants */
.reveal-left{ transform: translateX(-48px) scale(0.98); }
.reveal-right{ transform: translateX(48px) scale(0.98); }
.reveal-left.in-view,
.reveal-right.in-view{ transform: translateX(0) scale(1); }
#header{
    width : 100%;
    height: 100vh;
    background-image: url(pictures/backgroundimage.png);
    background-size: cover;
    background-position: center;
}
.Logo{
    width: 300px;
    height: auto;
    margin-top: 10px;
}
.container{
    
    padding: 10px 10%;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
/* Mobile-only menu toggle, hidden by default */
.menu-toggle{
    display: none;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #fff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.menu-toggle:focus{ outline: 2px solid rgb(255, 87, 88); outline-offset: 2px; }
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a{
    text-decoration: none;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: rgb(255, 87, 88);
    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{
    margin-top: 20px;
    font-size: 57px;
}
.header-text h1 span{
    color: rgb(255, 87, 88);
    font-size: 57px;
}
/* ---------------About---------------- */
#about{
    padding: 80px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-column-1{
    flex-basis: 35%;
}
.about-column-1 img {
    width: 600px; 
    height: auto; 
    border-radius: 15px;
}
.about-column-2{
    flex-basis: 43%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
} 
.tab-titles{
    display: flex;
    margin: 20px 0 40px;;
}
.tab-links{
    margin-right: 50px;
    font-size: 30px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: #fff;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: rgb(255, 87, 88);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 50%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: rgb(255, 87, 88);
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}
/* -----------------Services---------------- */
#services{
    padding: 30px 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}
.services-list div i{
    font-size: 40px;
    margin: 30px 0;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background: rgb(255, 87, 88);
    transform: translateY(-10px);
}
.portfolio{
    padding: 50px 0;
}
.projects{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.project-card{
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #151515;
    border: 1px solid #222;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 600ms ease;
}
.project-card.in-view{
    transform: translateY(0) scale(1);
    opacity: 1;
}
.project-glow{
    position: absolute;
    inset: -40% -40% auto -40%;
    height: 60%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(255,87,88,0.25) 0%, rgba(255,87,88,0) 70%);
    filter: blur(20px);
    transform: translateY(40%);
    transition: transform 600ms ease, opacity 600ms ease;
    opacity: 0.6;
    pointer-events: none;
}
.project-card:hover .project-glow{
    transform: translateY(0%);
    opacity: 0.9;
}
.project-media{
    height: 180px;
    overflow: hidden;
}
.project-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.05);
    transition: transform 600ms ease, filter 600ms ease;
}
.project-card:hover .project-media img{
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.1) brightness(1.05);
}
.project-content{
    padding: 22px;
}
.project-content h3{
    font-size: 26px;
    margin-bottom: 8px;
}
.project-content p{
    font-size: 16px;
    color: #d7d7d7;
}
.project-tags{
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.project-tags li{
    list-style: none;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
}
.project-actions{
    margin-top: 16px;
    display: flex;
    gap: 12px;
}
.btn{
    display: inline-block;
    padding: 10px 16px;
    background: rgb(255, 87, 88);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover{
    background: rgb(235, 70, 71);
    transform: translateY(-2px);
}
.btn.btn-secondary{
    background: #333;
}
.btn.btn-secondary:hover{
    background: #444;
}

/* -----------------Contact---------------- */
#contact{
    padding: 70px 0 100px;
}
.contact-card{
    position: relative;
    border-radius: 16px;
    border: 1px solid #222;
    background: linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 600ms ease;
}
.contact-card.in-view{
    transform: translateY(0) scale(1);
    opacity: 1;
}
.contact-glow{
    position: absolute;
    inset: -30% -30% auto -30%;
    height: 70%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(255,87,88,0.28) 0%, rgba(255,87,88,0) 70%);
    filter: blur(22px);
    transform: translateY(35%);
    transition: transform 600ms ease, opacity 600ms ease;
    opacity: 0.7;
    pointer-events: none;
}
.contact-card:hover .contact-glow{
    transform: translateY(0%);
    opacity: 1;
}
.contact-content{
    position: relative;
    padding: 28px;
}
.contact-content h3{
    font-size: 30px;
    margin-bottom: 8px;
}
.contact-content p{
    color: #cfcfcf;
}
.contact-note{
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}
.social-links{
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 80px);
    justify-content: start;
    gap: 16px;
}
.social-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #fff;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.social-icon:hover{
    transform: translateY(-4px) scale(1.03);
    border-color: rgb(255, 87, 88);
    box-shadow: 0 10px 30px rgba(255,87,88,0.18);
    background: #202020;
}
.social-icon.linkedin:hover{ color: #0a66c2; }
.social-icon.github:hover{ color: #c9d1d9; }
.social-icon.gmail:hover{ color: #ea4335; }

@media (max-width: 700px){
    /* Header image: use dynamic viewport height and top focus to avoid awkward crops */
    #header{ background-position: top center; height: auto; min-height: 100dvh; }

    .social-links{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px){
    .projects{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px){
    .projects{
        grid-template-columns: 1fr;
    }
}

/* ---------- Global mobile adjustments ---------- */
@media (max-width: 700px){
    /* Tweak base sizing and spacing for readability */
    body{ font-size: 16px; }
    .container{ padding: 10px 6%; }
    .Logo{ width: 180px; }

    /* Header text scales down */
    .header-text{ margin-top: 28%; font-size: 20px; }
    .header-text h1{ font-size: 36px; }
    .header-text h1 span{ font-size: 36px; }

    /* Mobile nav: off-canvas from the right */
    nav{ position: relative; flex-wrap: nowrap; gap: 10px; }
    .menu-toggle{ display: inline-flex; position: absolute; right: 10px; top: 10px; z-index: 1001; }
    nav ul{
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: 260px;
        background: #101010;
        border-left: 1px solid #222;
        padding: 80px 20px 20px;
        margin: 0;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1000;
        display: block;
    }
    nav.open ul{ transform: translateX(0); }
    nav ul li{ display: block; margin: 14px 0; }
    nav ul li a{ font-size: 18px; }

    /* About section stacks columns */
    .row{ flex-direction: column; gap: 20px; }
    .about-column-1, .about-column-2{ flex-basis: 100%; }
    .about-column-1 img{ width: 100%; }
    .sub-title{ font-size: 36px; }
    .tab-links{ font-size: 20px; margin-right: 20px; }

    /* Services cards already auto-fit; just reduce paddings a bit */
    .services-list{ grid-gap: 20px; }
    .services-list div{ padding: 24px; }

    /* Project cards: single column already handled; adjust media height */
    .project-media{ height: 150px; }

    /* Contact section spacing */
    #contact{ padding: 50px 0 70px; }
    .contact-content{ padding: 22px; }
}

/* -----------------Services page---------------- */
#web-services{
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #0b0b0b 0%, #0a0a0a 100%);
    border-top: 1px solid #141414;
    border-bottom: 1px solid #141414;
}
.section-intro{
    color: #cfcfcf;
    margin-top: 10px;
}
.web-services-grid{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
}
.web-card{
    background: #161616;
    border: 1px solid #232323;
    border-radius: 12px;
    padding: 22px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, filter .25s ease;
    position: relative;
}
.web-card i{
    font-size: 32px;
    color: rgb(255, 87, 88);
}
.web-card h3{
    font-size: 22px;
    margin-top: 10px;
}
.web-card p{
    color: #cfcfcf;
}
.web-card:hover{
    transform: translateY(-4px);
    background: #1b1b1b;
    border-color: #2a2a2a;
    box-shadow: 0 12px 30px rgba(255,87,88,0.12);
}
.web-card::after{
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: radial-gradient(60% 60% at 50% 0%, rgba(255,87,88,0.25) 0%, rgba(255,87,88,0) 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity .3s ease;
    pointer-events: none;
}
.web-card:hover::after{ opacity: 1; }
@media (max-width: 900px){
    .web-services-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
    .web-services-grid{ grid-template-columns: 1fr; }
}

/* -----------------Ticket Modal---------------- */
.ticket-overlay{
    position: fixed;
    inset: 0;
    display: block;
    pointer-events: none;
    z-index: 1000;
}
.ticket-overlay.open{ pointer-events: auto; }
.ticket-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}
.ticket-overlay.open .ticket-backdrop{ opacity: 1; }
.ticket-modal{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    width: min(640px, 92vw);
    background: #121212;
    border: 1px solid #232323;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.02) inset;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 2;
}
.ticket-overlay.open .ticket-modal{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.ticket-close{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}
.ticket-sub{ color: #cfcfcf; margin-bottom: 12px; }
.ticket-note{ color: #9e9e9e; font-size: 14px; margin-top: 10px; }
.ticket-modal label{ display:block; font-size:14px; color:#cfcfcf; margin: 10px 0 6px; }
.ticket-modal input,
.ticket-modal textarea{
    width: 100%;
    background: #151515;
    color: #fff;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    z-index: 3;
}
.ticket-actions{ position: relative; z-index: 3; }
.ticket-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top: 12px; }
#services-page{
    padding: 60px 0 100px;
}
.services-grid{
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
}
.service-card{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px;
    background: #161616;
    border: 1px solid #232323;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, filter .25s ease;
    position: relative;
}
.service-card i{
    font-size: 32px;
    color: rgb(255, 87, 88);
}
.service-card h3{
    font-size: 22px;
}
.service-card p{
    color: #cfcfcf;
    font-size: 16px;
}
.service-card:hover{
    transform: translateY(-4px);
    background: #1b1b1b;
    border-color: #2a2a2a;
    box-shadow: 0 12px 30px rgba(255,87,88,0.12);
}
.service-card::after{
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: radial-gradient(60% 60% at 50% 0%, rgba(255,87,88,0.25) 0%, rgba(255,87,88,0) 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity .3s ease;
    pointer-events: none;
}
.service-card:hover::after{ opacity: 1; }
.gallery{
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item{
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #232323;
    background: #111;
}
.gallery-item img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .5s ease;
    filter: saturate(0.9);
}
.gallery-item:hover img{
    transform: scale(1.06);
    filter: saturate(1.1) brightness(1.05);
}
@media (max-width: 900px){
    .services-grid{ grid-template-columns: repeat(2, 1fr); }
    .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
    .services-grid{ grid-template-columns: 1fr; }
    .gallery{ grid-template-columns: 1fr; }
}
