/* =============================================
   SVS WebTech Solutions - Custom Styles
   ============================================= */

:root {
    --primary-color: #4285f4;
    --secondary-color: #5f6368;
    --success-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --info-color: #4285f4;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --white-color: #ffffff;
    --bg-gray: #f1f3f4;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-light: #dadce0;
    --transition: all 0.3s ease;
}

/* =============================================
   Global Styles
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--white-color);
    line-height: 1.6;
}

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    color: var(--secondary-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* =============================================
   Navigation Bar
   ============================================= */

#navbar {
    background: var(--white-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

#navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: var(--text-primary) !important;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: translateX(2px);
}

.navbar-nav .nav-link {
    margin: 0 8px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--text-secondary) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* =============================================
   Hero Section
   ============================================= */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: none;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-section .lead {
    font-size: 1.4rem;
    text-shadow: none;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1s ease-out 0.2s both;
}

.hero-section .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.btn-outline-primary {
    color: #4285f4;
    border-color: #4285f4;
}

.btn-outline-primary:hover {
    background-color: #4285f4;
    border-color: #4285f4;
    color: white;
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: #4285f4;
    border-color: #4285f4;
}

/* =============================================
   About Section
   ============================================= */

#about {
    background: var(--light-color);
}

.about-card {
    border-radius: 15px;
    background: var(--white-color);
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-5px);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4285f4, #5fa3f5);
    border-radius: 50%;
    color: var(--white-color);
    margin: 0 auto;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* =============================================
   Services Section
   ============================================= */

#services {
    background: var(--white-color);
}

.service-card {
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #5fa3f5);
    border-radius: 15px;
    color: var(--white-color);
    margin: 0 auto;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card .list-unstyled li {
    font-weight: 500;
    color: var(--dark-color);
}

/* =============================================
   Why Choose Us Section
   ============================================= */

#why-choose {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.feature-card {
    transition: var(--transition);
    border-radius: 15px;
    padding: 30px;
}

.feature-card:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-4px);
}

.feature-card h5 {
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* =============================================
   Portfolio Section
   ============================================= */

#portfolio {
    background: var(--light-color);
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    background: var(--white-color);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-image i {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image i {
    transform: scale(1.1);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* =============================================
   Testimonials Section
   ============================================= */

#testimonials {
    background: var(--white-color);
}

.testimonial-card {
    border-radius: 15px;
    background: var(--white-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-8px);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-card .fa-star {
    font-size: 1rem;
}

/* =============================================
   Contact Section
   ============================================= */

#contact {
    background: var(--light-color);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.form-label {
    color: var(--dark-color);
    margin-bottom: 8px;
}

#contactForm button {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

#contactForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
}

.contact-item i {
    margin-top: 5px;
}

.contact-item h6 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.social-links .btn {
    padding: 8px 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid #dadce0;
    color: #5f6368;
    background-color: #fff;
}

.social-links .btn i {
    font-size: 18px;
}

.social-links .btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.social-links .btn-facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.social-links .btn-linkedin:hover {
    color: #0a66c2;
    border-color: #0a66c2;
}

.social-links .btn-instagram:hover {
    color: #e1306c;
    border-color: #e1306c;
}

/* =============================================
   Footer
   ============================================= */

footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
}

footer h5,
footer h6 {
    color: var(--text-primary);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer ul li {
    margin-bottom: 8px;
}

footer .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* =============================================
   Form Validation
   ============================================= */

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* =============================================
   Utility Classes
   ============================================= */

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0099ff);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Scrollbar Styling
   ============================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .hero-section .btn {
        width: 100%;
    }

    .display-4 {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .about-card,
    .service-card,
    .testimonial-card {
        margin-bottom: 20px;
    }

    .contact-item {
        flex-wrap: wrap;
    }

    footer .row {
        text-align: center;
    }

    footer .col-md-6:last-child {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .service-icon,
    .icon-box {
        width: 70px;
        height: 70px;
    }

    .service-icon i,
    .icon-box i {
        font-size: 2rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }
}

/* =============================================
   Offcanvas Menu Styles
   ============================================= */

.offcanvas {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    width: 85% !important;
    max-width: 300px;
}

.offcanvas-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
}

.offcanvas-title {
    color: white;
}

.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.offcanvas-header .btn-close:focus {
    opacity: 1;
    box-shadow: none;
}

.offcanvas-body {
    background: white;
}

.offcanvas .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.offcanvas .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.offcanvas .nav-link:hover::before,
.offcanvas .nav-link.active::before {
    transform: scaleY(1);
}

.offcanvas .nav-link:hover {
    background-color: #f1f3f4;
    padding-left: 2rem;
    color: var(--primary-color);
}

.offcanvas .nav-link.active {
    background-color: #e8f0fe;
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Mobile responsiveness for offcanvas */
@media (max-width: 991px) {
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: none;
        outline: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Smooth transition for offcanvas opening */
.offcanvas.showing {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px; /* Distance from the bottom of the viewport */
    left: 20px; /* Distance from the left of the viewport */
    background-color: #25d366; /* WhatsApp color */
    color: white; /* Text and icon color */
    border-radius: 5px; /* Slightly rounded corners */
    padding: 10px 15px; /* Padding for button */
    display: flex; /* Align items */
    align-items: center; /* Center icon and text */
    text-decoration: none; /* No underline */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow effect */
    z-index: 1000; /* Stay on top of other elements */
    transition: all 0.3s ease; /* Smooth transition for all properties */
    animation: bounce 2s infinite; /* Animation effect */
}

.whatsapp-button i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 24px; /* Icon size */
}

/* Hover Effect */
.whatsapp-button:hover {
    background-color: #128c7e; /* Darker shade on hover */
    transform: scale(1.1) rotate(5deg); /* Slightly enlarge and rotate */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Bounce Animation */
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* =============================================
   Print Styles
   ============================================= */

@media print {
    .navbar,
    footer,
    #contact {
        display: none;
    }
}
