/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root {
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);
    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);
    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);
    --second-color: rgb(0, 201, 255);
    --third-color: rgb(255, 153, 0);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
    --nav-shadow: rgba(0, 0, 0, 0.1);
}

/* Dark mode variables */
[data-theme="dark"] {
    --body-color: rgb(18, 18, 18);
    --color-white: rgb(30, 30, 30);
    --text-color-second: rgb(220, 220, 220);
    --text-color-third: rgb(100, 200, 255);
    --first-color: rgb(130, 107, 244);
    --first-color-hover: rgb(110, 87, 224);
    --second-color: rgb(0, 180, 255);
    --third-color: rgb(255, 173, 110);
    --first-shadow-color: rgba(0, 0, 0, 0.3);
    --nav-shadow: rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Switch Styles */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .toggle-switch {
    background: #4a4a4a;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .toggle-slider {
    transform: translateX(30px);
    background: #2a2a2a;
}

.toggle-icon {
    font-size: 12px;
    transition: all 0.3s ease;
}

.sun-icon {
    color: #ffd700;
    opacity: 1;
}

.moon-icon {
    color: #87ceeb;
    opacity: 0;
    position: absolute;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* Navigation adjustments for the toggle */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.highlight {
  color: var(--third-color);
  font-weight: bold;
}


/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}


/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-name-vbf{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-second);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}



.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}

.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    /*text-transform: capitalize;*/
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 5em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}

.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */

.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
  }
}

.service-card {
  background-color: var(--color-white);
  padding: 1.5rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: var(--text-color-second); /* Add this line */
}

[data-theme="dark"] .service-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); /* Tailwind hover:shadow-md */
}

.service-title {
  font-size: 1.25rem; /* Tailwind text-xl */
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color-third);
}

ul.service-list {
  list-style: none;
  padding-left: 0; /* Remove the left padding that was causing the offset */
  margin: 0;
}


.service-list {
  font-size: 0.875rem; /* Tailwind text-sm */
  padding-left: 0;
}

/* Add some indentation for list items instead */
.service-list li {
  padding-left: 0.5rem;
  margin-bottom: 0.25rem;
}

.bold {
  font-weight: bold;
}

.highlight-red {
  color: #dc2626; /* Tailwind text-red-600 */
  font-weight: 500;
  margin-top: 0.5rem;
}

.note {
  font-size: 0.75rem; /* Tailwind text-xs */
  color: #4b5563;     /* Tailwind text-gray-600 */
  margin-top: 0.25rem;
}

.service-info-box {
  margin: 1.5rem auto;
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.625;
  width: 100%;
  max-width: 100%;
  border: 1px solid transparent;
    color: var(--text-color-second); /* Add this line */
}

[data-theme="dark"] .service-info-box {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Fix for note text color in dark mode */
[data-theme="dark"] .note {
  color: #9ca3af; /* Lighter gray for dark mode */
}

[data-theme="dark"] .vat-note {
  color: #9ca3af; /* Lighter gray for dark mode */
}

[data-theme="dark"] .travel-fee-text {
  color: #9ca3af; /* Lighter gray for dark mode */
}

/* Update shadow for dark mode */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-info-box {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .service-info-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.service-info-box:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); /* Tailwind hover:shadow-md */
}

/* Optional: spacing between elements */
.service-info-box > * + * {
  margin-top: 1rem; /* Tailwind space-y-4 equivalent */
}

.discount-text {
  color: #15803d; /* Tailwind text-green-700 */
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.vat-note {
  color: #374151; /* Tailwind text-gray-700 */
  margin-bottom: 0.5rem;
}

.free-travel-title {
  font-size: 1.125rem; /* Tailwind text-lg */
  font-weight: 600;
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.map-box {
  height: 500px;
  border-radius: 0.75rem; /* Tailwind rounded-xl */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* Tailwind shadow-lg */
}

.travel-fee-text {
  color: #374151; /* Tailwind text-gray-700 */
  margin-top: 1rem;
}

.fee-title {
  font-weight: 600;
}

.fee-distance-note {
  font-size: 0.875rem; /* Tailwind text-sm */
  font-style: italic;
  color: #6b7280; /* Tailwind text-gray-600 */
}

.fee-example {
  font-size: 0.75rem; /* Tailwind text-xs */
  color: #6b7280; /* Tailwind text-gray-600 */
  margin-top: 0.25rem;
}

.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.project-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.project-box>i{
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}
.project-box label{
    font-size: 15px;
    color: #777;
}
.project-box::after, .contact-info::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after{
    bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}



/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}


/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }

        .nav-menu {
        padding: 12px 0;
    }
    
    .nav-menu .nav-link {
        font-size: 14px;
        padding: 8px 12px;
        width: 160px;
    }
}

.section {
  padding-block: 5em;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 4px var(--nav-shadow);
}

@media only screen and (max-width: 900px) {

        .wrapper {
        padding-inline: 5vw; /* Consistent padding */
    }
    nav {
        padding-inline: 5vw;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--body-color);
        z-index: 1000;
    }

    .section {
        padding-inline: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-button{
        display: none;
    }
    
    /* Hamburger button styling */
    .nav-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 1001;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav-menu-btn i {
        font-size: 24px;
        color: var(--text-color-second);
        transition: color 0.3s ease;
    }
    
    .nav-menu-btn:hover i {
        color: var(--first-color);
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        justify-content: flex-start; /* Changed from center */
        align-items: center;
        background: var(--color-white);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: auto; /* Remove fixed min-height */
        height: auto; /* Changed from calc(100vh - 90px) */
        padding: 20px 0; /* Add padding instead of using full height */
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 12px var(--first-shadow-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

        /* Dark mode menu styling */
    [data-theme="dark"] .nav-menu {
        background: var(--color-white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
        /* Compact menu links */
    .nav-menu .nav-link {
        color: var(--text-color-second);
        font-size: 16px; /* Slightly smaller font */
        padding: 12px 20px; /* Reduced padding */
        margin: 0;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
        border-radius: 8px; /* Add slight border radius */
        width: 200px; /* Fixed width for consistency */
    }
    
    .nav-menu.responsive{
        left: 0;
    }
    
    .nav_menu_list {
        flex-direction: column;
        gap: 8px; /* Reduced gap between items */
        margin: 0;
        padding: 0;
    }

    .nav-menu .nav-link:hover {
        background: rgba(110, 87, 224, 0.1);
        color: var(--first-color);
    }
    
    .nav-menu .active-link {
        color: var(--first-color);
        background: rgba(110, 87, 224, 0.1);
    }

        /* Remove the circle indicator in mobile menu */
    .nav-menu .active-link::after {
        display: none;
    }

    
    /* Ensure page content is not hidden */
    .featured-box {
        flex-direction: column;
        justify-content: center;
        height: 100vh;
        align-items: center;
        margin-top: 90px;
        padding: 0 5vw;
        position: relative; /* Ensure proper stacking */
        z-index: 1; /* Lower z-index than menu */
    }

        /* Add a subtle overlay when menu is open (optional) */
    .nav-menu.responsive::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);
        z-index: -1;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }
    
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
        text-align: center;
        padding: 20px;
                padding: 20px 0; /* Remove horizontal padding, let wrapper handle it */

    }
    
    .social_icons{
        margin-top: 2em;
        justify-content: center;
    }

    .featured-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        order: 1;
        min-height: 40vh;
        padding: 20px 0;
    }

    .image, .image img{
        width: 250px;
        height: 250px;
    }
    
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .about-info, .contact-info{
        width: 100%;
    }
    
    .project-container{
        justify-content: center;
    }
    
    .project-box{
        width: 80%;
    }

    [data-theme="dark"] .toggle-slider {
        transform: translateX(24px);
    }
    
    .toggle-icon {
        font-size: 10px;
    }
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Additional fix for very small screens */
@media only screen and (max-width: 540px){
    .nav-menu-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu-btn i {
        font-size: 20px;
        color: var(--text-color-second);
    }

        .nav-menu .nav-link {
        font-size: 15px;
        padding: 10px 15px;
        width: 180px; /* Slightly smaller width */
    }

        .nav-menu {
        padding: 15px 0; /* Even less padding */
    }
    
    .nav_menu_list {
        gap: 5px; /* Even smaller gap */
    }
    
    .featured-name{
        font-size: 40px;
        margin-block: 15px; /* Reduce margin on small screens */
    }

        .featured-box {
        padding: 0 4vw; /* Match wrapper padding */
    }
    
    .project-box{
        width: 100%;
    }
    
    .form-inputs{
        flex-direction: column;
    }
    
    .input-field{
        width: 100%;
    }

    .wrapper {
        padding-inline: 4vw; /* Increase padding for better centering */
    }
    
    .service-grid {
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }
    
    .image, .image img{
        width: 200px;
        height: 200px;
    }

    .service-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
  }
  
    .service-info-box {
        margin: 1.5rem auto;
        width: 100%;
        max-width: 100%;
  }
}


a.btn.blue-btn {
  text-decoration: none;
}

.btn {
  text-decoration: none;
  /* other button styles like background, padding, etc. */
}

/* Fix for note text color in dark mode */
[data-theme="dark"] .note {
  color: #9ca3af; /* Lighter gray for dark mode */
}

/* Fix for Facebook icon background */
.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background-color: var(--color-white); /* Add explicit background */
  transition: all 0.3s ease; /* Add smooth transition */
}

.icon:hover {
  color: var(--first-color);
  background-color: var(--color-white); /* Keep background white on hover */
}

.icon a {
  color: var(--text-color-second);
  text-decoration: none;
  transition: color 0.3s ease;
}

.icon:hover a {
  color: var(--first-color);
}

/* Ensure Facebook icon is visible in both themes */
.icon i {
  color: #1877f2; /* Facebook blue color */
  font-size: 18px;
}

.icon:hover i {
  color: var(--first-color);
}
