* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    
    font-family:Verdana, Geneva, Tahoma, sans-serif;

    /* FIXED background (real gradient) */
    background: radial-gradient(#001e30,#03314e);
    color: #e5e7eb;
    overflow-x: hidden;
    
}

/* NAVBAR */
.nicenav {
    position: relative;
    width: fit-content;
    margin: 2rem auto;
    padding: 0.8rem 2rem;

    display: flex;
    gap: 2rem;

    background: rgba(30, 41, 59, 0.4);
    border-radius: 999px;
    backdrop-filter: blur(12px);

    border: 2px solid rgba(0, 234, 255, 0.4);
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 1.05rem;
    text-decoration: none;
    color: #cbd5f5;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* HOVER */
.nav-links li a:hover {
    color: #00eaff;
    cursor: pointer;
    background: rgba(0, 234, 255, 0.1);
    text-shadow: 0 0 6px rgba(0, 234, 255, 0.6);
}


.social {
    list-style: none;
    display: flex;
    gap: 1rem;
    font-size: 30px;
}

.social a {
    display: inline-block; /* 👈 REQUIRED */
    transition: transform 0.3s ease-in-out;
    color: white;
}

.social img {
    position: relative;
    top: 2px;
}

.social a:hover {
    transform: scale(1.2);
    cursor: pointer;
    background: rgba(0, 234, 255, 0.4);
    border-radius: 20%;
    text-shadow: 0 0 6px rgba(0, 234, 255, 0.6);
}





.home h1 {
    text-align: center;
    font-size: 3rem;
    position: relative;
    top: 20px;
}

.home {
    align-content: center;
    
}


.home h6 {
    text-align: center;
    font-size: 25px;
    position: relative;
    top: 30px;
    color: rgba(255, 255, 255, 0.349);
}

.home p {
    max-width: 600px;
    margin: 60px auto 0 auto;
    text-align: center;
    font-size: 20px;
    
}


/* TYPEWRITER */
.cursor {
    display: inline-block;
    color: #ffffff;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}



.container {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    
    
    
  
}

/* FIXED typo (section_counter) */
section:not(#section_counter){
    height: 100px;
}

.section-heading {
    position: relative;
    top: -10px;
    font-size: 3em;
    text-align: center;
    
    color: #e5e7eb;
}



/* SECTION */
#section_counter {
    padding: 5rem 0;
}

/* GRID */
.counter-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));

    justify-content: center; /* keeps everything centered */
    gap: 3rem;               /* THIS will now work properly */
}
/* CARD */
.counter-item {
    width: 170px;
    height: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical center */
    align-items: center;       /* horizontal center */

    text-align: center;        /* text center */

    background: rgba(30, 41, 59, 0.4);
    padding: 2rem 1rem;
    border-radius: 1rem;
    gap: 3rem;

    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 234, 255, 0.2);

    transition: all 0.3s ease;
    transform: translateY(6rem);
}

.counter-item h4 {
    font-size: 15px;
    top: -20px;
    position: relative;
}

/* HOVER */
.counter-item:hover {
    transform: translateY(0) scale(1.01);

    border: 1px solid rgba(0, 234, 255, 0.6);

    box-shadow: 0 0 20px rgba(0, 234, 255, 0.2);
    cursor: pointer;
}

/* ICON */
.counter-img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;

    margin-bottom: 1rem;

    filter: drop-shadow(0 0 8px rgba(0, 234, 255, 0.6));
}

/* NUMBER */
.counter-item .counter {
    font-size: 2.5rem; /* FIXED */
    font-weight: bold;
    color: #00eaff;

    letter-spacing: 0.1rem; /* FIXED */
}

/* OPTIONAL LABEL TEXT */
.counter-item p {
    margin-top: 0.5rem;
    color: #cbd5f5;
    font-size: 0.9rem;
}

/* ANIMATION */
@keyframes slide-up {
    0% {
        transform: translateY(6rem);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* programs i use */

.programs-use {
    text-align: center;

}

.programs-use h1 {
    font-size: 3rem;
    position: relative;
    top: 30px;
}



.programcar {
    
    margin: 100px auto;
    width: 33%;
    border: 2px solid rgba(0, 234, 255, 0.4);
    border-radius: 20px;
    height: 150px;
    display: flex;
    overflow-x: auto;
    background: linear-gradient(#002942, #001e30)
}

.programcar::-webkit-scrollbar {
    display: none;
}
.pgroup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding-right: 1em;
    
    animation: pspin 10s linear infinite;
}

.pcard {
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    
    
    text-align: center;
    align-content: center;
    
    

    
}


@keyframes pspin {
    from {translate: 0;}
    to {translate: -100%;}
}

/*different colored text*/


.purpletext {
    color: rgb(157, 104, 255);
}
.mrweiss {
    color: orange;
}
.green {
    color: lime;
}








/* ================= PORTFOLIO ================= */

/* ANIMATION */


/* TITLE */
.portfolio {
    margin-top: 800px;

}
.portfolio h1 {
    text-align: center;
    font-size: 3rem;
    position: relative;
    top: -20px;
    
   
}

/* CONTAINER */
.portfolio div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 500px;
    margin: 0 auto;
    position: relative;
    
    
    
}

/* CENTER LINE */
.portfolio div::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 5px;
    height: 100%;
    background: rgba(0, 234, 255, 0.3);
    transform: translateX(-50%);
}

/* BASE IMAGE (hidden by default) */
.portfolio img {
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(0, 234, 255, 0.4);
    z-index: 1;

    opacity: 0; /* hidden before scroll */
}

/* WHEN VISIBLE (animation plays) */
.portfolio img.show {
    animation: fadeup 0.8s ease forwards;
}

/* PROFILE (square) */
.portleft,
.portright {
    width: 180px;
    aspect-ratio: 1 / 1;
}

/* THUMBNAILS */
.portleftt,
.portrightt {
    width: 260px;
    aspect-ratio: 16 / 9;
}

/* LEFT SIDE */
.portleft,
.portleftt {
    align-self: flex-start;
    margin-left: calc(50% + 20px);
}

/* RIGHT SIDE */
.portright,
.portrightt {
    align-self: flex-end;
    margin-right: calc(50% + 20px);
}

/* HOVER */
.portfolio img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.35);
}







@keyframes text-appear {
    from {
        opacity: 0;
        margin-left: -80px;
    }
    to {
        opacity: 1;
        margin-left: 0px;
    }
}
@keyframes appear {
    from{
        opacity: 0;
        scale: 2;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}
@keyframes fadeup {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}
@keyframes size {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}





.fadeup {
    animation: fadeup 0.8s ease forwards;
}
.size {
    animation: size 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards
}

/* slide left */
.text-appear {
    animation: text-appear 1.5s ease forwards;
}

/* slide right */
.example {
    animation: slideRight 0.8s ease forwards;
}

.appear {
    animation: appear 0.2 ease forwards;
}







/* Review Carsoul */
.reviewcar {
    
    margin: 100px auto;
    width: 90%;
    border: 2px solid rgba(0, 234, 255, 0.4);
    border-radius: 20px;
    height: 250px;
    display: flex;
    overflow: hidden;
    background: linear-gradient(#002942, #001e30)
}

.reviewcar::-webkit-scrollbar {
    display: none;
}
.rgroup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding-right: 1em;
    
    animation: pspin 20s linear infinite;
}

.rcard {
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    
    
    text-align: center;
    align-content: center;
    
    

    
}

.reviewcar img {
    height: 225px;
}



.services {
    margin-top: 200px;
}

.servicesboxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 0.5fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
.serviceleft {
    display: grid;
    place-items: start;
}

.services h3 {
    position: relative;
    top: 10px;
    color: aqua;
}
.services h1 {
    font-size: 3rem;
    text-align: center;
}

.borderdiv {
    width: 350px;
    height: 650px;
   
    margin: 0 auto;
    
    background-color: #003758 ;
    position: relative;
    top: 50px;
    border-radius: 20px;
    
    
    
    
    
    
    
    
}
.gray {
    opacity: 0.4;
    color: gray;
   
}

@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.borderdiv::after,.borderdiv::before {
    --angle: 0deg;
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: conic-gradient(from var(--angle), transparent 70%,rgba(33, 236, 255, 0.397));
    
    top: 50%;
    left: 50%;
    translate: -50% -50%;   
    z-index: -1;
    padding: 3px;
    border-radius: 20px;
    animation: 3s borderspin linear infinite;
}
.borderdiv::before {
    filter: blur(1.5rem);
    
    
}
.borderdiv h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    top: 10px;
}

@keyframes borderspin {
    from{
        --angle:0deg;
    }
    to{
        --angle: 360deg;
    }
}

.styled-line {
  border: 0;
  border-top: 2px solid #3498db; /* Solid blue line */
  margin: 20px 0;
}


.borderdiv p {
    text-align: center;
    position: relative;
    top: 10px;
}





.services div a {
    position: relative;
    top: 20px;
    text-align: center;
    left: 20px;
    color: aqua;
}
.services div a:hover {
    
    color:aquamarine;
}


.services h3 {
    text-align: center;
    font-size: 30px;
}



.divcheckbox {
    height: 30px;
    width: 30px;
    
    color: #00eaff;
    border-radius: 3px;
    font-size: 23px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-content: center;
    top: 19px;
    left: 12px;
    position: relative;
    font-size: 30px;
    
}



.services h5 {
    font-weight:lighter;
    position: relative;
    left: 54px;
    bottom: 7px;
    font-size: 15px;
    color: #00eaff;
}








/* footer */




.foot {
    width: 100%;
    background-color: #003d63;
    margin-top: 2000px;
    padding: 40px 20px;
}
.footer-row > div {
    width: auto;
}
/* main layout */
.footer-row {
    display: flex;
    align-items: center;
    position: relative;
}

/* left */
.quicklinks {
    flex: 1;
    text-align: center;
}

/* right */
.contactf {
    flex: 1;
    text-align: center;
}

/* absolute center */
.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.footer-center img {
    width: 180px;     /* fixed size */
    max-width: 100%;  /* prevents overflow on small screens */
    height: auto;     /* keeps aspect ratio */
}


/* RIGHT */
.contactf {
    text-align: center;
    position: relative;
}

/* links */
.foot ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    text-align: ce;
 
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foot a {
    color: rgb(194, 194, 194);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
    will-change: transform;
}

.foot a:hover {
    color: aqua;
    transform: translateX(6px);
}

/* headings */
.foot h6 {
    font-size: 20px;
}

/* bottom text */
.foot h1 {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    color: rgba(255,255,255,0.4);
}





.test {
    background-color: transparent;
    margin-top: 3000;
    height: 100px;
    width: 100%;
}



@media (max-width: 768px) {

    /* ================= GLOBAL FIX ================= */
    img {
        max-width: 100%;
        height: auto;
    }

    section:not(#section_counter){
        height: auto !important;
    }

    body {
        overflow-x: hidden;
    }

    /* ================= NAVBAR ================= */
    .nicenav {
        width: 92%;
        padding: 0.6rem 1rem;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .nav-links li a {
        font-size: 0.85rem;
        padding: 0.3rem;
    }

    /* ================= HOME ================= */
    .home h1 {
        font-size: 2rem;
    }

    .home h6 {
        font-size: 18px;
    }

    .home p {
        font-size: 15px;
        padding: 0 12px;
    }

    /* ================= COUNTERS ================= */
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .counter-item {
        transform: none !important;
        width: 100%;
    }

    /* ================= PROGRAM CAROUSEL ================= */
    .programcar {
        width: 92%;
        height: auto;
    }

    /* ================= SERVICES ================= */
    .servicesboxes {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .borderdiv {
        width: 92%;
        height: auto;
        padding-bottom: 20px;
    }

    /* ================= PORTFOLIO ================= */
    .portfolio {
        margin-top: 150px;
    }

    .portfolio div {
        width: 100%;
    }

    .portfolio div::before {
        display: none;
    }

    .portleft,
    .portright,
    .portleftt,
    .portrightt {
        width: 90%;
        margin: 0 auto !important;
        align-self: center !important;
    }

    /* ================= FOOTER (CENTERED HORIZONTAL) ================= */
    .footer-row {
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20px;
        flex-wrap: nowrap;
    }

    .quicklinks,
    .contactf {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contactf {
        position: relative;
        right: 50px;
    }

    .footer-center {
        flex: 0;
        position: relative !important;
        transform: none !important;
        left: auto !important;
    }

    .footer-center img {
        width: 90px;
    }

    .foot ul {
        align-items: center;
        gap: 6px;
    }

    .foot a {
        font-size: 12px;
    }

    .foot h6 {
        font-size: 14px;
    }

    .foot {
        margin-top: 200px;
    }
    /* ================= SOCIAL ICON FIX ================= */
    .social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .social i {
        font-size: 22px;
    }

    .social img {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain;
        top: 0 !important; /* removes your offset */
        position: relative;
    }
}
