/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* @import url(index.css); */
/* Color Variables */
:root {
    --primary-dark-blue: #1d305f;
    /* (29,48,95) */
    /* --secondary-blue: #5d8aaf;         (93,138,175) */
    --secondary-blue: #1E2A6A;
    --neutral-gray: #bfbebf;
    /* (191,190,191) */
    /* --accent-yellow: #f8cc24;          (248,204,36) */
    --accent-yellow: #ffff;
    --accent-green: #497945;
    /* (73,121,69) */
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --white: #fff;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-blue: #2980b9;
    --accent: #1E2A6A;
    --accent-dark: #141d4a;
    --glass: rgba(30, 42, 106, 0.18);
    --glass-border: rgba(255, 255, 255, 0.14);
    --blur: 18px;
    --text: #0f172a;
    /* darker text for white bg */
    --text-soft: #334155;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        --accent: #1E2A6A;
    --accent-dark: #141d4a;
    --glass: rgba(30, 42, 106, 0.16);
    --glass-border: rgba(255, 255, 255, 0.13);
    --blur: 16px;
    --text: #f8fafc;
    --text-soft: #e2e8f0;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    /* --head-font: "Poppins", sans-serif; */
    --head-font: "Noto Serif", serif;
    --para-font:   "Poppins", sans-serif;
    --head-color: #ffd966;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure proper width handling without scaling issues */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    width: 100%; /* Use percentage instead of vw to prevent scaling issues */
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Contact Page Specific Styles - Navbar styles are inherited from index.css */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--hover-blue);
}

/* Footer */
footer {
    /* background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1a2a5a 100%); */
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* background: linear-gradient(90deg, var(--secondary-blue), var(--primary-dark-blue), var(--secondary-blue)); */
}

footer .container{
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section{
    display: flex;
    flex-direction: column;
}

/* Company Info Section */
.company-info .footer-logo {
    display: flex;
    align-items: center;
    /* gap: 4px; */
    margin-bottom: 1.2rem;
    margin-left: -20px; 
}

.company-info .footer-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.company-info .footer-logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.6));
    transform: scale(1.05);
}

.company-info .footer-logo h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.company-description {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-links a:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 119, 189, 0.4);
}

/* Quick Links & Products Sections */
.quick-links h4, .products-links h4 {
    margin-bottom: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary-blue);
    font-size: 1.1rem;
    position: relative;
}

.quick-links h4::after, .products-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 5px;
}

/* Contact Info Section */
.contact-info h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary-blue);
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.2rem;
    min-width: 24px;
    color: var(--secondary-blue);
}

.contact-label {
    margin: 0 0 0.3rem 0;
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.contact-value {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 2rem 0;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/** Contact Page Starts **/
.contact-page{
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url("/assets/images/slider1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 60px;
    gap: 5px;
}

.contact-page h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-page p{
    font-size: 1.5rem;
}

/* Mobile responsiveness for contact-page hero section */
@media (max-width:675px){
    .contact-page{
        height: 250px;
    }

    .contact-page h1{
        font-size: 1.5rem;
    }

    .contact-page p{
        font-size: 1rem;
        display: flex;
        text-align: center;
    }
}

/** contact-form styling **/
.contact-form{
    max-width: 100%;        /* SAME AS FIRST IMAGE */
    margin: 0 auto 40px auto; /* CENTER THE UI */
    padding: 50px;
    display: flex;
    flex-direction: row;
    background: #ffffff;
}


/* Maintain side-by-side layout for larger screens */
@media (min-width: 769px){
    .contact-form{
        flex-direction: row !important;
    }
}

@media (max-width:1024px){
    .contact-form{
        display: flex;
        justify-content: center;
        align-items: center;
        padding-right: 20px;
    }
}

@media (max-width: 768px){
    .contact-form{
        padding-left: 20px;
    }
}

/** contact-details styling **/
.contact-details{
    flex: 0 0 40%;
    min-height: 600px;
    padding: 40px 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 25px;
    background: var(--primary-dark-blue);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.info-row i {
    font-size: 18px;
    margin-top: 4px;
    min-width: 20px;
}


.comp-logo-name{
    display: flex;
    justify-content: flex-start;
    padding-right: 0;
    gap: 15px;
}

@keyframes fadeScale{
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.comp-logo-name img{
    filter: brightness(0) invert(1);
    height: 100px;
    width: auto;
}

.contact-details h1 span{
    font-size: 3.2rem;
}

.comp-logo-name h1{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px){
    .comp-logo-name{
        justify-content: flex-start;
        padding-right: 0;
    }

    .comp-logo-name img{
        height: 70px;
    }

    .comp-logo-name h1 span{
        font-size: 3rem;
    }

    .comp-logo-name h1{
        font-size: 1.6rem;
    }
}

@media (max-width:768px) {
    .comp-logo-name{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-right: 0;
        gap: 10px;
    }

    .comp-logo-name img {
        height: 60px;
    }

    .comp-logo-name h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .contact-details h1 span {
        font-size: 2.6rem;
    }
}

@media (max-width: 480px) {
    .comp-logo-name img {
        height: 50px;
    }

    .comp-logo-name h1 {
        font-size: 1.3rem;
    }

    .contact-details h1 span {
        font-size: 2.2rem;
    }
    
    /* Additional fix for email overflow on very small screens */
    .contact-details p {
        font-size: 16px; /* Slightly smaller font */
        padding: 0 5px; /* Add some padding to prevent edge touching */
    }
}


.contact-details h2 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 5px;
}

.contact-details h2 i {
    color: var(--white);
    margin-right: 4px;
    font-size: 20px;
}


.contact-details p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern property for word breaking */
    word-break: break-word; /* Break long words */
    hyphens: auto; /* Add hyphens where appropriate */
    max-width: 100%; /* Ensure it doesn't exceed container width */
}

.contact-details hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    margin: 30px 0;
}


.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}


/** form-content styling **/
.form-content{
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}


.form-content p{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-content input,
.form-content textarea{
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-content input:focus,
.form-content textarea:focus{
    border-color: #4191e7;
    box-shadow: 0 0 0 3px rgba(93, 138, 175, 0.15);
    outline: none;
}

label{
    color: #434548;
    font-weight: 500;
    margin-top: 10px;
    font-size: large;
}

.form-content select{
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-content select:focus{
    border-color: #4191e7;
    box-shadow: 0 0 0 3px rgba(93, 138, 175, 0.15);
    outline: none;
}

option{
    font-size: 18px;
}

textarea{
    resize: vertical;
}

textarea::placeholder {
    color: #757b85;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: Arial, Helvetica, sans-serif;
}

button{
    width: 100%;
    padding: 14px;
    text-align: center;
    background: var(--primary-dark-blue);
    color: #fff;
    margin-top: 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: large;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover{
    transform: translate(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/** Mobile View for contact-form **/
@media (max-width: 768px){
    .contact-form{
        flex-direction: row; /* FORCE SIDE BY SIDE */
        flex-wrap: wrap;     /* prevents overflow */
    }

    .contact-details,
    .form-content{
        flex: 0 0 100%;      /* optional */
    }
}

@media (max-width:768px){
    .contact-details, .form-content{
        width: 100%;
    }
}


/** map-section styling **/
.map-section{
    width: 100%;
    padding: 20px;
    margin: 20px auto;
    border: none;
    border-radius: 8px;
}

.map-section iframe{
    width: 95%;
    height: 400px;
    margin: 0 auto;
    display: flex;
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-section iframe:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

@media (max-width:768px){
    .map-section iframe{
        height: 300px;
    }
}

@media (min-width:2560px){
    .contact-form{
        width: 1200px;
        padding: 20px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .map-section{
        width: 1400px;
    }
}


/** whatsapp floating button **/
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/** form submission message **/
.success-msg{
    display: none;
    margin-top: 10px;
    color: green;
    font-weight: 600;
}

/** sliding Animations **/
@keyframes slideFromLeft{
    from{
        opacity: 0;
        transform: translateX(-60px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight{
    from{
        opacity: 0;
        transform: translateX(60px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

/** Applying Animations **/
.contact-details{
    animation: slideFromLeft 0.9s ease-out;
}

.form-content{
    animation: slideFromRight 0.9s ease-out;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/** Contact Page Ends **/

/* Reveal Effect for Hero Section */
.contact-page {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-page.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .logo-img {
        width: 260px !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: brightness(0) invert(1) !important;
    }
}

.head-text{
    font-family: var(--head-font);
    font-style: italic;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Increased from 30px to avoid WhatsApp button */
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1d305f 0%, #5d8aaf 100%);
    color: #f8cc24;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(29, 48, 95, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #5d8aaf 0%, #1d305f 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(29, 48, 95, 0.4);
    color: #ffffff;
}

.back-to-top.show {
    display: flex;
}

/* Mobile responsive for back-to-top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
