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

:root {
    --bg-color: #1f242d;
    --second-bg-color:#323946;
    --main-color: #7cf03d;
    --disabled-color: #fff3;
}

body{
    background: #0b0f14;
    color: white;
}

html{
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    margin: auto;
    padding: 0 6%;
}

.scroll-dots {
    position: fixed;
    top: 50%;
    right: 20px; /* distance from right edge */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3; /* above header and slider */
}

.scroll-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #00ff9c;
}

.scroll-dots .dot.active {
    background: #00ff9c;
    transform: scale(1.3);
}

/* ===== Responsive Scroll Dots ===== */
@media (max-width: 1200px) {
    .scroll-dots { right: 15px; gap: 12px; }
}

@media (max-width: 900px) {
    .scroll-dots { right: 10px; gap: 10px; }
}

@media (max-width: 600px) {
    .scroll-dots { right: 5px; gap: 8px; }
}

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

.logo{
    width: 160px;
}

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

nav ul li a {
    color:#fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #00ff9c;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

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

.header-text{
    margin-top: 10%;
    font-size: 30px;
}

/* Header Container */
#header {
    position: relative; /* make it the parent for absolute slides */
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Header Slider */
 .header-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* behind everything */
 }

.header-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideAnimation 10s infinite;
}

/* Delay for second image */
.header-slider .slide:nth-child(1) { animation-delay: 0s; }
.header-slider .slide:nth-child(2) { animation-delay: 5s; } 

/* Fade animation */ 
@keyframes slideAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    45% { opacity: 1; }
    55% { opacity: 0; }
    100% { opacity: 0; }
} 

/* Navbar and logo always on top */
nav {
    position: relative;
    z-index: 2; /* higher than slider */
}

.logo {
    position: relative;
    z-index: 2;
}

/* Header text on top */
.header-text {
    position: relative;
    z-index: 2;
    /* text-align: center; */
    margin-top: 10%;
}

/* Responsive */
@media (max-width: 900px){
    .header-text h1 { font-size: 36px; margin-top: 120px; }
}

@media (max-width: 600px){
    .header-text h1 { font-size: 28px; margin-top: 100px; }
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.header-text h1 span{
    color: #00ff9c;
    font-size: 0.9em;
    font-weight: 500;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#typed-text {
    color: #00ff9c; /* Adjust color as needed */
    font-weight: normal;
    font-size: 0.9em;
}

.hero-subtext {
    margin-top: 20px;
    color: #aaa;
    font-size: 20px;
    max-width: 550px;
    font-weight: normal;
    color: #00ff9c; 
    font-style: inherit;
}

.btn-sci {
    display: flex;
    align-items: center;
}

.win{
    display: inline-block;
    padding: .6rem 1rem;
    margin-top: 20px;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    /* box-shadow: 0 0 1rem var(--main-color);  */
    font-size: 1rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: .5s;
    margin-right: 15px;
}

.win:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}

.btn-sci .win {
    margin-left: .8rem;
}

.social-icons a{
    display: inline-flex;
    padding: 5px;
    margin-top: 20px;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 18px;
    color: var(--main-color);
    transition: .5s;
}

.social-icons a:hover{
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* =========================
   ABOUT SECTION
========================= */

.about {
    padding: 120px 6%;
    background: #0b0f14;
    margin-top: 30px;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
}
/* IMAGE */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 255, 156, 0.15);
    transition: 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* TEXT */
.about-text h2  {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #00ff9c;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    margin-top: 30px;
}
.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d1d1;
    margin-bottom: 18px;
}
/* STATS */
.about-stats {
    display: flex;
    gap: 35px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.about-stats div {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-radius: 14px;
    text-align: center;
    transition: 0.3s ease;
}
.about-stats div:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 156, 0.15);
}
.about-stats h3 {
    font-size: 2rem;
    color: #00ff9c;
}

.about-stats span {
    font-size: 0.9rem;
    color: #bbb;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        margin: auto;
    }

    .about-stats {
        justify-content: center;
    }
}
/* Tabs */
.tab-titles {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 30px;
}

.tab-links {
    font-size: 25px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    transition: 0.3s;
    color: #fff;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #00ff9c;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: 0.5s;
}

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

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 156, 0.5);
}

.card img {
    width: 65%;
    margin-bottom: 15px;
    margin-left: 40px;
}

.port  {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #00ff9c;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    margin-top: 30px;
}
.card .python {
    margin-top: 70px;
}
.card h3 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
    color: #00ff9c;
}

.card p {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 10px;
}

.card ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 0.85rem;
    color: #fff;
}

/* Tabs Content */
.tab-contents {
    display: none;
}

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

/* Ordered List Styling for Experience Details */
ol {
    margin-left: 20px;
    padding-left: 20px;
    list-style-position: inside;
    counter-reset: item;
}

ol li {
    margin-bottom: 10px;
    font-size: 16px;
    counter-increment: item;
}

ol li::before {
    content: counters(item, ".") ". ";
    font-weight: bold;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-titles {
        flex-direction: column;
        gap: 15px;
    }
}

/*-------------------services-------------*/
.services-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    margin-top: 50px;
}

.services-container div{
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    font-size: 17px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s , transform 0.5s;
}

.services-container div:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 156, 0.5);
}

.services-container div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #00ff9c;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    text-align: center;
}

.card p{
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
}
.services-container div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-container div:hover{
    /* background: var(--main-color); */
    transform: translateY(-10px);
}

/* Mobile phones */
@media (max-width: 600px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work h2 {
    margin-top: 40px;
}

.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

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

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

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

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

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

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

#contact {
    min-height: 100vh;          /* Full screen height */
    padding: 100px 0;           /* Top & bottom space */
    display: flex;
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;                  /* More space between columns */
    padding: 0 6%;
}

/* Contact details (left side) */
.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;           /* Increased vertical spacing */
}

.contact-detail i {
    display: inline-flex;
    background: var(--second-bg-color);
    color: var(--main-color);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    padding: 1.2rem;            /* Bigger icons = taller feel */
    border-radius: .8rem;
}

.contact-detail .detail p:first-child {
    color: var(--main-color);
}

/* Contact form (right side) */
.contact-box form {
    background: var(--second-bg-color);
    padding: 3rem;              /* More internal space */
    border-radius: 1rem;
    text-align: center;
}

.desc {
    max-width: 900px;     /* limits line length */
    font-size: 1rem;
    line-height: 1.5;     /* breathing room */
    color: #d1d1d1;
    font-weight:600;
}

.contact-box .heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 2rem;
}

.contact-box .heading span {
    color: var(--main-color);
}

.contact-box .field-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;                /* More spacing between inputs */
}

.contact-box .field-box input,
.contact-box .field-box textarea {
    padding: 1.2rem;
    background: var(--bg-color);
    border: .15rem solid var(--bg-color);
    border-radius: .6rem;
    font-size: 1rem;
    color: var(--white-color);
}

.contact-box .field-box textarea {
    min-height: 160px;          /* Prevent cramped textarea */
    resize: vertical;
}

.contact-box .btn {
    margin-top: 2.5rem;
    cursor: pointer;
    background: var(--main-color);
    padding: 1.2rem;
    border-radius: 1.8rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
}
/*======================= MEDIA QUERIES =======================*/
/* Tablet screens */
@media screen and (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr; /* stack vertically */
    }

    .contact-box form {
        margin: auto;
        width: 100%;
    }
}

/* Small screens */
@media screen and (max-width: 600px) {
    .contact-box h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    #contact {
        padding: 100px 0;
    }

    .contact-box .heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .contact-detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-detail i {
        font-size: 1.5rem;
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .contact-box .field-box {
        gap: 0.8rem;
    }
}
.super-copyright {
    background: #0b0f14; /* dark background */
    color: #00ff9c;      /* neon green */
    text-align: center;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #00ff9c;
}

.super-copyright p {
    margin: 5px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.super-copyright span.your-name {
    font-weight: normal;
    color: #fff;
}

.super-copyright span {
    color: #ff0099; /* add a pop color */
}

.super-copyright .social-footer {
    margin-top: 15px;
}

.super-copyright .social-footer a {
    display: inline-block;
    margin: 0 8px;
    color: #00ff9c;
    font-size: 18px;
    transition: 0.3s;
}

.super-copyright .social-footer a:hover {
    color: #ff0099;
    transform: translateY(-3px);
}

/* MOBILE OPTIMIZATION */
@media only screen and (max-width: 600px) {
    .super-copyright {
        padding: 25px 15px;
    }
    .super-copyright p {
        font-size: 12px;
    }
    .super-copyright .social-footer a {
        font-size: 16px;
        margin: 0 6px;
    }
}

/*-------------------------css for small screens--------------*/
nav .fas{
    display: none;
}

@media only screen and (max-width: 600px){
    
    #header {
        background-image: url(images/shubham-dhage-_afH9fjiom0-unsplash.jpg); 
    }
    .header-text{
        margin-top: 100px;
        font-size: 15px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fas{
        display: block;
        font-size: 25px;
    }
    .win {
        font-size: 15px;
    }
    .social-icons {
        font-size: 15px;
    }
    nav ul {
        background: var(--disabled-color);
        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 .fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .row{
        display: block;
    }
    .sub-title{
        font-size: 40px;
    }
    /* .about-col-1, .about-col-2{
        flex-basis: 50%;
    } */

    .about-col-1{
        margin-bottom: 30px;
        
    }
    .about-col-2{
        font-size: 14px;
        flex-basis: 100%;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
}
/* ================= MOBILE HEADER IMAGE ONLY ================= */
@media only screen and (max-width: 600px) {

    /* Hide the slider completely */
    .header-slider {
        display: none;
    }

    /* Use ONE static image instead */
    #header {
        background-image: url(images/shubham-dhage-_afH9fjiom0-unsplash.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}



