/* =====================================================
   UNISON WEBSITE - UPDATED STYLESHEET
   WhatsApp Colors + Mobile Responsive Fixes
===================================================== */

/* ========== 1. RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --dark-text: #1e3246;
    --gray-text: #666666;
    --light-gray: #f5f5f5;
    --light-blue: #64B5F6;
    --blue: #2c5f7c;
    --green: #25D366;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== 2. WHITE NAVIGATION BAR ========== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo-section {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-section a {
    display: block;
    line-height: 0;
}

.logo-new {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-new:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
}

.nav-link {
    color: #1e3246;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-link:hover, 
.nav-link.active {
    background: rgba(100, 181, 246, 0.15);
    color: #2c5f7c;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #1e3246;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========== 3. HERO SECTION ========== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a3a4a;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.hero-video:not([style*="display: none"]) ~ .hero-image-fallback {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 74, 0.25) 0%, rgba(44, 95, 124, 0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-title .no-break {
    white-space: nowrap;
    display: inline-block;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--whatsapp-green);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-primary i {
    font-size: 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 24px;
    color: var(--white);
    animation: arrowBounce 1.5s infinite;
}

/* ========== 4. ABOUT SECTION ========== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-title.center {
    text-align: center;
}

.section-title.white {
    color: var(--white);
}

.section-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--light-blue);
    margin-bottom: 25px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 40px;
    line-height: 1.8;
}

.section-description.center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-description.white {
    color: rgba(255, 255, 255, 0.9);
}

.about-description {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--light-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 15px;
    color: var(--gray-text);
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 5. SERVICES SECTION ========== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75)), 
                url('../images/services-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.service-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 95, 124, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-link {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid var(--white);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--white);
    color: var(--dark-text);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.service-content p {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    font-size: 14px;
    color: var(--gray-text);
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: 700;
}

.btn-service {
    display: inline-block;
    padding: 10px 25px;
    background: var(--light-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: var(--dark-text);
    transform: translateX(5px);
}

/* ========== 6. WHY SECTION ========== */
.why-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-text) 0%, #2c5f7c 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 15px;
}

.why-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ========== 7. CONTACT SECTION ========== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)), 
                url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--dark-text);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dark-text);
}

/* WhatsApp Icon Styling */
.contact-icon.whatsapp-icon {
    background: var(--whatsapp-green);
    color: var(--white);
}

.contact-item h4 {
    font-size: 16px;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--gray-text);
}

.contact-item a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--light-blue);
}

/* WhatsApp Link Styling */
.whatsapp-link {
    color: var(--whatsapp-green) !important;
    font-weight: 600;
}

.whatsapp-link:hover {
    color: var(--whatsapp-dark) !important;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--light-blue);
    color: var(--white);
    transform: translateY(-5px);
}

/* WhatsApp Social Icon */
.social-icon.whatsapp-social {
    background: var(--whatsapp-green);
    color: var(--white);
}

.social-icon.whatsapp-social:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-5px) scale(1.1);
}

.contact-map h3 {
    font-size: 28px;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ========== 8. WHITE FOOTER ========== */
.footer {
    background: #FFFFFF;
    color: var(--dark-text);
    padding: 60px 0 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.logo-footer {
    height: 80px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark-text);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--blue);
}

/* WhatsApp Link in Footer */
.footer-col ul li a.whatsapp-link {
    color: var(--whatsapp-green);
    font-weight: 600;
}

.footer-col ul li a.whatsapp-link:hover {
    color: var(--whatsapp-dark);
}

.footer-col p {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
}

/* ========== 9. SUB-PAGES STYLES ========== */
.page-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 85px;
}

.service-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* ========== 10. ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ========== 11. RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 105px;
        right: -100%;
        width: 320px;
        height: auto;
        max-height: calc(100vh - 120px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px 0;
        gap: 0;
        border-radius: 15px;
        box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .navbar.scrolled .nav-menu {
        top: 85px;
    }
    
    .nav-menu.active {
        right: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        display: block;
        width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-new {
        height: 45px;
    }
    
    .logo-footer {
        height: 70px;
    }
    
    .service-grid-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .hero-section {
        background-attachment: scroll;
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-new {
        height: 40px;
    }
    
    .logo-footer {
        height: 60px;
    }
    
    .services-section {
        background-attachment: scroll;
        padding: 60px 0;
    }
    
    .contact-section {
        background-attachment: scroll;
        padding: 60px 0;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .why-section {
        padding: 60px 0;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-new {
        height: 35px;
    }
    
    .logo-footer {
        height: 50px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* ========== 12. ADDITIONAL MOBILE FIXES ========== */
@media (max-width: 968px) {
    /* Fix for mobile menu on small screens */
    .nav-menu {
        width: 280px;
    }
    
    /* Fix hero section for mobile */
    .hero-image-fallback {
        background-attachment: scroll;
    }
    
    /* Ensure touch targets are large enough */
    .nav-link {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Fix service cards on mobile */
    .service-image {
        height: 250px;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    /* Further mobile optimizations */
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .about-image {
        height: 300px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .why-card {
        padding: 30px 20px;
    }
    
    .why-icon {
        font-size: 40px;
    }
}

/* ========== 13. LANDSCAPE ORIENTATION FIX ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ========== 14. HIDE OLD LOGO ELEMENTS ========== */
.logo-img,
.brand-text,
.brand-name,
.brand-tagline {
    display: none !important;
}

/* ========== 15. PRINT STYLES ========== */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .hero-buttons,
    .social-links {
        display: none;
    }
    
    .hero-section {
        height: auto;
        min-height: 200px;
        page-break-after: always;
    }
    
    .service-card,
    .why-card {
        page-break-inside: avoid;
    }
}

/* ========== END OF STYLESHEET ========== */
