* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
    background-color: black;
    color: #e7e7e7;
    min-height: 100vh;
    line-height: 1.5;
}
/* GRADIENT AND LAYER BLUR EFFECT */
.image-gradient{
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    z-index: -1;
}
.layer-blur{
    height: 0;
    width: 30rem;
    position: absolute;
    top: 20%;
    right: 0;
    box-shadow: 0 0 700px 15px white;
    rotate: -30deg;
    z-index: -1;
                            
}

/* CONTAINER */
.container{
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

/*HEADER*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect for background */
    z-index: 1000; /* Ensure header stays above other content */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Optional shadow */
}

header h1{
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;

}

nav{
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 0;
    max-width: 650px;
    width: 100%;
    background: rgba(0, 0, 0, 0.07); /* Increased transparency */
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    
}

nav a{
    font-size: 1rem;
    letter-spacing: 0.1rem;
    transition: color 0.2s ease;
    text-decoration: none;
    color: inherit;
    z-index: 999;
}

nav a:hover{
    color: #a7a7a7;
}

.btn-emailme {
    background-color: #a7a7a7;
    color: black;
    padding: 0.4rem 0.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 999;

}

.btn-emailme:hover {
    background-color: white;
}

/* MAIN CONTENT */
main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(90vh - 6rem);
    padding-top: 80px; /* Adjust this value based on your header height */
}
.content {
    max-width: 40rem;
    margin-left: 10%;
    z-index: 999;
    margin-top: 7rem; /* Add top margin to prevent collision with header */
}
.tag-box{
    position: relative;
    width: 18rem;
    height: 2.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #656565, □ #7f42a7, ☐ #6600c5,
  #5300a0, #757575, ☐ #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
@keyframes animationGradient {
    to {
        background-position: 200%;
    }
}
.tag-box .tag{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    color:white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    cursor: pointer;
}


.tag-box .tag:hover{
    color:black;
    background-color: white;
}
.content h1 {
    font-size: 6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 2rem 0;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.418);
}


.description {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    max-width: 35rem;
    color: gray;
}
.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}


.btn-expertise{
    text-decoration: none;
    border: 1px solid #2a2a2a;
    padding: 0.7rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease;
    color: rgb(7, 7, 7);
    font-family:system-ui;
    background-color: white

}


.btn-expertise:hover{
    color: rgba(237, 240, 237, 0.699);
    background-color: #1a1a1a;
}

.btn-contact{
    text-decoration: none;
    background-color: white;
    color: black;
    padding: 0.6rem 2.5rem; border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: background-color 0.2s ease;
}

.btn-contact:hover {
    color: rgba(237, 240, 237, 0.699);
    background-color: #1a1a1a;
}



.greywolf{
    position: absolute;
    top: 80%;
    left: 56%;
    z-index: 1; /* Lower z-index = behind robot */
    font-size: 24px;
    color: gray;    
    /* padding: 2rem 44rem; */
    /* right: 20%; */
}

.maintenance{
    position: absolute;
    top: 90%;
    left: 10%;
    z-index: 1; /* Lower z-index = behind robot */
    font-size: 3rem;
    font-weight: 300;
    color: gray;    
    /* padding: 2rem 44rem; */
    /* right: 20%; */
    max-width: 80%;         /* Prevents text from overflowing */
    white-space: nowrap;    /* Keeps all text on one line */
    /* overflow: hidden;       Hides overflow if it exceeds container */
    /* text-overflow: ellipsis;Optional: adds "..." if it overflows */
}


.robot-3d{
    position: absolute;
    top: 0;
    scale: 0.9;
    right: -20%;
}

/* ss */
/* SECTIONS STYLING ENHANCEMENT */
section {
    padding: 30px 0%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    scroll-margin-top: 45px; /* For fixed header offset */ 
}
section h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(128,128,128,0.5);}


#gallery {
    background: rgba(0, 0, 0, 0.9);
    padding-top: 100px;
    scroll-margin-top: 100px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, auto);
    gap: 1rem;
    max-width: 1200px;
    width: 90%;
    padding: 1rem;
    z-index: 1;
}

.gallery-image {
    width: 100%;
    height: 250px; /* Fixed height for testing object-position */
    max-height: 250px;
    object-fit: contain; /* Ensure full image is visible */
    object-position: center; /* Center the image */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1a1a;
    position: relative;
    top: 0;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

section p {
    font-size: 1.1rem;
    max-width: 800px;
    text-align: center;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image {
    width: 100%; /* Make image fill the card width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px 15px 0 0; /* Rounded top corners */
    object-fit: cover; /* Ensure image covers the space without distortion */
    margin-bottom: 0.1rem; /* Space between image and text */
    margin-top: 1rem;
}

.card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: #aaa;
}

.card a {
    color: #a7a7a7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card a:hover {
    color: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}


/* ------------------------------ CONTACT SECTION ------------------------------ */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#contact p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0.5rem 0;
}

#contact a {
    color: #a7a7a7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #fff;
}

/* Icons styling */
.contact-icons {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-icons a {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icons a:hover {
    transform: translateY(-3px);
    color: #7f42a7;
}

/* Neon-glow cards */
.card {
    background: rgba(99, 98, 98, 0.6);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(218, 218, 218, 0.4);
    position: relative;
    overflow: hidden;
}

/* Animated gradient border on hover */
.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #101010, #181818, #252424, #2b2b2c);
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 22px;
    animation: gradientShift 15s ease infinite;
}
.card:hover::before {
    opacity: 1;
}

/* Card content */
.card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

.card a {
    color: #a7a7a7;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.card a:hover {
    color: #fff;
}

/* Card hover lift and glow */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(48, 48, 48, 0.7), 0 0 20px rgba(255,255,255,0.2);
}

/* Fade-in animation for all cards */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}
.card:nth-child(1){animation-delay: 0.2s;}
.card:nth-child(2){animation-delay: 0.4s;}
.card:nth-child(3){animation-delay: 0.6s;}
.card:nth-child(4){animation-delay: 0.8s;}
.card:nth-child(5){animation-delay: 1s;}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks for sections */
@media (max-width: 1300px) {
    section h2 {
        font-size: 2.5rem;
    }
    .card {
        width: 90%;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 3%;
    }
    section h2 {
        font-size: 2rem;
    }
    .card {
        width: 100%;
        padding: 1rem;
        border-radius: 15px;
    }
    .card h3 {
        font-size: 1.3rem;
    }
    .card p {
        font-size: 0.9rem;
    }
}
/* ss */

/* TABLET RESPONSIVE */ 
@media (max-width: 900px) {
    header {
        padding: 1rem 1rem;
    }
    nav {
        position: static;
        margin: 0 auto;
        width: 90%;
        flex-wrap: wrap;
        flex-direction: row;
        row-gap: 1rem;
        justify-content: center;
    }
    nav a, .btn-emailme {
        flex: 1 1 40%;
        min-width: 120px;
        text-align: center;
    }
    .content {
        margin-top: 2rem;
        max-width: 90vw;
        margin-left: 5vw;
    }
    .content h1 {
        font-size: 1.5rem;
    }
    .robot-3d {
        transform: scale(0.7);
        height: 400px;
        top: 20%;
        left: 30%;
        }
        .greywolf {
        position: absolute;
        top: 55%;
        left: 50%;
        font-size: 1.2rem;
        width: 80%;
        }
        .greywolf .description.logo {
        display: none;
        }
    .maintenance {
        position: absolute;
        top: 95%;
        left: 5%;
        font-size: 1.5rem;
        width: 90%;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
    }
}



/*laptop RESPONSIVE */ 
@media (max-width: 1500px) {
    header {
        padding: 1rem 2rem;
    }
    nav {
        position: static;
        margin: 0 auto;
        width: 40%; /* Smaller nav container */
        display: flex; /* Ensure flexbox is explicitly set */
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 1rem; /* Uniform gap for consistent spacing */
        justify-content: center;
    }
    nav a, .btn-emailme {
        flex: 0 0 auto; /* Prevent flex items from growing or shrinking */
        min-width: 0; /* Remove min-width to let content dictate size */
        text-align: center;
        padding: 0.5rem 0.5rem; /* Increase and balance padding for better appearance */
        font-size: 0.7rem; /* Maintain decreased font size */
    }
}
    .content {
        margin-top: 3rem;
        max-width: 80vw;
        margin-left: 7vw;
    }
    .content h1 {
        font-size: 3rem;
    }
    .robot-3d {
        transform: scale(0.8);
        height: 600px;
        top: 11%;
        left: 30%;
    }
    .greywolf {
        position: absolute;
        top: 60%;
        left: 52%;
        font-size: 1.3rem;
        width: 75%;
    }
    .greywolf .description.logo {
        display: none;
    }
    .maintenance {
        position: absolute;
        top: 97%;
        left: 7%;
        font-size: 1.2rem;
        width: 92%;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
    }



/* MOBILE RESPONSIVE */ 
@media (max-width: 768px) {
    header {
        padding: 1rem 0.1em;
        position: fixed;
        left: 7%;
        z-index: 10;
    }

    nav{
        display: none;
    }
    header h1{
        font-size: 2rem;
    }
    .btn-emailme{
        padding: 0.6rem 1.5rem;
    }

    
    .content {
        margin-top: 25rem;
    }
    .robot-3d{
        /* position: relative;  */
        
        transform: scale(0.9);
        height: 400px;
        left: 39.5%; /* <-- Shifted more to the right */
        /* position: absolute; Ensure positioning works */
        /* position: relative;  or absolute/fixed */
        /* position: absolute;  */
            /* z-index: 1000;         Higher z-index brings it in front */

    }
    .content {
        max-width: 30rem;
        margin-left: 10%;
    }
    .tag-box{
        width: 12rem;
       
    }
    
    .content h1{
        font-size: 2.5rem;
       
    }
    .description{
        /* font-size: 1rem; */
        font-size: 60%; /* 80% of the parent element's font size */
        position: absolute;
        top: 86%;
        left: 9%;
    }
    .btn-expertise{
        font-size: 0.8rem;
        padding: 0.8rem 1.2reM;
    }
    .btn-contact{
        font-size: 0.8rem;
        padding: 0.8rem 2rem;
    }
    .greywolf{
         position: absolute;
         width: 50%;
         top: 54%;
         left: 60%;
         /* white-space: normal; */
    }
    .maintenance{
         font-size: 100%; /* 80% of the parent element's font size */
         position: absolute;
         top: 89%;
         left: 0%;
         width: 90%;           /*Responsive width*/
         max-width: 100%;     /* Prevents overflow*/
         white-space: normal;  /* Enables wrapping */
         word-wrap: break-word; /* Break long words if needed */
         /* font-size: 0.5rem; */
         /* white-space: wrap;  */
    }
}

.go-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #181818, #1a1a1a);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.go-top-btn.show {
    display: flex;
}

.go-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(168, 168, 168, 0.4);
    background-color: #bebebe;
}

.go-top-btn:active {
    transform: translateY(1px);
}
