/* Custom CSS for Terios Website */

/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-4 {
    font-weight: 800;
    font-size: 2.8rem;
}

.display-5 {
    font-weight: 700;
    font-size: 2.2rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Colors */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(44, 62, 80, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30%;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section-about {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)), 
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
    margin-top: 76px;
}

.hero-section-contact {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)), 
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
    margin-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.1);
    z-index: 1;
}

.hero-section .container,
.hero-section-about .container,
.hero-section-contact .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    transition: var(--transition);
    z-index: 1;
    position: relative;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pillar Cards */
.pillar-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.pillar-card:hover::before {
    left: 0;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pillar-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Cards */
.contact-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.contact-card:hover::before {
    left: 0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats */
.stat-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Images */
img {
    transition: var(--transition);
}

img:hover {
    transform: scale(1.02);
}

/* Map */
.map-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section,
    .hero-section-about,
    .hero-section-contact {
        background-attachment: scroll;
        padding: 2rem 0;
        min-height: 35vh;
    }
    
    .hero-section-about,
    .hero-section-contact {
        padding: 4rem 0 3rem 0;
        margin-top: 60px;
    }
    
    /* Better hero section spacing for tablets */
    .hero-section .min-vh-100 {
        min-height: 50vh !important;
        padding: 2rem 0;
    }
    
    /* Hero section button spacing for mobile */
    .hero-section .d-flex.gap-3 {
        margin-bottom: 2rem;
    }
    
    /* Hero section container padding for mobile */
    .hero-section .container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Hero section title spacing for mobile */
    .hero-section h1 {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    /* Fix button spacing in contact page */
    .btn-lg.me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    /* Responsive spacing for mobile */
    section.py-5 {
        padding: 3rem 0 !important;
    }
    
    .row.align-items-center {
        margin-bottom: 3rem;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    /* Ensure stat cards have equal height on tablets */
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Image spacing improvements */
    .img-fluid {
        margin-bottom: 2rem;
    }
    
    /* Hero section image spacing */
    .hero-section .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    /* Better spacing between hero content */
    .hero-section .row {
        gap: 1rem;
    }
    
    /* Ensure hero content is properly centered */
    .hero-section .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    /* Extra margin for hero buttons to prevent collision */
    .hero-section .d-flex.gap-3 {
        margin-bottom: 2rem;
    }
    
    /* Stat cards equal height */
    .stat-card {
        margin-bottom: 1rem;
        min-height: 100px;
    }
    
    /* Additional spacing for specific sections */
    .why-choose-section .row.align-items-center,
    .company-history-section .row.align-items-center,
    .expertise-section .row.align-items-center {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section .container,
    .hero-section-about .container,
    .hero-section-contact .container {
        padding: 1rem;
    }
    
    .hero-section-about,
    .hero-section-contact {
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 > * {
        width: 100%;
        text-align: center;
    }
    
    .service-card,
    .pillar-card,
    .contact-card {
        margin-bottom: 1rem;
    }
    
    .floating-buttons {
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .scroll-to-top {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    /* Enhanced spacing for small screens */
    section.py-5 {
        padding: 2.5rem 0 !important;
    }
    
    .row.align-items-center {
        margin-bottom: 2rem;
    }
    
    .col-lg-6,
    .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .col-lg-6:last-child,
    .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    /* Hero section specific adjustments */
    .hero-section {
        min-height: 40vh;
        padding: 2rem 0;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    /* Override hero section min-height for better spacing */
    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero section button spacing for small screens */
    .hero-section .d-flex.gap-3 {
        margin-bottom: 2rem;
    }
    
    /* Hero section container padding for small screens */
    .hero-section .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Hero section title spacing for small screens */
    .hero-section h1 {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Stat cards for small screens */
    .stat-card {
        margin-bottom: 1rem;
        min-height: 90px;
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card p {
        font-size: 0.9rem;
    }
    
    /* Image spacing */
    .img-fluid {
        margin-bottom: 1.5rem;
    }
    
    /* Hero section image specific spacing */
    .hero-section .img-fluid {
        margin-bottom: 0;
    }
    
    /* Section content spacing */
    .container > .row {
        margin-bottom: 1.5rem;
    }
    
    .container > .row:last-child {
        margin-bottom: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Focus States */
.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive Spacing */
section {
    padding: 5rem 0;
}

section.py-5 {
    padding: 5rem 0 !important;
}

.section-spacing {
    margin: 3rem 0;
}

/* Ensure equal height stat cards */
.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 500;
}

/* Section spacing improvements */
.row.align-items-center {
    margin-bottom: 3rem;
}

.row.align-items-center:last-child {
    margin-bottom: 0;
}

/* Image spacing */
.img-fluid {
    margin-bottom: 2rem;
}

/* Hero section improvements */
.hero-section .row.align-items-center {
    margin-bottom: 0;
}

/* Hero section title spacing - avoid collision with menu */
.hero-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-section h1 {
    margin-top: 1rem;
}

/* Hero section responsive height control */
.hero-section .min-vh-100 {
    min-height: 100vh;
}

@media (max-width: 991px) {
    .hero-section .min-vh-100 {
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    .hero-section .min-vh-100 {
        min-height: 50vh;
    }
}

/* Small tablet adjustments for hero section */
@media (max-width: 768px) and (min-width: 577px) {
    .hero-section .d-flex.gap-3 {
        margin-bottom: 2.5rem;
    }
    
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section h1 {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 2rem 0;
        gap: 1.5rem;
    }
}

/* Section specific improvements */
.why-choose-section .img-fluid,
.company-history-section .img-fluid,
.expertise-section .img-fluid {
    margin-bottom: 2rem;
}

.company-history-section .stat-card {
    margin-bottom: 1rem;
}

.company-history-section .stat-card:last-child {
    margin-bottom: 0;
}

/* Responsive grid adjustments */
@media (max-width: 991px) {
    .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    .why-choose-section .col-lg-6:first-child,
    .expertise-section .col-lg-6:first-child {
        order: 2;
    }
    
    .why-choose-section .col-lg-6:last-child,
    .expertise-section .col-lg-6:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .company-history-section .col-lg-6:first-child {
        order: 2;
        margin-bottom: 2rem;
    }
    
    .company-history-section .col-lg-6:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 0;
    }
    
    /* Hero section specific spacing for tablets */
    .hero-section .d-flex.gap-3 {
        margin-bottom: 2.5rem;
    }
    
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Tablet specific adjustments for hero section */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-section .d-flex.gap-3 {
        margin-bottom: 3rem;
    }
    
    .hero-section .container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .hero-section h1 {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

/* Medium screens (tablets) */
@media (max-width: 991px) and (min-width: 768px) {
    .display-4 {
        font-size: 2.4rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-section-about,
    .hero-section-contact {
        min-height: 35vh;
        padding: 5rem 0 3rem 0;
    }
    
    /* Better hero section spacing for medium screens */
    .hero-section .min-vh-100 {
        min-height: 60vh !important;
        padding: 3rem 0;
    }
    
    /* Hero section button spacing for tablets */
    .hero-section .d-flex.gap-3 {
        margin-bottom: 2rem;
    }
    
    /* Hero section container padding for tablets */
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    section.py-5 {
        padding: 4rem 0 !important;
    }
    
    .row.align-items-center {
        margin-bottom: 3rem;
    }
    
    .img-fluid {
        margin-bottom: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.scroll-to-top {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Footer Styles */
footer .list-unstyled a {
    transition: var(--transition);
    padding: 2px 0;
    display: inline-block;
}

footer .list-unstyled a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
    transform: translateX(5px);
}

footer .text-light a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

footer .text-light a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .hero-section-about,
    .hero-section-contact,
    .floating-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
} 