* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,body{
    overflow-x: hidden;
}
body {
    background-color: aliceblue;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

/* --- Container 1: Header/Nav --- */
.container-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 0;
    min-height: 80vh;
}

.logo-container {
    width: 100%;
    text-align: center;
    position: fixed;
    background-color: rgb(255, 255, 255);
    top: 0; /* Top se shuru karein */
    height: 80px;
    z-index: 1000;
}

.logo {
    height: 120px;
    width: 120px;
    margin-top: -20px;
}

.sidebar-text h5 {
    position: fixed;
    left: 5.5rem;
    top: 52%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: medium;
    letter-spacing: -1px;
    word-spacing: 10px;
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bolder !important;
    -webkit-text-fill-color: transparent;
    margin-left: -6rem;
    z-index: 1000;
}

.right-sidebar {
    position: fixed;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 1000;
}

.line {
    height: 3px;
    background-color: gray;
    border-radius: 5px;
    width: 30px;
    transition: all 0.3s ease-in-out;
}

.line-active {
    width: 45px;
    background-color: rgb(12, 167, 250);
}

.header {
    margin-top: 4rem;
    background-color: white;
    margin-inline: 5rem;
    height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    margin-bottom: 2rem;
    width: calc(100% - 10rem); /* Responsive width */
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    justify-content: center;
    
}

.navbar ul li {
    display: inline-block;
    margin-inline: 4rem;
    padding-block: 1rem;
    @media (min-width:700px) and (max-width:850px) {
        margin-inline: 2rem;
    }
      @media (min-width:600px) and (max-width:700px) {
        margin-inline: 1rem;
    }
     @media (min-width:450px) and (max-width:600px) {
        margin-inline: 0.5rem;
    }
         @media  (max-width:450px) {
        margin-inline: 1rem;
        #market{
         position: relative;
         top: 30px;
         right: 150px;
        }
         #design{
         position: relative;
         left: 70px;
        }
         #develop{
         position: relative;
         left: 70px;
        }
        #mainText{
            font-size: 10px;
        }
    }
}
/* ============================================
   RESPONSIVE STYLES FOR MAIN CONTENT ONLY
   ============================================ */


.container-2-left h1,
.container-3-right h1,
.container-4-left h1 {
background: linear-gradient(to bottom, #7db1f1, #00E3FF);
   
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}

.container-2-right img,
.container-3-left img,
.container-4-right img {
    max-width: 90%; /* Image ko responsive banaya */
    height: auto;
    width: 400px; /* Original width set */
}

.container-3-left img {
    margin-left: 5rem; /* Original margin maintain */
}


/* --- Button Style --- */
.container-4 .button {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.container-4 button{
    background-color:gray !important;
    color:#ffffff !important;
    transition: all 0.4s ease;
    border: none;
}
.container-4 button:hover{
    background-color: #37dcf5 !important;
    border: 1px solid #0198ac !important;
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.2) !important;
    transform: translateY(-10px);
}
.container-4 button a{
    text-decoration: none;
    color:#ffffff;
}

/* --- Footer --- */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgb(61, 61, 61) !important;
    z-index: 999;
    background-color: rgb(255, 255, 255) !important;
    height: 50px;
}
    .footer-left i, .footer-right i {
            margin: 0 10px;
            cursor: pointer;
            transition: color 0.3s ease;
            
        }







/* index2.html content */




.html-2-container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 3rem;
    margin-top: 2rem;
    background-color: rgb(242, 242, 247);
}

.header-left,
.header-right {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.header-left h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}

.header-left a:hover {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.header-left i:hover {
    font-size: large;

    transition: font-size 0.3s ease-in-out;

}

.html-2-container-2,
.html-2-container-3,
.html-2-container-4,
.html-2-container-5,
.html-2-container-6,
.html-2-container-7 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    padding-block: 3rem;
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}

.html-2-container-3,
.html-2-container-4,
.html-2-container-5,
.html-2-container-6,
.html-2-container-7 {
    padding-right: 4rem;
}

.html-2-container-7 {
    margin-bottom: 8rem;
}


/* index3.html content */
.html-3-container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 3rem;

    margin-top: 2rem;
    background-color: rgb(242, 242, 247);
}

.html-3-header-left,
.html-3-header-right {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.html-3-header-left h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}

.html-3-header-left a:hover {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.html-3-header-left i:hover {
    font-size: large;

    transition: font-size 0.3s ease-in-out;

}

.html-2-container-2 ul li {
    list-style: none;
    margin-left: -2rem;

}

.html-3-container-2 {
    padding-right: 4rem;
}

.html-3-header-right h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}



.html-3-container-2,
.html-3-container-3 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    padding-block: 3rem;
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}




/* index4.html content */

.html-4-container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 3rem;
    margin-top: 2rem;
    background-color: rgb(242, 242, 247);
}

.html-4-header-left,
.html-4-header-right {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.html-4-header-left h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}

.html-4-header-left a:hover {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.html-4-header-left i:hover {
    font-size: large;

    transition: font-size 0.3s ease-in-out;

}

.html-4-container-2,
.html-4-container-3,
.html-4-container-4 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    padding-block: 3rem;
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}


/* index6.html content */
.html-6-container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 3rem;
    margin-top: 2rem;
    background-color: rgb(242, 242, 247);
}

.html-6-header-left,
.header-right {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.html-6-header-left h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}

.html-6-header-left a:hover {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.html-6-header-left i:hover {
    font-size: large;

    transition: font-size 0.3s ease-in-out;

}

.section-title {
    text-align: center;
    font-size: 2.5em;

    margin-bottom: 60px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;

    margin: 10px auto 0;
}

.service-card-grid {

    justify-content: center;
}

.service-card {
    background-color: #ffffff;
    border: none;
    padding: 30px;
    border-radius: 20px;
    
   
    height: 100%;
    /* Ensures cards in a row are the same height */
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 10px #555;
}

.service-icon {

    margin-bottom: 15px;
}

.service-icon:hover,
.service-card h3:hover {
   
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.service-icon:hover {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.5em;

    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 1em;

    margin-bottom: 25px;
}

.html-6-icon h4{
background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.html-6-icon i:hover {
  
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.html-6-icon i:hover {
    transform: scale(1.2);
}

.html-6-container-2,
.html-6-container-3 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    padding-block: 3rem;
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}

.html-6-container-4 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}



/* index5.html content */
.html-5-container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 2rem;
    margin-top: 2.5rem;
    background-color: rgb(242, 242, 247);
}

.html-5-container-1-left,
.html-5-container-1-right {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.html-5-container-1-left h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}

.html-5-container-1-left a:hover {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.html-5-container-1-left i:hover {
    font-size: large;

    transition: font-size 0.3s ease-in-out;

}

.html-5-container-2,
.html-5-container-3 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    padding-block: 3rem;
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}

.html-5-container-2 {
    padding-right: 4rem;
}

.html-5-container-2-icon {
    color: rgb(61, 61, 61);
}

.html-5-container-2-icon:hover {
  
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out !important;
}

.html-5-container-2-icon:hover {
    transform: scale(1.2);
}
.hover-scale:hover{
 transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(99, 100, 100, 0.2);
}


.text-ronix-cyan {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.html-5-container-2 h5 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
/* Particle Text Container */
.particle-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* White VOLTIX text */
/* Particle Text Container */
.particle-wrapper {
    position: relative;
    width: 100%;
    height: auto; /* Changed from 200px */
    min-height: 150px; /* Add min-height */
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* White VOLTIX text - RESPONSIVE FIX */
#mainText {
    color: rgba(0, 76, 255, 0.649) !important;
    font-size: clamp(3.5rem, 15vw, 10rem) !important; /* Responsive font size */
    font-weight: 900;
    text-align: center;
    margin: 0;
    z-index: 1;
    position: relative;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1; /* Better line height */
    word-wrap: break-word; /* Prevent overflow */
}

/* UPDATE THESE MEDIA QUERIES IN YOUR EXISTING CSS */

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .header-content h1 {
        font-size: clamp(4rem, 10vw, 6rem) !important;
        text-align: center;
    }
}

/* Mobile screens (577px to 767px) */
@media (max-width: 767px) and (min-width: 577px) {
    .header-content h1 {
        font-size: clamp(3.5rem, 12vw, 5rem) !important;
        text-align: center;
    }
}

/* Small mobile screens (up to 576px) */
@media (max-width: 576px) {
    .header-content h1 {
        font-size: clamp(2.8rem, 10vw, 3.5rem) !important;
        text-align: center;
        line-height: 1.1;
    }
    
    /* Also update the particle wrapper for mobile */
    .particle-wrapper {
        min-height: 120px;
        margin-bottom: 1.5rem;
    }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
    .header-content h1 {
        font-size: clamp(2.2rem, 8vw, 2.8rem) !important;
    }
    
    .particle-wrapper {
        min-height: 100px;
        margin-bottom: 1rem;
    }
}

/* Also update the .header-content h1 selector if it exists elsewhere */
.header-content h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: clamp(4rem, 15vw, 10rem) !important; /* Add this line */
    font-weight: 900;
}

/* Individual particle */
.particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: black;
    border-radius: 50%;
    pointer-events: none;
}
.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background-color: #00E3FF;
    border: 4px solid black;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    z-index: 20;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 2px;
    background-color: #495057;
    /* Gray 700 equivalent */
}
/* index7.html content */
/* Color Variables */

.html-7-container-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 2rem;
    margin-top: 2.5rem;
    background-color: rgb(242, 242, 247);
}

.html-7-container-1-left,
.html-7-container-1-right {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.html-7-container-1-left h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bolder;
    font-size: 4rem;
}



.html-7-container-1-left i:hover {
    font-size: large;

    transition: font-size 0.3s ease-in-out;

}


.html-7-container-2,
.html-7-container-3,.html-7-container-3,.html-7-container-4 {
    margin-inline: 5rem;
    color: rgb(61, 61, 61);
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
}
.html-7-container-4{
    margin-bottom: 4rem;
}

.html-7-container-3{
   padding-inline: 1rem;
}


 h1, h2, h3, h5 {
     background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.custom-card {
    background-color: var(--ronix-dark);
    border: 1px solid rgba(0, 255, 153, 0.2); /* Subtle accent border */
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-card i{
    color:rgb(61, 61, 61);
}
.custom-card i:hover {
    
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}
.custom-card i:hover{
    transform: scale(1.1);
}

.custom-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 15px 30px #555;
}

.html-7-button,.custom-btn-glow-large{
    background-color:gray !important;
    color:#ffffff !important;
       transition: all 0.4s ease;
}
.html-7-button:hover,.custom-btn-glow-large:hover{
    background-color: #22dbf8 !important;
    border: 1px solid #0198ac !important;
 box-shadow: 0 15px 30px #555 !important;
transform: translateY(-10px);
}
/* Custom Styles for the Process Section */



/* Styling for the individual step container */
.process-step {
    padding: 20px;
    border-radius: 8px;
}

/* Styling for the large number (01, 02, etc.) */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Makes it a circle */
    background-color:#555; /* Primary blue color */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Styling for the arrow/connector section */
.process-connector {
    color: #ced4da; /* Light gray for the arrows */
}




/* index9.html content */


.html-9-container-2
{
    display: flex;
    flex-direction: column; /* Content stacks vertically */
    justify-content: center; /* Vertically center content */
    align-items: flex-start; /* Align content to the left */
    text-align: left; /* Ensure text alignment is left */
     margin-inline: 5rem;
    color: rgb(61, 61, 61);
    padding-left: 4rem;
    padding-block: 4rem;
    background-color: rgb(242, 242, 247);

}
.html-9-tagline
{
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.html-9-headline
{
    font-size: 3.5em; /* Large headline */
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0; /* Remove default margins and add bottom margin */
    line-height: 1.2;
}
.html-9-description
{
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px; /* Limit width for readability */
}
.html-9-button-1,.html-9-button-2
{
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.html-9-button-1{
   background-color: #47dff3;
    color: #ffffff;
    border: 1px solid #007bff;
}
.html-9-button-1:hover
{
    background-color: #38b6f6; /* Darker blue on hover */
    border-color: #0056b3;
}
.html-9-button-2
{
    background-color: transparent;
    color: #32c3f4; /* Blue text color for secondary button */
    border: 1px solid #3abbf2; /* Blue border */
}
.html-9-container-3{
 margin-inline: 5rem;
    color: rgb(61, 61, 61);
    margin-top: 2rem;
    padding-left: 4rem;
    background-color: rgb(242, 242, 247);
    display: flex;
    flex-direction: column;
    padding-block:3rem;
    text-align: center;
}
.html-9-container-4 {
     margin-inline: 5rem;
    padding-block: 2rem;
    margin-top: 2.5rem;
    background-color: rgb(242, 242, 247);
padding-inline: 2rem;
margin-bottom: 4rem;
}

/* Container and Layout Styling */
.html-9-container-4 {
    margin-inline: 5rem;
    padding-block: 2rem;
    margin-top: 2.5rem;
    background-color: rgb(242, 242, 247);
    padding-inline: 2rem;
    margin-bottom: 4rem;
}

.html-9-container-flex {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; /* Vertically align image and grid */
}

/* Image Column Styling */
.html-9-container-4-image {
    flex: 1;
    max-width: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature Grid Styling */
.html-9-container-4-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 50%;
}

/* Feature Card Base Styling (Added transition for all cards) */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition for smooth hover effect */
    cursor: default; /* Change cursor to indicate interactiveness */
}
.container-2-left a:hover,
.container-3-right a:hover,
.container-4-left a:hover {
    all: unset !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
}
/* Large Card Styling (Added padding for spacing) */
.feature-card.large-card {
    background-color: #fbfdff; /* Light blue background */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px; /* Added padding here */
}

/* Large Card Hover Effect */
.feature-card.large-card:hover {
    transform: translateY(-5px); /* Lift card up slightly */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Enhance shadow */
}

.large-card .card-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #30f4f8;
    margin-top: 0;
    margin-bottom: 5px;
}

.large-card .card-detail {
    font-size: 0.95em;
    color: #555;
    margin: 0;
}

/* Small Card Row Styling */
.small-cards-row {
    display: flex;
    gap: 20px;
}

/* Small Card Styling */
.feature-card.small-card {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f8f8; /* Very light background, almost white */
    border: 1px solid #dee2e6; /* Subtle border */
}

/* Small Card Hover Effect */
.feature-card.small-card:hover {
    transform: translateY(-3px); /* Lift card up slightly */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08); /* Enhance shadow */
}

.small-card .card-title-small {
    font-size: 1em;
    font-weight: 600;
    color: #38c5f4;
    margin: 0;
}

.small-card .card-detail-small {
    font-size: 0.85em;
    color: #6c757d;
    margin: 5px 0 0 0;
}


.html-9-container-5{
     margin-inline: 5rem;
    color: rgb(61, 61, 61);
    margin-top: 2rem;
padding-top: 2rem;
padding-inline: 1rem;
    background-color: rgb(242, 242, 247);
    margin-bottom: 5rem;
}



.portfolio-section {
    padding: 40px 20px;
    text-align: center;
}


.portfolio-grid {
    display: flex; /* Enable Flexbox */
    flex-wrap: wrap; /* Allow items to wrap to the next line (creating the second row) */
    justify-content: space-between; /* Distribute items evenly */
    gap: 20px; /* Space between rows (for both row and column gaps) */
    max-width: 1200px;
    margin: 0 auto;
}


.portfolio-item {
    /* Calculated width for 3 items with 20px total space in between */
    /* calc((100% - (2 * 20px)) / 3) ensures exactly 3 items fit per line */
    flex: 0 0 calc(33.333% - 13.333px); /* Defines item width */ 
    
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    margin-bottom: 20px; /* Explicit margin to ensure gap between rows */
}


.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    /* Apply a smooth transition to the image for transform and opacity */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    opacity: 0; 
    transition: opacity 0.4s ease-in-out;
}


.portfolio-item:hover img {

    transform: scale(1.05); 
    opacity: 0.8;
}

.portfolio-item:hover .overlay {

    opacity: 1; 
}




.html-9-container-6 {
        margin-inline: 5rem;
    padding-block: 2rem;
    margin-top: 2.5rem;
    background-color: rgb(242, 242, 247);
padding-inline: 2rem;
margin-bottom: 4rem;
}

.technologies-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .tagline {
    font-size: 0.9em;
    font-weight: 600;
color:#555;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 2.8em;
    font-weight: 700;
    color: #343a40; /* Dark text */
    margin: 0;
}


.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 4 columns for large screens */
    gap: 25px;
}

.tech-card {
    background-color: #ffffff; /* White card background */
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.tech-icon {
    font-size: 3.5em; /* Large icon size */
 color:#555;
    margin-bottom: 15px;
}
.tech-icon:hover{
     background: linear-gradient(to bottom, #7db1f1, #00E3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.tech-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.main-navbar{
    display: flex;
    z-index: 1000;
    position: fixed;
    background-color: rgb(255, 255, 255);
    align-items: center;
    width: 100%;
    list-style: none;
    padding: 0;
    height:12vh;
    padding-top:15px;
    margin-top: -0.6rem;
}

.nav-links-desktop {
    display: flex; /* Display on desktop */
    align-items: center;
}

.navbar-toggler {
    display: none; 
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #38c5f4;
    margin-right: 1rem;
}

    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
          
            height: 100vh;
            display: grid;
            grid-template-rows: 60px 1fr 60px;
            grid-template-columns: 60px 1fr 60px;
            font-family: 'Montserrat', sans-serif;
            overflow: hidden;
        }

        /* TOP BAR */
        #nav {
            grid-column: 1 / 4;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 10;
        }
        .voltix-logo {
            height: 150px;
        }

        /* LEFT BAR */
        .left-bar {
            grid-row: 2 / 3;
            grid-column: 1 / 2;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 60px;
            padding: 20px 0;
            z-index: 11;
        }
        
        @media (max-width: 500px) {
            body {
                grid-template-columns: 25px 1fr 25px;
            }
            .right-bar {
                writing-mode: vertical-rl;
                transform: rotate(180deg);
                font-size: 11px;
                text-align: center;
            }
        }

        /* RIGHT BAR */
        .right-bar {
            grid-row: 2 / 3;
            grid-column: 3 / 4;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            z-index: 11;
        }

        /* BOTTOM BAR - UPDATED FOR MOBILE */
        .bottom-bar {
            grid-column: 1 / 4;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            z-index: 11;
            padding: 10px 20px;
        }

        /* MAIN CONTENT */
        .main-content {
            grid-row: 2 / 3;
            grid-column: 2 / 3;
            padding: 0px;
            overflow-y: auto;
            background: rgb(240, 242, 244);
            z-index: 1;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .contact {
            top: 20px;
        }

        /* LINKS */
        .contact, .portfolio {
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            color: black;
            text-decoration: none;
            font-weight: 800;
            font-size: 22px;
            position: relative;
            display: block;
            margin-left: 105%;
            cursor: pointer;
        }

        .contact::before, .portfolio::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 3px;
            height: 0;
            background: #000000;
            transform: translateX(-50%);
            transform-origin: bottom center;
            transition: height 0.5s ease-out;
            z-index: 1;
        }

        .contact:hover::before, .contact.active::before { height: 113px; }
        .portfolio:hover::before, .portfolio.active::before { height: 138px; }

        .portfolio { position: relative; bottom: 20px; }
        
        /* DESKTOP FOOTER STYLES - SHOW ON DESKTOP ONLY */
        .desktop-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        .social-left,
        .social-right {
            display: flex;
            gap: 20px;
            flex-shrink: 0;
        }

        .social-left a,
        .social-right a {
            color: #999;
            transition: color 0.3s ease;
        }

        .social-left a:hover,
        .social-right a:hover {
            color: #000;
        }

        .footer-content {
            color: #666;
            margin: 0;
            font-size: 11px;
            flex-shrink: 0;
        }

        /* MOBILE FOOTER STYLES - HIDDEN ON DESKTOP */
        .mobile-footer-grid {
            display: none; /* Hidden by default on desktop */
        }

        /* MOBILE FOOTER STYLES */
        @media (max-width: 768px) {
            /* Hide desktop footer on mobile */
            .desktop-footer {
                display: none;
            }

            /* Show mobile footer on mobile */
            .mobile-footer-grid {
                display: flex;
                flex-direction: column;
                gap: 12px;
                width: 100%;
            }

            /* Make footer fixed at bottom on mobile */
            .bottom-bar {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                height: auto;
                padding: 15px 20px;
                display: block;
                background: #fff;
                
                z-index: 1000;
            }

            /* Mobile footer grid layout */
            .footer-row {
                display: grid;
                grid-template-columns: 30px 1fr 30px;
                align-items: center;
                gap: 10px;
                width: 100%;
            }

            .footer-icon-left,
            .footer-icon-right {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 30px;
                height: 30px;
            }

            .footer-text-center {
                text-align: center;
                color: #666;
                font-size: 10px;
                line-height: 1.3;
                padding: 0 5px;
                word-break: break-word;
                white-space: normal;
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 30px;
            }

            /* Adjust main content to accommodate fixed footer */
            body {
                grid-template-rows: 60px 1fr auto;
                padding-bottom: 0;
            }
            
            .main-content {
                margin-bottom: 0;
            }
        }

        /* Adjust for very small screens */
        @media (max-width: 480px) {
            .footer-text-center {
                font-size: 9px;
            }
            
            .bottom-bar {
                padding: 12px 15px;
            }
        }

        /* CONTACT FORM - SLIDE FROM LEFT */
        .contact-form-inline, .portfolio-section {
            position: fixed;
            inset: 0;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: none;
            transform: translateX(-100%);
            transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 5;
            padding: 60px 40px;
            overflow-y: auto;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        .contact-form-inline.show, .portfolio-section.show {
            display: flex;
            transform: translateX(0);
            flex-direction: column;
        }

        /* HEADER */
        .contact-header, .portfolio-header {
            text-align: center;
            flex-shrink: 0;
            height: 240px;
            border-bottom: 25px solid white;
            width: 100%;
        }
        .contact-header h1, .portfolio-header h1 {
            font-size: 50px;
            font-weight: 800;
            color: #000;
            position: relative;
            top: 60px;
        }
        .contact-header p, .portfolio-header p {
            font-size: 18px;
            color: #666;
            font-weight: 400;
            position: relative;
            top: 70px; 
            font-style: italic;
        }

        /* PORTFOLIO COLUMNS */
        .portfolio-columns-row {
            display: flex;
            gap: 0;
            flex: 1;
            align-items: stretch;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            height: 100%;
        }

        .portfolio-projects {
            width: 100%;
            background: #f8f9fa;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 60px 40px;
            overflow-y: auto;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        .projects-inner {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        /* PORTFOLIO SECTION HEADER */
        .portfolio-projects h2 {
            font-size: 48px;
            font-weight: 800;
            color: #000;
            margin-bottom: 50px;
            text-align: center;
        }

        /* PROJECTS LIST */
        .projects-list {
            display: flex;
            flex-direction: column;
            gap: 80px;
            width: 100%;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        /* SINGLE PROJECT STYLING */
        .project-item {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
            padding: 40px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        .project-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }

        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 40px;
            flex-wrap: wrap;
            gap: 20px;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        .project-title-section {
            flex: 1;
            min-width: 300px;
        }

        .project-main-title {
            font-size: 36px;
            font-weight: 800;
            color: #000;
            margin-bottom: 10px;
            line-height: 1.2;
        }

        .project-subtitle {
            font-size: 20px;
            color: #666;
            font-weight: 600;
            font-style: italic;
        }

        .project-links {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .project-link {
            padding: 12px 24px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 800;
            font-size: 16px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .live-demo-link {
            background: #000;
            color: white;
            border: 2px solid #000;
        }

        .live-demo-link:hover {
            background: transparent;
            color: #000;
        }

        /* PROJECT CONTENT SECTIONS */
        .project-content {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            margin-bottom: 40px;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        @media (max-width: 1024px) {
            .project-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }

        .project-section {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 30px;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        .section-title {
            font-size: 24px;
            font-weight: 800;
            color: #000;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid #000;
            display: inline-block;
        }

        .section-content {
            font-size: 16px;
            line-height: 1.6;
            color: #333;
        }

        .section-content ul {
            padding-left: 20px;
            margin-top: 15px;
        }

        .section-content li {
            margin-bottom: 10px;
            position: relative;
        }

        .section-content li:before {
            content: "•";
            color: #000;
            font-weight: bold;
            position: absolute;
            left: -15px;
        }

        /* TECH STACK */
        .tech-stack {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 2px solid #eee;
            overflow-x: hidden; /* REMOVED HORIZONTAL SCROLL */
        }

        .tech-title {
            font-size: 20px;
            font-weight: 800;
            color: #000;
            margin-bottom: 20px;
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .tech-tag {
            background: #f0f0f0;
            color: #333;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
        }

        /* PROJECT THEMES */
        .project-1 {
            border-top: 8px solid #8B4513;
        }

        .project-2 {
            border-top: 8px solid #2C3E50;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .portfolio-section { padding: 40px 20px; }
            .portfolio-header h1 { font-size: 36px; }
            .portfolio-header p { font-size: 14px; bottom: 40px; }
            
            .project-item {
                padding: 25px;
            }
            
            .project-header {
                flex-direction: column;
            }
            
            .project-main-title {
                font-size: 28px;
            }
            
            .project-subtitle {
                font-size: 18px;
            }
            
            .project-links {
                width: 100%;
                justify-content: center;
            }
            
            .section-title {
                font-size: 20px;
            }
            
            .section-content {
                font-size: 15px;
            }
        }

        @media (max-width: 480px) {
            .portfolio-header h1 { font-size: 32px; }
            .portfolio-header { margin-bottom: 40px; }
            
            .project-main-title {
                font-size: 24px;
            }
            
            .project-links {
                flex-direction: column;
                width: 100%;
            }
            
            .project-link {
                width: 100%;
                justify-content: center;
            }
        }

        /* FORM STYLES */
        .contact-columns-row {
            display: flex;
            gap: 0;
            flex: 1;
            align-items: stretch;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            height: 100%;
        }

        .quote-column {
            width: 60%;
            background: #f8f9fa;
            border-right: 25px solid white;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 60px 40px;
        }

        .quote-inner {
            width: 100%;
            max-width: 520px;
            display: flex;
            flex-direction: column;
            align-items: center; 
        }
        .quote-inner form {
            width: 100%;
        }

        .befriend-column {
            width: 40%;
            background: #f8f9fa;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 60px 40px;
        }

        .befriend-inner {
            width: 100%;
            max-width: 420px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center; 
        }

        .quote-inner h2, .befriend-inner h2 {
            font-size: 48px;
            font-weight: 800;
            color: #000;
            margin-bottom: 20px; 
            position: relative;
            display: inline-block;
        }
        .befriend-inner h2 {bottom: 45px;position: relative;}
        .quote-inner h2 {bottom: 15px;position: relative;}
        
        .form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 15px; 
            width: 100%;
        }

        .form-row-last {
            display: flex;
            gap: 10px;
            align-items: flex-end;
            margin-bottom: 15px;
            width: 100%;
        }

        .form-group {
            flex: 1;
            position: relative;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 0 6px; 
            border: none;
            border-bottom: 1.5px solid #ccc;
            background: transparent;
            font-family: inherit;
            font-size: 15px; 
            color: #000;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-bottom: 1px solid blue;
        }

        .form-group input:hover,
        .form-group select:hover,
        .form-group textarea:hover {
            border-bottom: 1px solid blue;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
             color: #999;
             opacity: 1;
        }
/* Override for contact and portfolio headings */
.contact-header h1, 
.portfolio-header h1,
.contact-form-inline h1,
.contact-form-inline h2,
.contact-form-inline h3,
.contact-form-inline h5,
.portfolio-section h1,
.portfolio-section h2,
.portfolio-section h3,
.portfolio-section h5 {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Specific for the main titles */
.contact-header h1, 
.portfolio-header h1 {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* For quote and befriend headings */
.quote-inner h2, 
.befriend-inner h2 {
    background: none !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* For portfolio project titles */
.project-main-title {
    background: none !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

.project-subtitle {
    color: #666 !important;
}
        .form-group select {
            appearance: none;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") no-repeat right center;
            background-size: 10px;
            padding-right: 20px;
            color: #999; 
        }

        .form-group select:valid { 
            color: #000; 
        }

        .form-group textarea {
            min-height: 90px;
            resize: none;
            padding: 10px 0 6px; 
            flex: 3; 
        }
        
        .submit-btn {
            background: transparent;
            color: rgb(118, 118, 242); 
            padding: 10px 0;
            border: none;
            font-weight: 800;
            font-size: 16px; 
            cursor: pointer;
            text-align: left;
            position: relative;
            width: fit-content;
            align-self: auto; 
            margin-top: 0; 
            margin-left: auto;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .submit-btn::after {
            content: '→';
            position: absolute;
            right: -25px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 20px;
            transition: transform 0.3s ease;
        }

        .submit-btn:hover::after {
            transform: translateY(-50%) translateX(4px);
        }

        /* Befriend form styles */
        .befriend-email {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px; 
            width: 100%;
        }

        .befriend-email input {
            flex: 1;
            padding: 10px 0 6px; 
            border: 0px;
            border-bottom: 1.5px solid #ccc;
            background: transparent;
            font-size: 15px; 
            color: #000;
        }

        .befriend-email input:focus {
            outline: none;
            border-bottom: 1px solid blue;
        }

        .befriend-email input:hover {
            border-bottom: 1px solid blue;
        }

        .befriend-email input::placeholder {
             color: #999;
             opacity: 1;
             text-align: left;
        }
        
        .add-me-btn {
            background: transparent;
            color: rgb(118, 118, 242); 
            border: none;
            font-weight: 800;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            text-transform: uppercase;
        }

        .add-me-btn::after {
            content: '↓'; 
            font-size: 16px;
            transition: transform 0.3s ease;
        }

        .add-me-btn:hover::after {
            transform: translateY(4px);
        }

        .resume-text {
            font-size: 20px; 
            color: #cababa; 
            line-height: 1.7;
            margin-top: 40px; 
            font-weight: 400;
            font-style: italic;
        }

        .resume-text a {
            color: #ccc;
            text-decoration: underline;
            font-weight: 600;
        }

        /* CLOSE BUTTON */
        .close-overlay {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #fff;
            border: 1.5px solid #000;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .close-overlay:hover {
            background: #000;
            color: white;
            transform: rotate(90deg);
        }

        /* FORM VALIDATION STYLES */
        .error-message {
            color: #ff3860;
            font-size: 12px;
            margin-top: 4px;
            display: none;
            font-weight: 600;
            transition: opacity 0.3s ease;
        }

        .success-message {
            color: #7cb2cfc9;
            font-size: 12px;
            margin-top: 4px;
            display: none;
            font-weight: 600;
            transition: opacity 0.3s ease;
        }

        .error-message.show,
        .success-message.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .form-group.error input,
        .form-group.error select,
        .form-group.error textarea,
        .befriend-email.error input {
            border-bottom-color: #ff3860;
        }

        .form-group.success input,
        .form-group.success select,
        .form-group.success textarea,
        .befriend-email.success input {
            border-bottom-color: #7cb2cfc9;
        }

        .befriend-email .success-message {
            margin-top: 8px;
            text-align: center;
            width: 100%;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Success notification */
        .form-success-notification {
            position: fixed;
            top: 100px;
            right: 20px;
            background: #7cb2cfc9;
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
            display: none;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            animation: slideIn 0.3s ease;
        }

        .form-success-notification.show {
            display: flex;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @media (max-width: 768px) {
            .main-content { padding: 0; }
            .contact-form-inline { padding: 40px 20px; }
            .contact-header h1 { font-size: 36px; }
            .contact-header p { font-size: 14px; bottom: 40px; }

            .contact-columns-row { flex-direction: column; }
            .quote-column,
            .befriend-column {
                width: 100%;
                border-right: none;
                border-bottom: 25px solid white;
                padding: 50px 20px;
            }
            .befriend-column { border-bottom: none; }

            .quote-inner,
            .befriend-inner {
                max-width: 100%;
                align-items: center;
                text-align: center;
            }
            .form-row, .form-row-last { 
                flex-direction: column; 
                gap: 20px; 
                align-items: center;
            }
            .form-group textarea { flex: auto; }

            .submit-btn { 
                align-self: center; 
                margin: 0;
            }
            .befriend-email { flex-direction: column; align-items: stretch; }
            .add-me-btn { align-self: center; }
            .befriend-email input { text-align: center; }

            .form-success-notification {
                top: 80px;
                right: 10px;
                left: 10px;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .contact-header h1 { font-size: 32px; }
            .contact-header { margin-bottom: 40px; }
        }

        body.form-open .main-content { overflow: hidden !important; }


/* Large screens (1200px and above) - already good */
@media (min-width: 1200px) {
    /* Keep existing desktop styles */
    .html-2-container-1,
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        margin-inline: 5rem;
    }
    
    .header-left h1 {
        font-size: 4rem !important;
    }
}

/* Medium to large screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .html-2-container-1,
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        margin-inline: 4rem !important;
        padding-inline: 3rem !important;
    }
    
    .header-left,
    .header-right {
        padding-left: 3rem !important;
    }
    
    .header-right img {
        width: 450px !important;
        height: 450px !important;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    /* Container 1: Stack header content vertically */
    .html-2-container-1 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-inline: 3rem !important;
        padding-block: 3rem !important;
    }
    
    .header-left,
    .header-right {
        width: 100% !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    .header-left {
        margin-bottom: 2rem !important;
    }
    
    .header-left h1 {
        font-size: 3.5rem !important;
    }
    
    .header-left p:first-of-type {
        font-size: 1.4rem !important;
        margin-top: -0.5rem !important;
    }
    
    .header-right img {
        width: 400px !important;
        height: 400px !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* All other content containers */
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        margin-inline: 3rem !important;
        padding-inline: 3rem !important;
        padding-block: 2.5rem !important;
        margin-top: 2rem !important;
    }
    
    /* Typography adjustments */
    .html-2-container-2 h1,
    .html-2-container-3 h1,
    .html-2-container-4 h1,
    .html-2-container-5 h1,
    .html-2-container-6 h1,
    .html-2-container-7 h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    .html-2-container-2 p,
    .html-2-container-3 p,
    .html-2-container-4 p,
    .html-2-container-5 p,
    .html-2-container-6 p,
    .html-2-container-7 p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        text-align: justify !important;
    }
}

/* Mobile screens (577px to 767px) */
@media (max-width: 767px) {
    .html-2-container-1 {
        margin-inline: 2rem !important;
        padding-block: 2rem !important;
    }
    
    .header-left h1 {
        font-size: 2.8rem !important;
    }
    
    .header-left p:first-of-type {
        font-size: 1.3rem !important;
    }
    
    .header-right img {
        width: 350px !important;
        height: auto !important;
        max-width: 90% !important;
    }
    
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        margin-inline: 2rem !important;
        padding-inline: 2rem !important;
        padding-block: 2rem !important;
        margin-top: 1.5rem !important;
    }
    
    .html-2-container-2 h1,
    .html-2-container-3 h1,
    .html-2-container-4 h1,
    .html-2-container-5 h1,
    .html-2-container-6 h1,
    .html-2-container-7 h1 {
        font-size: 2rem !important;
    }
    
    .html-2-container-2 p,
    .html-2-container-3 p,
    .html-2-container-4 p,
    .html-2-container-5 p,
    .html-2-container-6 p,
    .html-2-container-7 p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }
}

/* Small mobile screens (up to 576px) */
@media (max-width: 576px) {
    /* Container 1 adjustments */
    .html-2-container-1 {
        margin-inline: 1rem !important;
        padding-block: 1.5rem !important;
        margin-top: 1rem !important;
    }
    
    .header-left h1 {
        font-size: 2.2rem !important;
    }
    
    .header-left p:first-of-type {
        font-size: 1.1rem !important;
        margin-top: -0.3rem !important;
    }
    
    .header-left p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-top: -0.5rem !important;
    }
    
    .header-right img {
        width: 280px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* All other containers adjustments */
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        margin-inline: 1rem !important;
        padding-inline: 1.5rem !important;
        padding-block: 1.5rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Fix the last container margin bottom */
    .html-2-container-7 {
        margin-bottom: 2rem !important;
    }
    
    /* Typography for mobile */
    .html-2-container-2 h1,
    .html-2-container-3 h1,
    .html-2-container-4 h1,
    .html-2-container-5 h1,
    .html-2-container-6 h1,
    .html-2-container-7 h1 {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .html-2-container-2 p,
    .html-2-container-3 p,
    .html-2-container-4 p,
    .html-2-container-5 p,
    .html-2-container-6 p,
    .html-2-container-7 p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
        margin-top: -0.5rem !important;
    }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
    .html-2-container-1 {
        margin-inline: 0.75rem !important;
        padding-block: 1rem !important;
    }
    
    .header-left h1 {
        font-size: 1.8rem !important;
    }
    
    .header-left p:first-of-type {
        font-size: 1rem !important;
    }
    
    .header-right img {
        width: 240px !important;
    }
    
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        margin-inline: 0.75rem !important;
        padding-inline: 1.25rem !important;
        padding-block: 1.25rem !important;
    }
    
    .html-2-container-2 h1,
    .html-2-container-3 h1,
    .html-2-container-4 h1,
    .html-2-container-5 h1,
    .html-2-container-6 h1,
    .html-2-container-7 h1 {
        font-size: 1.5rem !important;
    }
    
    .html-2-container-2 p,
    .html-2-container-3 p,
    .html-2-container-4 p,
    .html-2-container-5 p,
    .html-2-container-6 p,
    .html-2-container-7 p {
        font-size: 0.85rem !important;
    }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .html-2-container-1 {
        flex-direction: row !important;
        align-items: center !important;
        padding-block: 1rem !important;
    }
    
    .header-left {
        width: 50% !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    .header-right {
        width: 50% !important;
        text-align: right !important;
    }
    
    .header-left h1 {
        font-size: 2rem !important;
    }
    
    .header-right img {
        width: 200px !important;
        height: auto !important;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    .main-content {
        overflow-x: hidden !important;
    }
    
    .html-2-container-1,
    .html-2-container-2,
    .html-2-container-3,
    .html-2-container-4,
    .html-2-container-5,
    .html-2-container-6,
    .html-2-container-7 {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    
 
}
/* ============================================
   RESPONSIVE STYLES FOR DEVELOP PAGE (html-3)
   ============================================ */

/* Large screens (1200px and above) - keep desktop layout */
@media (min-width: 1200px) {
    .html-3-container-1,
    .html-3-container-2,
    .html-3-container-3 {
        margin-inline: 5rem;
    }
    
    .html-3-header-left h1 {
        font-size: 4rem;
    }
}

/* Medium to large screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .html-3-container-1,
    .html-3-container-2,
    .html-3-container-3 {
        margin-inline: 4rem !important;
        padding-inline: 3rem !important;
    }
    
    .html-3-header-left,
    .html-3-header-right {
        padding-left: 3rem !important;
    }
    
    .html-3-header-right img {
        width: 350px !important;
        height: 350px !important;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    /* Container 1: Stack header content vertically */
    .html-3-container-1 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-inline: 3rem !important;
        padding-block: 3rem !important;
    }
    
    .html-3-header-left,
    .html-3-header-right {
        width: 100% !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    .html-3-header-left {
        margin-bottom: 2rem !important;
    }
    
    .html-3-header-left h1 {
        font-size: 3.5rem !important;
    }
    
    .html-3-header-left p:first-of-type {
        font-size: 1.4rem !important;
        margin-top: -0.5rem !important;
    }
    
    .html-3-header-right img {
        width: 350px !important;
        height: 350px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Container 2 (with list) */
    .html-3-container-2 {
        margin-inline: 3rem !important;
        padding-inline: 3rem !important;
        padding-block: 2.5rem !important;
        margin-top: 2rem !important;
    }
    
    /* Container 3 */
    .html-3-container-3 {
        margin-inline: 3rem !important;
        padding-inline: 3rem !important;
        padding-block: 2.5rem !important;
        margin-top: 2rem !important;
    }
    
    /* Typography adjustments */
    .html-3-container-2 h1,
    .html-3-container-3 h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    .html-3-container-2 p,
    .html-3-container-3 p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    
    /* List adjustments */
    .html-3-container-2 ul {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding-left: 1.5rem !important;
    }
    
    .html-3-container-2 li {
        margin-bottom: 0.5rem !important;
        line-height: 1.5 !important;
    }
}

/* Mobile screens (577px to 767px) */
@media (max-width: 767px) {
    .html-3-container-1 {
        margin-inline: 2rem !important;
        padding-block: 2rem !important;
    }
    
    .html-3-header-left h1 {
        font-size: 2.8rem !important;
    }
    
    .html-3-header-left p:first-of-type {
        font-size: 1.3rem !important;
    }
    
    .html-3-header-left p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .html-3-header-right img {
        width: 300px !important;
        height: auto !important;
        max-width: 90% !important;
    }
    
    .html-3-container-2,
    .html-3-container-3 {
        margin-inline: 2rem !important;
        padding-inline: 2rem !important;
        padding-block: 2rem !important;
        margin-top: 1.5rem !important;
    }
    
    .html-3-container-2 h1,
    .html-3-container-3 h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .html-3-container-2 p,
    .html-3-container-3 p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Fix inline styles */
    .html-3-header-left p[style*="font-size:1.5rem"] {
        font-size: 1.2rem !important;
        margin-top: -0.4rem !important;
    }
    
    .html-3-header-left p[style*="color:gray"] {
        margin-top: -0.4rem !important;
    }
    
    .html-3-container-2 h1[style],
    .html-3-container-3 h1[style] {
        font-size: 1.8rem !important;
        font-weight: bolder !important;
    }
}

/* Small mobile screens (up to 576px) */
@media (max-width: 576px) {
    /* Container 1 adjustments */
    .html-3-container-1 {
        margin-inline: 1rem !important;
        padding-block: 1.5rem !important;
        margin-top: 1rem !important;
    }
    
    .html-3-header-left h1 {
        font-size: 2.2rem !important;
    }
    
    .html-3-header-left p:first-of-type {
        font-size: 1.1rem !important;
        margin-top: -0.3rem !important;
    }
    
    .html-3-header-left p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-top: -0.5rem !important;
    }
    
    .html-3-header-right img {
        width: 250px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Container 2 & 3 adjustments */
    .html-3-container-2,
    .html-3-container-3 {
        margin-inline: 1rem !important;
        padding-inline: 1.5rem !important;
        padding-block: 1.5rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Typography for mobile */
    .html-3-container-2 h1,
    .html-3-container-3 h1 {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .html-3-container-2 p,
    .html-3-container-3 p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }
    
    /* List adjustments for mobile */
    .html-3-container-2 ul {
        padding-left: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .html-3-container-2 li {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.3 !important;
    }
    
    /* Override inline styles for mobile */
    .html-3-header-left p[style*="font-size:1.5rem"] {
        font-size: 1rem !important;
        margin-top: -0.3rem !important;
    }
    
    .html-3-header-left p[style*="color:gray"] {
        margin-top: -0.3rem !important;
    }
    
    .html-3-container-2 h1[style*="font-size: xx-large"],
    .html-3-container-3 h1[style*="font-size: xx-large"] {
        font-size: 1.6rem !important;
    }
    
    .html-3-container-2[style*="padding-right: 4rem"] {
        padding-right: 1.5rem !important;
    }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
    .html-3-container-1 {
        margin-inline: 0.75rem !important;
        padding-block: 1rem !important;
    }
    
    .html-3-header-left h1 {
        font-size: 1.8rem !important;
    }
    
    .html-3-header-left p:first-of-type {
        font-size: 1rem !important;
    }
    
    .html-3-header-left p {
        font-size: 0.85rem !important;
    }
    
    .html-3-header-right img {
        width: 200px !important;
    }
    
    .html-3-container-2,
    .html-3-container-3 {
        margin-inline: 0.75rem !important;
        padding-inline: 1.25rem !important;
        padding-block: 1.25rem !important;
    }
    
    .html-3-container-2 h1,
    .html-3-container-3 h1 {
        font-size: 1.5rem !important;
    }
    
    .html-3-container-2 p,
    .html-3-container-3 p {
        font-size: 0.85rem !important;
    }
    
    .html-3-container-2 li {
        font-size: 0.8rem !important;
    }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .html-3-container-1 {
        flex-direction: row !important;
        align-items: center !important;
        padding-block: 1rem !important;
    }
    
    .html-3-header-left {
        width: 50% !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    .html-3-header-right {
        width: 50% !important;
        text-align: right !important;
    }
    
    .html-3-header-left h1 {
        font-size: 2rem !important;
    }
    
    .html-3-header-left p {
        font-size: 0.9rem !important;
    }
    
    .html-3-header-right img {
        width: 180px !important;
        height: auto !important;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    /* Ensure all containers don't overflow */
    .html-3-container-1,
    .html-3-container-2,
    .html-3-container-3 {
        box-sizing: border-box !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Ensure images are responsive */
    .html-3-header-right img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Prevent long words from breaking layout */
    .html-3-container-2 p,
    .html-3-container-3 p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* Special fix for the unordered list */
@media (max-width: 576px) {
    .html-3-container-2 ul {
        list-style-position: inside !important;
        padding-left: 0 !important;
    }
    
    .html-3-container-2 li {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* Fix for inline style attributes */
@media (max-width: 991px) {
    .html-3-container-2 {
        padding-right: 3rem !important;
    }
}

@media (max-width: 576px) {
    .html-3-container-2 {
        padding-right: 1.5rem !important;
    }
}
/* ============================================
   RESPONSIVE STYLES FOR MARKET PAGE (html-4)
   ============================================ */

/* Large screens (1200px and above) - keep desktop layout */
@media (min-width: 1200px) {
    .html-4-container-1,
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        margin-inline: 5rem;
    }
    
    .html-4-header-left h1 {
        font-size: 4rem;
    }
}

/* Medium to large screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .html-4-container-1,
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        margin-inline: 4rem !important;
        padding-inline: 3rem !important;
    }
    
    .html-4-header-left,
    .html-4-header-right {
        padding-left: 3rem !important;
    }
    
    .html-4-header-right img {
        width: 350px !important;
        height: 350px !important;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    /* Container 1: Stack header content vertically */
    .html-4-container-1 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-inline: 3rem !important;
        padding-block: 3rem !important;
    }
    
    .html-4-header-left,
    .html-4-header-right {
        width: 100% !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    .html-4-header-left {
        margin-bottom: 2rem !important;
    }
    
    .html-4-header-left h1 {
        font-size: 3.5rem !important;
    }
    
    .html-4-header-left p:first-of-type {
        font-size: 1.4rem !important;
        margin-top: -0.5rem !important;
    }
    
    .html-4-header-right img {
        width: 350px !important;
        height: 350px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* All other content containers */
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        margin-inline: 3rem !important;
        padding-inline: 3rem !important;
        padding-block: 2.5rem !important;
        margin-top: 2rem !important;
    }
    
    /* Fix inline style for container 2 */
    .html-4-container-2[style*="padding-right: 4rem"] {
        padding-right: 3rem !important;
    }
    
    /* Fix inline style for last container */
    .html-4-container-4[style*="margin-bottom: 4rem"] {
        margin-bottom: 3rem !important;
    }
    
    /* Typography adjustments */
    .html-4-container-2 h1,
    .html-4-container-3 h1,
    .html-4-container-4 h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    .html-4-container-2 p,
    .html-4-container-3 p,
    .html-4-container-4 p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        text-align: justify !important;
    }
}

/* Mobile screens (577px to 767px) */
@media (max-width: 767px) {
    .html-4-container-1 {
        margin-inline: 2rem !important;
        padding-block: 2rem !important;
    }
    
    .html-4-header-left h1 {
        font-size: 2.8rem !important;
    }
    
    .html-4-header-left p:first-of-type {
        font-size: 1.3rem !important;
    }
    
    .html-4-header-left p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .html-4-header-right img {
        width: 300px !important;
        height: auto !important;
        max-width: 90% !important;
    }
    
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        margin-inline: 2rem !important;
        padding-inline: 2rem !important;
        padding-block: 2rem !important;
        margin-top: 1.5rem !important;
    }
    
    /* Fix inline styles for mobile */
    .html-4-container-2[style*="padding-right: 4rem"] {
        padding-right: 2rem !important;
    }
    
    .html-4-container-4[style*="margin-bottom: 4rem"] {
        margin-bottom: 2rem !important;
    }
    
    .html-4-container-2 h1,
    .html-4-container-3 h1,
    .html-4-container-4 h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .html-4-container-2 p,
    .html-4-container-3 p,
    .html-4-container-4 p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }
    
    /* Fix inline style attributes */
    .html-4-header-left p[style*="font-size:1.5rem"] {
        font-size: 1.2rem !important;
        margin-top: -0.4rem !important;
    }
    
    .html-4-header-left p[style*="color:gray"] {
        margin-top: -0.4rem !important;
    }
    
    .html-4-container-2 h1[style],
    .html-4-container-3 h1[style],
    .html-4-container-4 h1[style] {
        font-size: 1.8rem !important;
        font-weight: bolder !important;
    }
}

/* Small mobile screens (up to 576px) */
@media (max-width: 576px) {
    /* Container 1 adjustments */
    .html-4-container-1 {
        margin-inline: 1rem !important;
        padding-block: 1.5rem !important;
        margin-top: 1rem !important;
    }
    
    .html-4-header-left h1 {
        font-size: 2.2rem !important;
    }
    
    .html-4-header-left p:first-of-type {
        font-size: 1.1rem !important;
        margin-top: -0.3rem !important;
    }
    
    .html-4-header-left p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-top: -0.5rem !important;
    }
    
    .html-4-header-right img {
        width: 250px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Container 2, 3, 4 adjustments */
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        margin-inline: 1rem !important;
        padding-inline: 1.5rem !important;
        padding-block: 1.5rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Fix inline style for container 2 */
    .html-4-container-2[style*="padding-right: 4rem"] {
        padding-right: 1.5rem !important;
    }
    
    /* Fix last container margin */
    .html-4-container-4[style*="margin-bottom: 4rem"] {
        margin-bottom: 2rem !important;
    }
    
    /* Typography for mobile */
    .html-4-container-2 h1,
    .html-4-container-3 h1,
    .html-4-container-4 h1 {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .html-4-container-2 p,
    .html-4-container-3 p,
    .html-4-container-4 p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
        margin-top: -0.5rem !important;
    }
    
    /* Override inline styles for mobile */
    .html-4-header-left p[style*="font-size:1.5rem"] {
        font-size: 1rem !important;
        margin-top: -0.3rem !important;
    }
    
    .html-4-header-left p[style*="color:gray"] {
        margin-top: -0.3rem !important;
    }
    
    .html-4-container-2 h1[style*="font-size: xx-large"],
    .html-4-container-3 h1[style*="font-size: xx-large"],
    .html-4-container-4 h1[style*="font-size: xx-large"] {
        font-size: 1.6rem !important;
    }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
    .html-4-container-1 {
        margin-inline: 0.75rem !important;
        padding-block: 1rem !important;
    }
    
    .html-4-header-left h1 {
        font-size: 1.8rem !important;
    }
    
    .html-4-header-left p:first-of-type {
        font-size: 1rem !important;
    }
    
    .html-4-header-left p {
        font-size: 0.85rem !important;
    }
    
    .html-4-header-right img {
        width: 200px !important;
    }
    
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        margin-inline: 0.75rem !important;
        padding-inline: 1.25rem !important;
        padding-block: 1.25rem !important;
    }
    
    .html-4-container-2 h1,
    .html-4-container-3 h1,
    .html-4-container-4 h1 {
        font-size: 1.5rem !important;
    }
    
    .html-4-container-2 p,
    .html-4-container-3 p,
    .html-4-container-4 p {
        font-size: 0.85rem !important;
    }
    
    /* Fix inline styles for extra small screens */
    .html-4-container-2[style*="padding-right: 4rem"] {
        padding-right: 1.25rem !important;
    }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .html-4-container-1 {
        flex-direction: row !important;
        align-items: center !important;
        padding-block: 1rem !important;
    }
    
    .html-4-header-left {
        width: 50% !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    .html-4-header-right {
        width: 50% !important;
        text-align: right !important;
    }
    
    .html-4-header-left h1 {
        font-size: 2rem !important;
    }
    
    .html-4-header-left p {
        font-size: 0.9rem !important;
    }
    
    .html-4-header-right img {
        width: 180px !important;
        height: auto !important;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    /* Ensure all containers don't overflow */
    .html-4-container-1,
    .html-4-container-2,
    .html-4-container-3,
    .html-4-container-4 {
        box-sizing: border-box !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Ensure images are responsive */
    .html-4-header-right img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Prevent long words from breaking layout */
    .html-4-container-2 p,
    .html-4-container-3 p,
    .html-4-container-4 p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* Special fix for line breaks in paragraphs */
@media (max-width: 576px) {
    .html-4-container-2 p br,
    .html-4-container-3 p br,
    .html-4-container-4 p br {
        display: none !important;
    }
    
    .html-4-container-2 p,
    .html-4-container-3 p,
    .html-4-container-4 p {
        text-align: justify !important;
        text-justify: inter-word !important;
    }
}

/* Fix for multiple containers with same class name */
@media (max-width: 576px) {
    .html-4-container-4:first-of-type {
        margin-bottom: 1rem !important;
    }
    
    .html-4-container-4:last-of-type {
        margin-bottom: 2rem !important;
    }
}
.navbar a {
    text-decoration: none;
    font-weight: bolder;
    font-size: x-large;
    color: rgb(61, 61, 61);
}

.navbar a:hover {
    background: linear-gradient(to bottom, #164a8a, #4d29b1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.header-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0% auto;
    align-items: center;
    justify-content: center;
    padding-bottom: 5rem;
}

.descr {
    letter-spacing: normal;
    font-weight: bold;
    color: rgb(61, 61, 61);
    text-align: center;
}

.header-content h1 {
    background: linear-gradient(to bottom, #7db1f1, #00E3FF);
   
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 10rem !important;
    font-weight:900;
}


.container-2,
.container-3,
.container-4 {
    display: flex;
    flex-wrap: wrap; /* Important for wrapping content on smaller screens */
    align-items: center;
    justify-content: center;
    margin-inline: 5rem;
    padding-block: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    background-color: rgb(242, 242, 247);
}

.container-2-left,
.container-3-right,
.container-4-left {
    width: 50%;
    color: rgb(61, 61, 61);
    padding-left: 5rem;
}

.container-3-left {
    width: 50%;
    color: rgb(61, 61, 61);
    text-align: right;
}

.container-2-right,
.container-4-right {
    width: 50%;
}
.container-2-left a:hover,.container-3-right a:hover,.container-4-left a:hover{
    font-size: larger;
    color:#00E3FF !important;
    transition: 0.2s;
}

/* ============================================
   RESPONSIVE STYLES FOR HOMEPAGE
   ============================================ */

/* Large screens (1200px and above) - already good */
@media (min-width: 1200px) {
    .container-2, .container-3, .container-4 {
        margin-inline: 5rem;
    }
    
    .header-content h1 {
        font-size: 15rem !important;
    }
}

/* Medium to large screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container-2, .container-3, .container-4 {
        margin-inline: 3rem;
    }
    
    .header {
        margin-inline: 3rem;
        width: calc(100% - 6rem);
    }
    
    .header-content h1 {
        font-size: 10rem !important;
    }
    
    .container-2-left, .container-3-right, .container-4-left,
    .container-3-left, .container-2-right, .container-4-right {
        padding-left: 2rem;
    }
    
    .container-2-right img,
    .container-3-left img,
    .container-4-right img {
        width: 350px;
        height: 350px;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    body {
        grid-template-columns: 50px 1fr 50px;
    }
    
    .container-2, .container-3, .container-4 {
        margin-inline: 2rem;
        flex-direction: column;
        padding-block: 3rem;
    }
    
    .header {
        margin-inline: 2rem;
        margin-top: 2rem;
        width: calc(100% - 4rem);
        height: auto;
        min-height: 70vh;
    }
    
    .header-content h1 {
        font-size: 8rem !important;
        text-align: center;
    }
    
   
    
    .container-2-left, .container-3-right, .container-4-left,
    .container-3-left, .container-2-right, .container-4-right {
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-inline: 2rem;
        margin-bottom: 2rem;
    }
    
    .container-3-left {
        order: 2;
        margin-bottom: 0;
    }
    
    .container-3-right {
        order: 1;
    }
    
    .container-2-right img,
    .container-3-left img,
    .container-4-right img {
        width: 300px;
        height: 300px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .container-3-left img {
        margin-right: 0 !important;
    }
    
    .descr {
        font-size: 0.9rem;
        padding-inline: 1rem;
    }
    
    .sidebar-text h5 {
        left: 3.5rem;
        margin-left: -4rem;
    }
    
    .right-sidebar {
        right: 30px;
    }
    
  
}

/* Mobile screens (577px to 767px) */
@media (max-width: 767px) and (min-width: 577px) {
    body {
        grid-template-columns: 40px 1fr 40px;
        grid-template-rows: 50px 1fr auto;
    }
    

    
    .container-2, .container-3, .container-4 {
        margin-inline: 1rem;
        flex-direction: column;
        padding-block: 2.5rem;
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .header {
        margin-inline: 1rem;
        margin-top: 1.5rem;
        width: calc(100% - 2rem);
        height: auto;
        min-height: 65vh;
        padding-top: 1rem;
    }
    
    .header-content h1 {
        font-size: 5rem !important;
        text-align: center;
    }
    
   
    
   
    
    .container-2-left, .container-3-right, .container-4-left,
    .container-3-left, .container-2-right, .container-4-right {
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-inline: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .container-3-left {
        order: 2;
        margin-bottom: 0;
    }
    
    .container-3-right {
        order: 1;
    }
    
    .container-2-right img,
    .container-3-left img,
    .container-4-right img {
        width: 280px;
        height: 280px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .container-3-left img {
        margin-right: 0 !important;
    }
    
    .descr {
        font-size: 0.85rem;
        padding-inline: 1rem;
        line-height: 1.5;
    }
    
    .sidebar-text h5 {
        left: 2.8rem;
        margin-left: -3rem;
        font-size: small;
    }
    
    .right-sidebar {
        right: 20px;
    }


    .container-4 .button {
        margin-top: 1.5rem;
    }
    
    .container-4 .button button {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem;
    }
}

/* Small mobile screens (up to 576px) */
@media (max-width: 576px) {
    body {
        grid-template-columns: 30px 1fr 30px;
        grid-template-rows: 45px 1fr auto;
    }
    
  
    .main-content {
        padding: 0;
    }
    
    .container-2, .container-3, .container-4 {
        margin-inline: 0.5rem;
        flex-direction: column;
        padding-block: 2rem;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .header {
        margin-inline: 0.5rem;
        margin-top: 1rem;
        width: calc(100% - 1rem);
        height: auto;
        min-height: 60vh;
        padding-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .header-content {
        padding-bottom: 3rem;
    }
    
    .header-content h1 {
        font-size: 3.5rem !important;
        text-align: center;
        line-height: 1.1;
    }
    
  
    
    .container-2-left, .container-3-right, .container-4-left,
    .container-3-left, .container-2-right, .container-4-right {
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-inline: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .container-2-left h1,
    .container-3-right h1,
    .container-4-left h1 {
        font-size: 3rem;
    }
    
    .container-2-left p,
    .container-3-right p,
    .container-4-left p {
        font-size: 1rem;
    }
    
    .container-3-left {
        order: 2;
        margin-bottom: 0;
    }
    
    .container-3-right {
        order: 1;
    }
    
    .container-2-right img,
    .container-3-left img,
    .container-4-right img {
        width: 250px;
        height: 250px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }
    
    .container-3-left img {
        margin-right: 0 !important;
    }
    
    .descr {
        font-size: 0.8rem;
        padding-inline: 0.8rem;
        line-height: 1.4;
    }
    
    .sidebar-text h5 {
        left: 2.2rem;
        margin-left: -2.5rem;
        font-size: x-small;
        top: 50%;
    }
    
    .right-sidebar {
        right: 15px;
        gap: 5px;
    }
    

    .container-4 .button {
        margin-top: 1rem;
    }
    
    .container-4 .button button {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem;
    }
    
    .particle-wrapper {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .particle-dot {
        width: 3px;
        height: 3px;
    }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
    body {
        grid-template-columns: 25px 1fr 25px;
    }
    
  
    
    .header-content h1 {
        font-size: 2.8rem !important;
    }
    
    .container-2-left h1,
    .container-3-right h1,
    .container-4-left h1 {
        font-size: 2.5rem;
    }
    
    .container-2-right img,
    .container-3-left img,
    .container-4-right img {
        width: 200px;
        height: 200px;
    }
    
    .sidebar-text h5 {
        left: 1.8rem;
        margin-left: -2rem;
        font-size: xx-small;
    }
    

}
/* Remove these styles from .portfolio-header */
.portfolio-header {
    text-align: center;
    flex-shrink: 0;
    height: 240px; /* Remove this fixed height */
    border-bottom: 25px solid white;
    width: 100%;
}

/* Replace with this: */
.portfolio-header {
    text-align: center;
 
    width: 100%;
    position: relative; /* Change from fixed/absolute to relative */
    background: #f8f9fa;
}

/* Also adjust the h1 and p positioning */
.portfolio-header h1 {
    font-size: 50px;
    font-weight: 800;
    color: #000;
    margin-bottom: 1px; /* Change from top positioning to margin */
 
}

.portfolio-header p {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    font-style: italic;
  
}

/* Adjust the portfolio-columns-row to remove unnecessary padding */
.portfolio-columns-row {
    display: flex;
    gap: 0;
    flex: 1;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: auto; /* Change from 100% to auto */
}

.portfolio-projects {
    width: 100%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px; /* Reduce padding */
    overflow-y: auto;
}
/* Fix for contact and portfolio overlay on mobile */
@media (max-width: 768px) {
    .contact-form-inline, .portfolio-section {
        padding: 60px 20px 40px;
    }
    
    .contact-header, .portfolio-header {
        height: auto;
        min-height: 180px;
        padding-bottom: 20px;
    }
    
    .contact-header h1, .portfolio-header h1 {
        font-size: 36px;
        top: 40px;
    }
    
    .contact-header p, .portfolio-header p {
        font-size: 16px;
        top: 45px;
    }
    
    .close-overlay {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}



/* Print styles */
@media print {
    .left-bar, .right-bar, .bottom-bar,
    .contact, .portfolio, .right-sidebar {
        display: none !important;
    }
    
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .main-content {
        grid-column: 1 / 4;
    }
}
/* Add this to your CSS */
body::-webkit-scrollbar {
    display: none !important;
}
body {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Also hide scrollbar on all elements */
* {
    scrollbar-width: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
}
