/* ================================
   Udhsri Technologies Website CSS
   ================================ */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ======= Top Bar ======= */
.top-bar {
    background: var(--dark-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .contact-info a,
.top-bar .social-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-bar .contact-info a:hover,
.top-bar .social-links a:hover {
    color: var(--primary-color);
}

.top-bar .social-links {
    text-align: right;
}

.top-bar .social-links a {
    margin-right: 10px;
    margin-left: 10px;
}

/* ======= Navigation ======= */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand .logo {
    max-height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s;
    color: var(--text-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ======= Hero Carousel ======= */
.carousel {
    position: relative;
}

.carousel-bg {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-content {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.carousel-content h1 {
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

/* ======= Page Header ======= */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0 60px;
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

/* ======= Section Titles ======= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

section {
    padding: 60px 0;
}

/* ======= Service Cards ======= */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

/* ======= Service Detail Cards ======= */
.service-detail-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: #fff;
    font-size: 3rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    margin-right: 10px;
}

/* ======= Feature Boxes ======= */
.feature-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-box h4 {
    margin: 20px 0 15px;
    font-weight: 600;
}

/* ======= Stats Section ======= */
.stats-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
}

/* ======= Parallax Section ======= */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ======= Team Cards ======= */
.team-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    transition: transform 0.3s;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(102, 126, 234, 0.9);
    padding: 15px;
    text-align: center;
    transition: bottom 0.3s;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: transform 0.3s;
    display: inline-block;
}

.team-social a:hover {
    transform: scale(1.2);
}

.team-info {
    padding: 30px;
    text-align: center;
}

/* ======= Testimonial Section ======= */
.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content {
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.testimonial-author h5 {
    margin-bottom: 5px;
}

/* ======= Portfolio Grid ======= */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.portfolio-item img {
    width: 100%;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: #fff;
}

.portfolio-overlay-content h4 {
    margin-bottom: 10px;
}

/* ======= Job Cards ======= */
.job-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.job-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.job-meta span {
    color: #666;
    font-size: 14px;
}

.job-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ======= Blog Cards ======= */
.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-content h4 {
    margin-bottom: 15px;
}

/* ======= Contact Form ======= */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-control,
.form-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    border-radius: var(--border-radius);
    color: #fff;
    height: 100%;
}

.contact-info-item {
    margin-bottom: 30px;
}

.contact-info-item i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info-item h5 {
    margin-bottom: 10px;
}

/* ======= Mission/Vision Boxes ======= */
.mission-box,
.vision-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.icon-box {
    text-align: center;
}

/* ======= CTA Section ======= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

/* ======= Footer ======= */
.footer {
    background: var(--dark-color);
}

.footer h4,
.footer h5 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.contact-info li {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* ======= Floating Elements ======= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

.floating-social {
    position: fixed;
    right: 40px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.social-icon:hover {
    transform: scale(1.1);
    color: #fff;
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.linkedin {
    background: #0077b5;
}

/* ======= Scroll to Top Button ======= */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ======= Buttons ======= */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ======= Media Queries ======= */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 20px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
    
    .top-bar .social-links {
        text-align: left;
        margin-top: 10px;
    }
    
    .carousel-bg {
        min-height: 400px;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-social {
        right: 20px;
        bottom: 100px;
    }
    
    .whatsapp-float {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .scroll-top-btn {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .service-card,
    .feature-box,
    .blog-card,
    .job-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar .contact-info a {
        display: block;
        margin-bottom: 5px;
    }
    
    .carousel-bg {
        min-height: 350px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* ======= Print Styles ======= */
@media print {
    .top-bar,
    .navbar,
    .whatsapp-float,
    .floating-social,
    .scroll-top-btn,
    .cta-section {
        display: none;
    }
}
/* ======= Mobile Fixes (Udhsri v2) ======= */

/* --- Floating WhatsApp & Social Icons --- */
@media (max-width: 991px) {
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .floating-social {
        right: 15px;
        bottom: 80px;
        gap: 8px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .scroll-top-btn {
        left: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .floating-social {
        right: 12px;
        bottom: 72px;
        gap: 6px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .scroll-top-btn {
        left: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* --- Footer Mobile Center Align --- */
@media (max-width: 767px) {
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3,
    .footer .col-md-6 {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer .contact-info {
        text-align: center;
        list-style: none;
        padding: 0;
    }

    .footer .contact-info i {
        display: inline;
    }

    .footer-links {
        text-align: center;
    }

    .footer .row:last-child .col-md-6 {
        text-align: center !important;
    }
    
    .footer .row:last-child [class*="text-md-start"],
    .footer .row:last-child [class*="text-md-end"] {
        text-align: center !important;
    }
}

/* --- Navbar / Dropdown Mobile Fixes --- */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        background: #fff;
        padding: 10px 15px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 5px 0 5px 10px;
        display: none;
    }

    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }

    .navbar-nav .nav-item.dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* --- General Responsive Fixes --- */
@media (max-width: 575px) {
    .navbar-brand .logo {
        max-height: 45px;
    }

    .carousel-bg {
        min-height: 280px;
    }

    .carousel-content h1 {
        font-size: 1.6rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .carousel-content .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .page-header {
        padding: 70px 0 35px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 25px 15px;
    }
}
