* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    color: white;
    cursor: none !important;
    user-select: none;
}

html, body {
    height: 100%;
    width: 100%;
    cursor: none;
}

.cursor{
    height: 20px;
    width: 20px;
    border-radius: 50%;
    position: fixed;
    background-color: white;
    z-index: 8;
    background-position: center;
    background-size: cover;
    mix-blend-mode: difference;
    pointer-events: none;
    transition: width 0.2s ease-out, height 0.2s ease-out, border-radius 0.2s ease-out;

    /* transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); */
    /* transform-origin: center;
    will-change: transform, width, height, border-radius; */


    /* Only transition the properties you want to animate 
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                border-radius 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                background-color 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    */
}

.cursor.round-on {
    height: 50px;
    width: 120px;
    color: black;
    background-color: white;
    /* border: 2px transparent #fff; */
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #fff; */
    font-size: 14px;
    /* text-transform: uppercase; */
    font-weight: 800;
    /* background-color: rgba(255, 255, 255, 0.9); */
}

.cursor.grow {
    transform: scale(1.5);
    animation-duration: 1;
}

.main {
    background-color: #0F0D0D;
    cursor: none;
}

.page1 {
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 9;
}

#nav {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

#nav img {
    height: 50px;
}

/* General styling for the logos in the nav */
.nav-logo {
    height: 35px; /* You can adjust this size */
    width: auto;
    vertical-align: middle; 
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.3); /* Adds a nice hover effect */
}

#nav-part2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

#nav-part2 h4 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

#nav #circle {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #fff;
}

/* Style for nav links */
#nav-part2 h4 {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

#nav-part2 h4:hover {
    color: #3d70f3; /* Highlight color on hover */
    transform: scale(1.1);
}

/* Highlight active link */
.nav-link.active {
    color: #3d70f3;
    font-weight: bold;
}


.page1 h1 {
    font-size: 8vw;
    margin-top: 10vw;
    margin-left: 6vw;
    position: relative;
}

.page1 h1::before {
    content: "Namaste, I'm";
    animation: greetings 20s infinite;
    position: absolute;
    left: 0;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #111, #111);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page1 h2 {
    font-size: 9vw;
    margin-left: 40vw;
    margin-top: 20vw;
    font-family: 'Great Vibes';
}

@keyframes greetings {
    0%, 18% {
        content: "Namaste, I'm";
        opacity: 1;
        transform: translateY(0);
    }
    20%, 23% {
        opacity: 0;
        transform: translateY(-20px);
    }
    25%, 43% {
        content: "Hello, I'm";
        opacity: 1;
        transform: translateY(0);
    }
    45%, 48% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50%, 68% {
        content: "Bonjour, I'm";
        opacity: 1;
        transform: translateY(0);
    }
    70%, 73% {
        opacity: 0;
        transform: translateY(-20px);
    }
    75%, 93% {
        content: "Hola, I'm";
        opacity: 1;
        transform: translateY(0);
    }
    95%, 98% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Add text shadow for depth */
.page1 h1::before {
    content: "Namaste, I'm";
    animation: greetings 20s infinite;
    position: absolute;
    left: 0;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: white; /* Changed this line */
    /* Remove these lines since we don't need the background-clip anymore
    background: linear-gradient(90deg, #111, #111);
    -webkit-background-clip: text;
    background-clip: text;
    */
}

/* Add subtle hover effect */
.page1 h1:hover::before {
    transform: translateY(-2px);
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Optional: Add a gradient background that moves */
.page1 h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.page1 video {
    width: 60%;
    margin-top: 5vw;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);

    /* transition: opacity 0.6s ease;
    opacity: 1; */
}

.video-container {
    width: 60%;
    margin-top: 5vw;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
    
    display: grid;
    place-items: center;

    border-radius: 20px;
    overflow: hidden;
}

.video-container > .video {
    grid-area: 1 / 1; 

    width: 100%;
    height: auto; /* Let the video determine its own height */
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-container .video.active {
    opacity: 1;
}

.page2 {
    min-height: 100vh;
    width: 100%;
    padding: 10vh 5vh;
    border-bottom: 0.3vh solid #6c6c6c;
    position: relative;
    z-index: 9;
}

.page2 h1 {
    font-size: 5.5vw;
    font-weight: 700;
    margin-left: 0vh;
    color: #111;
}

/* Common styles for all headings */
.page2 h1 span {
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    display: inline-block;
}

/* DESIGN - Creative, artistic effect with drawing outline animation */
.page2 h1 .design {
    font-family: 'Bungee Outline';
    font-size: 6vw;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px #111;
}

.page2 h1 .design::before {
    content: 'DESIGN';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: #393232;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.page2 h1 .design::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #111;
    border-radius: 5px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.page2 h1 .design:hover::before {
    width: 100%;
}

.page2 h1 .design:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* DEVELOP - Code-like, technical effect with glitch animation */
.page2 h1 .develop {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 7vw;
    color: #111;
    position: relative;
    transition: all 0.3s ease;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.page2 h1 .develop::before,
.page2 h1 .develop::after {
    content: 'DEVELOP';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
}

.page2 h1 .develop::before {
    color: #0ff;
    transform: translateX(-2px);
}

.page2 h1 .develop::after {
    color: #f0f;
    transform: translateX(2px);
}

.page2 h1 .develop:hover {
    animation: glitch 0.3s infinite;
    text-shadow: 
        2px 2px 0 #0ff,
        -2px -2px 0 #f0f;
}

.page2 h1 .develop:hover::before,
.page2 h1 .develop:hover::after {
    opacity: 0.5;
}

/* DELIVER - Smooth motion effect suggesting movement/delivery */
.page2 h1 .deliver {
    font-family: "Bungee Shade", serif;
    color: #111;
    position: relative;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes delivering {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
    100% {
        transform: translateX(0);
    }
}

.page2 h1 .deliver::before {
    content: '';
    position: absolute;
    left: -40px;
    opacity: 0;
    transition: all 0.5s ease;
    mix-blend-mode: difference;
}

.page2 h1 .deliver::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #111, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.page2 h1 .deliver:hover {
    animation: delivering 1s ease infinite;
}

.page2 h1 .deliver:hover::before {
    opacity: 1;
    transform: translateX(20px);
}

.page2 h1 .deliver:hover::after {
    transform: scaleX(1);
}

.page2-container {
    height: 65vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8vw;
    margin-top: 5vh;
}

.page2-left {
    width: 50%;
    position: relative;
}

.page2-right {
    width: 35%;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.page2-left h2 {
    font-size: 3vw;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.page2-left h2 .highlight {
    color: #007bff;
    position: relative;
    display: inline-block;
}

.page2-left h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.page2-left h2 .highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.page2-right p {
    margin-top: 1vh;
    font-size: 1.1vw;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
}

.cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, #007bff, #00d2ff);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 3vh;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Add responsive design */
@media (max-width: 768px) {
    .page2-container {
        flex-direction: column;
        height: auto;
        padding: 5vh 5vw;
        gap: 5vh;
    }

    .page2-left, .page2-right {
        width: 100%;
    }

    .page2-left h2 {
        font-size: 6vw;
    }

    .page2-right p {
        font-size: 16px;
    }

    .page2 h1 {
        font-size: 8vw;
        margin-left: 5vh;
    }
}

.page3 {
    min-height: 100vh;
    padding: 5vh 10vw;
    position: relative;
    z-index: 9;
}

.page3 h1 {
    font-size: 4vw;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5vh;
    color: #333;
    text-transform: uppercase;
    position: relative;
    perspective: 1000px;
}

.page3 h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    animation: lineGrow 0.8s ease forwards;
    animation-delay: 1s;
}

.page3 h1 .letter {
    display: inline-block;
    transform-origin: 50% 100%;
    cursor: default;
    transition: color 0.3s ease;
}

@keyframes lineGrow {
    to {
        width: 100px;
    }
}

/* Optional: Add a subtle text shadow for depth */
.page3 h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Optional: Add responsive adjustments */
@media (max-width: 768px) {
    .page3 h1 {
        font-size: 8vw;
    }
    
    .page3 h1::after {
        height: 2px;
    }
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    background: #000;
    will-change: transform;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.work-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.static-title {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    margin: 0;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.work-item:hover .static-title {
    opacity: 0;
    transform: translateY(-20px);
}

.work-item-content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.95) 50%,
        rgba(0, 0, 0, 0.98) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    z-index: 1;
}

.work-item:hover .work-item-content {
    opacity: 1;
}

.work-item h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.work-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    margin-bottom: 1rem;
}

.category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.work-item:hover h2,
.work-item:hover .work-description,
.work-item:hover .category {
    transform: translateY(0);
    opacity: 1;
}

.page3-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5vw;
}

@media (max-width: 768px) {
    .page3-grid {
        grid-template-columns: 1fr;
    }
}

.page4 {
    margin-top: 30vh;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 9;
}

.page4{
    min-height: 100vh;
    width: 100%;
    z-index: 9;
    position: relative;
    padding: 170px 100px;
}
.elem{
    /* background-color: salmon; */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.elem img{
    position: absolute;
    opacity: 0;
    transition: all ease-out 0.5s;
    transform: translateY(10%) rotate(2deg);
}
.elem img:nth-child(1){
    left: 2%;
}
.elem img:nth-child(3){
    right: 5%;
}
.text-div{
    height: 18.6vh;
    position: relative;
    z-index: 9;
    overflow: hidden;
}
.elem h1{
    font-size: 7.5vw;
    font-weight: 600;
    transition: all ease-out 0.5s;
}

.elem:hover h1{
    transform: translateY(-100%);
    color: #EDBFFF;
}
.elem:hover img{
    opacity: 1;
    transform: translateY(0%) rotate(0deg);

}

.page5 {
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 9;
    padding: 140px 100px;
}

.page5 h2 {
    font-size: 4vw;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 50px;
}

.box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 20px;
    border-top: 2px solid #dadada;
    transition: 0.3s ease;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.box:nth-last-child(1) {
    border-bottom: 2px solid #dadada;
}

.box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, orange, darkorange);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.box:hover {
    padding-left: 40px;
    color: #111 !important;
}

.box:hover:before {
    opacity: 1;
}

.box:hover * {
    color: #111 !important;
    background: transparent;
}

/* Cursor content container */
.cursor-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    overflow: hidden;
}

/* Description text styling with animation */
.cursor-text {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    
    /* Animation properties */
    animation: textReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Keyframes for text animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.page6 {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.contact-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-container:hover {
    transform: translateY(-5px);
}

.title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.input-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: 0.3s ease all;
    pointer-events: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.input-group.message label {
    top: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s ease all;
}

.input-group textarea {
    height: 150px;
    resize: none;
    line-height: 1.5;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #2575fc;
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.2);
    outline: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 10px;
    padding: 0 5px;
    font-size: 0.8rem;
    color: #2575fc;
    background: rgba(22, 33, 62, 0.95);
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(37, 117, 252, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(90deg, #7b21db, #3585fc);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: all 0.5s ease;
}

.submit-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: 0s;
}

.hidden {
    display: none;
}

.notification {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    height: 0;
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

.success-message {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.error-message {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 117, 252, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 117, 252, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 117, 252, 0);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}




/* Footer container with minimum height and spacing */
.footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 4rem 0 2rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    min-height: 25vh; /* Ensures footer is visible */
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap; /* Allows better content wrapping on smaller screens */
}

.footer-left, .footer-right {
    flex: 1;
}

.contact-info {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}
  
  .contact-info a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-info a:hover {
    color: #fff;
  }
  
  .social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-link {
    color: #888;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #fff;
    transform: scale(1.05); /* Slight scaling effect */
}
/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #fff;
    color: #0a0a0a;
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: none; /* Initially hidden */
    z-index: 10;
}

.scroll-to-top:hover {
    background-color: #f0f0f0;
    transform: scale(1.1); /* Slightly scale on hover */
}

  
  .social-link:hover::after {
    width: 100%;
  }
  
  .footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    position: relative;
  }
  
  .footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  }
  
  .copyright {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }
  
  .copyright span {
    display: inline-block;
    margin: 0 0.5rem;
  }

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-right {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

.space {
    background-color: #0a0a0a;
    color: #fff;
    padding: 4rem 0 2rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    min-height: 35vh; /* Ensures footer is visible */
    overflow: hidden;
}


#loader {
    height: 100%;
    width: 100%;
    background-color: #000;
    position: fixed;
    z-index: 999;
    top: 0;
    transition: all ease 0.7s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader h1 {
    font-size: 4vw;
    color: transparent;
    background: linear-gradient(to right, orange, orangered);
    background-clip: text;
    position: absolute;
    opacity: 0;
    animation-name: load;
    animation-duration: 1s;
    animation-delay: 1s;
    animation-timing-function: linear;
}

#loader h1:nth-child(2){
    animation-delay: 2s;
}
#loader h1:nth-child(3){
    animation-delay: 3s;
}

@keyframes load {
    0%{
        opacity: 0;
    }
    10%{
        opacity: 1;
    }
    90%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@media (max-width:600px) {
    #loader h1{
        font-size: 9vw;
      
    }
}


/* Mobile Responsiveness */
@media (max-width: 480px) {
    /* Navigation */
    #nav {
        padding: 0 15px;
        height: 60px;
    }
    
    #nav img {
        height: 35px;
    }
    
    #nav-part2 {
        gap: 12px;
    }
    
    #nav-part2 h4 {
        font-size: 12px;
    }
    
    /* Page 1 */
    .page1 h1 {
        font-size: 10vw;
        margin-top: 25vw;
        margin-left: 4vw;
    }
    
    .page1 h2 {
        font-size: 12vw;
        margin-left: 15vw;
        margin-top: 25vw;
    }
    
    .page1 video {
        width: 90%;
    }
    
    /* Page 2 */
    .page2 {
        padding: 5vh 2vh;
    }
    
    .page2 h1 {
        font-size: 9vw;
        text-align: center;
        margin-left: 0;
    }
    
    .page2 h1 .design {
        font-size: 10vw;
    }
    
    .page2 h1 .develop {
        font-size: 11vw;
    }
    
    .page2-container {
        flex-direction: column;
        padding: 0 4vw;
        height: auto;
        gap: 4vh;
    }
    
    .page2-left, .page2-right {
        width: 100%;
    }
    
    .page2-left h2 {
        font-size: 6vw;
        text-align: center;
    }
    
    .page2-right p {
        font-size: 16px;
    }
    
    /* Page 3 */
    .page3 {
        padding: 5vh 5vw;
    }
    
    .page3 h1 {
        font-size: 10vw;
    }
    
    .page3-grid {
        grid-template-columns: 1fr;
        gap: 6vh;
    }
    
    .work-item h2 {
        font-size: 2rem;
    }
    
    /* Page 4 */
    .page4 {
        padding: 80px 20px;
        margin-top: 15vh;
    }
    
    .elem h1 {
        font-size: 9vw;
    }
    
    .text-div {
        height: 12vh;
    }
    
    .elem img {
        width: 60px;
        height: auto;
    }
    
    /* Page 5 */
    .page5 {
        padding: 80px 20px;
    }
    
    .page5 h2 {
        font-size: an 8vw;
        margin-bottom: 30px;
    }
    
    .box {
        height: 80px;
        padding: 0 10px;
    }
    
    .box h3 {
        font-size: 16px;
    }
    
    /* Page 6 - Contact Form */
    .contact-container {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .input-group input,
    .input-group textarea {
        padding: 14px 16px;
    }
    
    .input-group textarea {
        height: 120px;
    }
    
    .submit-btn {
        padding: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .social-links {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
    }
    
    /* Cursor */
    .cursor {
        display: none; /* Hide custom cursor on mobile devices */
    }
    
    /* Fix touch interactions */
    * {
        cursor: auto !important; /* Override the no-cursor setting for mobile */
    }
    
    /* Loader */
    #loader h1 {
        font-size: 9vw;
    }
    
    /* Fix user-select for mobile forms */
    input, textarea, button {
        user-select: auto;
    }
}

/* Small tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .page1 h1 {
        font-size: 9vw;
        margin-top: 20vw;
    }
    
    .page1 h2 {
        font-size: 10vw;
        margin-top: 15vw;
    }
    
    .page1 video {
        width: 80%;
    }
    
    .page2 h1 {
        font-size: 7vw;
        text-align: center;
        margin-left: 0;
    }
    
    .elem h1 {
        font-size: 8vw;
    }
    
    .text-div {
        height: 15vh;
    }
    
    .contact-container {
        width: 90%;
    }
}

/* Additional Adjustments for Elements */
@media (max-width: 480px) {
    /* Enhance readability and interaction on mobile */
    .work-item-content {
        padding: 1.5rem;
    }
    
    .work-description {
        font-size: 0.8rem;
    }
    
    /* Make hover states work with touch */
    .work-item:active .work-item-content,
    .work-item:focus .work-item-content {
        opacity: 1;
    }
    
    .work-item:active h2,
    .work-item:active .work-description,
    .work-item:active .category,
    .work-item:focus h2,
    .work-item:focus .work-description,
    .work-item:focus .category {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Make box interactions work better on mobile */
    .box:active {
        padding-left: 30px;
    }
    
    .box:active:before {
        opacity: 1;
    }
    
    /* Fix scroll behavior */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make hover animations work on touch */
    .cta-button:active {
        transform: translateY(-2px);
    }
    
    .submit-btn:active {
        transform: scale(0.98);
    }
}

/* Mobile Blocker - Hidden by default on desktop */
#mobile-blocker {
    display: none;
}

/* Mobile/Tablet styles */
@media (max-width: 1024px) {
    /* Hide main content */
    .main {
        display: none !important;
    }

    /* Show and style the blocker */
    #mobile-blocker {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #0F0D0D 0%, #1a1818 100%);
        z-index: 9999;
        padding: 20px;
        box-sizing: border-box;
    }

    .blocker-content {
        text-align: center;
        max-width: 90%;
        max-width: min(90%, 450px);
        animation: fadeInUp 0.8s ease-out;
    }

    .laptop-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
        animation: bounce 2s infinite;
    }

    #mobile-blocker h2 {
        font-size: 1.8rem;
        color: #ffffff;
        margin-bottom: 0.5rem;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .greeting {
        font-size: 1.1rem;
        color: #e0e0e0;
        margin-bottom: 1.5rem;
        font-weight: 400;
    }

    .main-message {
        font-size: 1rem;
        color: #cccccc;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .call-to-action {
        font-size: 1rem;
        color: #ffffff;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .highlight {
        color: #4CAF50;
        font-weight: 600;
    }

    .footer-note {
        font-size: 0.9rem;
        color: #999999;
        font-style: italic;
        margin-top: 1rem;
        text-align: center;
    }

    .engineer-title {
        display: block;
        color: #999999;
        text-align: center;
        margin-top: 0.5rem;
        font-style: italic;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-10px);
        }
        60% {
            transform: translateY(-5px);
        }
    }
}

/* Smaller mobile phones */
@media (max-width: 480px) {
    #mobile-blocker h2 {
        font-size: 1.5rem;
    }

    .main-message {
        font-size: 0.95rem;
    }

    .call-to-action {
        font-size: 0.95rem;
    }
}