@import url('https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900&display=swap'); /* Changed font to Roboto */

/* Theme Name: karki.com.np */
/* variable */
:root {     
    --base-color: #c2001c;
    --light-medium-gray:#e9e9e9;
    --primary-font: 'Roboto', sans-serif; /* Updated font family */
    --alt-font: 'Roboto', sans-serif; /* Updated font family */
    --dark-gray: #333; /* Added definition for --dark-gray */
}
body {
    font-size: 17px;
    line-height: 30px;
    color:var(--dark-gray);
}
section {
    padding-top: 15px;  /* Reduced from 20px */
    padding-bottom: 15px; /* Reduced from 20px */
}
/* bg sliding line */
.bg-sliding-line {
    background-image: linear-gradient(135deg, transparent 45%, #9c2531 45%, #9c2531 55%, transparent 0);
    background-size: 5px 5px;
}
/* header */
.header-push-button .push-button {
    height: 8px;
}
header .navbar-brand img {
    max-height: 48px;
}
.header-push-button .push-button span:first-child {
    width: 15px;
    margin-right: 0;
}
.show-menu .header-push-button .push-button span:nth-child(1) {
    width: 15px;
    top: 0;
}
.show-menu .header-push-button .push-button span:nth-child(2) {
    top: 6px;
    -webkit-transform: rotate(0deg); 
    transform: rotate(0deg);
}
.hamburger-logo img {
    max-height: 48px;
}
.hamburger-nav {
    width: 30%;
}
.menu-item-list .nav-link {
    font-size: 45px;
    line-height: 40px;
}
/* font size */
.fs-335 {
    font-size: 20.938rem;
    line-height: 18.75rem;
}
/* margin */
.mt-minus-40px {
    margin-top: -40px;
}
/* top left right bottom */
.top-20 {
    top: 20%;
}
.top-35 {
    top: 35%;
}
.gutter-medium {
    margin-left: -7px;
    margin-right: -7px;
}
.portfolio-transform .portfolio-box .caption {
  padding: 20px 20px 10px;
}
.progress-bar-style-01 .progress .progress-bar-percent:after {
    border-top-color: #000;
}
/* bg gradient color */
.bg-gradient-top-very-light-gray { 
    background-image:linear-gradient(to top, #ffffff, #ffffff, #fcfafa, #fcfafa, #f7f7f7);
}
/* text shadow large */
.text-shadow-large {
    text-shadow: 0 20px 60px rgb(0, 0, 0, 0.15);
}
.outside-box-bottom-2 {
    margin-bottom: -2vw; 
}
/* Contact form styles */
.form-message {
    margin-bottom: 20px;
}

.form-message .alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.form-message .alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.form-message .alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.contact-form .medium-input,
.contact-form .medium-textarea {
    border: 1px solid #e9e9e9;
    padding: 12px 15px;
    font-size: 14px;
    line-height: normal;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

.contact-form .medium-input:focus,
.contact-form .medium-textarea:focus {
    border-color: var(--base-color);
    outline: none;
}

.contact-form .medium-textarea {
    resize: vertical;
}

.send-error-message {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.send-error-message.show {
    display: block;
}

.contact-form .btn-dark-gray {
    background-color: var(--dark-gray);
    color: #fff;
    transition: all 0.3s ease-in-out;
}

.contact-form .btn-dark-gray:hover {
    background-color: var(--base-color);
}

/* Form validation styles */
.contact-form .is-invalid {
    border-color: #dc3545 !important;
}

.contact-form .is-valid {
    border-color: #198754 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: -15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #dc3545;
}

.contact-form .medium-input.is-invalid,
.contact-form .medium-textarea.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.contact-form .medium-input.is-valid,
.contact-form .medium-textarea.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

/* Social Media Hover Animations */
.social-links a {
    font-size: 24px;
    margin-right: 15px;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a.facebook:hover {
    color: #3b5998;
}

.social-links a.instagram:hover {
    color: #C13584;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links a.twitter:hover {
    color: #1DA1F2;
}

.social-links a.tiktok:hover {
    background: -webkit-linear-gradient(45deg, #25F4EE, #000000, #FE2C55);
    background: linear-gradient(45deg, #25F4EE, #000000, #FE2C55);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(37, 244, 238, 0.3);
}

/* Elements social style enhancement */
.elements-social.social-text-style-01 ul.medium-icon li {
    margin: 0 10px;
    transition: all 0.3s ease;
}

.elements-social.social-text-style-01 ul.medium-icon li:hover {
    transform: translateY(-5px);
}

.elements-social.social-text-style-01 ul.medium-icon li a.facebook:hover {
    color: #3b5998 !important;
}

.elements-social.social-text-style-01 ul.medium-icon li a.instagram:hover {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elements-social.social-text-style-01 ul.medium-icon li a.twitter:hover {
    color: #1DA1F2 !important;
}

.elements-social.social-text-style-01 ul.medium-icon li a.tiktok:hover {
    background: -webkit-linear-gradient(45deg, #25F4EE, #000000, #FE2C55);
    background: linear-gradient(45deg, #25F4EE, #000000, #FE2C55);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(37, 244, 238, 0.3);
}

/* Hamburger menu social icons animation */
.menu-address .elements-social ul.medium-icon li {
    margin: 0 10px;
    transition: all 0.3s ease;
}

.menu-address .elements-social ul.medium-icon li:hover {
    transform: translateY(-5px);
}

.menu-address .elements-social ul.medium-icon li a.facebook:hover {
    color: #3b5998 !important;
}

.menu-address .elements-social ul.medium-icon li a.instagram:hover {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-address .elements-social ul.medium-icon li a.twitter:hover {
    color: #1DA1F2 !important;
}

.menu-address .elements-social ul.medium-icon li a.tiktok:hover {
    background: -webkit-linear-gradient(45deg, #25F4EE, #000000, #FE2C55);
    background: linear-gradient(45deg, #25F4EE, #000000, #FE2C55);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(37, 244, 238, 0.3);
}

/* Footer Quick Links */
.footer-nav a {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a:hover {
    color: var(--base-color) !important;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--base-color);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Social Links in Footer */
.footer-nav.social-links a {
    font-size: 20px;
}

.footer-nav.social-links a:hover::after {
    width: 0; /* Disable underline for social icons */
}

@media only screen and (max-width: 767px) {
    .footer-nav {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 1700px) {
    .hamburger-nav {
        width: 35%;
    }
}
@media only screen and (max-width: 1600px) {
    .fs-335 {
        font-size: 15.625rem;
        line-height: 15.625rem;
    }
    .left-img {
        width: 300px;
    }
}
@media only screen and (max-width: 1399px) {
    .left-img {
        width: 250px;
    }
    .hamburger-nav {
        width: 40%;
    }
}
@media only screen and (max-width: 1399px) {
    .fs-335 {
        font-size: 12.5rem;
        line-height: 12.5rem;
    }
}
@media only screen and (max-width: 1199px) {
    .fs-335 {
        font-size: 10.625rem;
        line-height: 10.625rem;
    }
}
@media only screen and (max-width: 991px) {
    section {
          padding-top: 20px;  /* Reduced from 35px */
          padding-bottom: 20px;  /* Reduced from 35px */  
    }
}
@media only screen and (max-width: 767px) {
    .fs-335 {
        font-size:6.25rem;
        line-height: 6.25rem;
    }
    section {
          padding-top: 15px;  /* Reduced from 25px */
          padding-bottom: 15px;  /* Reduced from 25px */  
    }
}

/* Responsive Design Media Queries */
/* Mobile First Approach */

/* Extra small devices (phones, 576px and down) */
@media only screen and (max-width: 576px) {
    body {
        font-size: 15px;
        line-height: 26px;
    }

    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .fs-335 {
        font-size: 4rem;
        line-height: 4rem;
    }

    .menu-item-list .nav-link {
        font-size: 32px;
        line-height: 30px;
    }

    .hamburger-nav {
        width: 100%;
    }

    header .navbar-brand img {
        max-height: 40px;
    }

    .contact-form .medium-input,
    .contact-form .medium-textarea {
        padding: 10px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 28px;
    }

    .hamburger-nav {
        width: 80%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hamburger-nav {
        width: 60%;
    }

    .menu-item-list .nav-link {
        font-size: 40px;
        line-height: 35px;
    }
}

/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .hamburger-nav {
        width: 45%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .hamburger-nav {
        width: 35%;
    }
}

/* Custom breakpoints for specific components */
@media only screen and (max-width: 480px) {
    .elements-social.social-text-style-01 ul.medium-icon li {
        margin: 0 5px;
    }

    .portfolio-transform .portfolio-box .caption {
        padding: 15px 15px 8px;
    }
}

/* High-resolution screens and retina displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    .header .navbar-brand img {
        max-height: 50px;
    }
}

/* Portrait and Landscape orientations */
@media screen and (orientation: portrait) {
    .portfolio-transform .grid-item {
        width: 100%;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    section {
        padding-top: 15px;  /* Reduced from 20px */
        padding-bottom: 15px;  /* Reduced from 20px */
    }
}

/* Container width adjustments */
@media only screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Grid system responsive adjustments */
@media only screen and (max-width: 767px) {
    .grid-4col .grid-item {
        width: 50%;
    }
}

@media only screen and (max-width: 480px) {
    .grid-4col .grid-item {
        width: 100%;
    }
}

/* Typography responsive adjustments */
@media only screen and (max-width: 767px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
}

/* Fix for menu on very small devices */
@media only screen and (max-width: 320px) {
    .menu-item-list .nav-link {
        font-size: 28px;
        line-height: 24px;
    }
    
    .hamburger-nav {
        padding: 15px;
    }
}

/* Handle larger screens */
@media only screen and (min-width: 1600px) {
    .container {
        max-width: 1540px;
    }
    
    body {
        font-size: 18px;
        line-height: 32px;
    }
}

/* Additional spacing adjustments */
.mb-6 {
    margin-bottom: 2rem !important; /* Reduced from default */
}

.mt-6 {
    margin-top: 2rem !important; /* Reduced from default */
}
