/* HydroSeal Website - Modern Styling with New Color Palette */

/* ============================================
   COLOR PALETTE
   ============================================
   Forest Green: #047857, #059669, #10b981
   Turquoise: #0891b2, #06b6d4, #22d3ee
   Cream: #fdfcfb, #f8f6f3, #f5f3ef
   ============================================ */

:root {
    --forest-green-dark: #065f46;
    --forest-green: #059669;
    --forest-green-light: #34d399;
    --turquoise-dark: #0891b2;
    --turquoise: #06b6d4;
    --turquoise-light: #22d3ee;
    --cream-light: #fdfcfb;
    --cream: #f8f6f3;
    --cream-dark: #f5f3ef;
    --dark-text: #1f2937;
    --gray-text: #6b7280;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: var(--cream-light);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    background: rgba(253, 252, 251, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

.navbar.scrolled {
    background: rgba(248, 246, 243, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(5, 150, 105, 0.2);
    padding: 0.2rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.logo-img {
    height: 135px;
    width: auto;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.navbar.scrolled .logo-img {
    height: 120px;
}

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

.nav-menu {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.nav-right {
    padding-right: 2rem;
    margin-left: auto;
}

.nav-link {
    color: var(--forest-green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--forest-green-dark);
}

.nav-link:hover {
    color: var(--forest-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Selector */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-option {
    color: var(--gray-text);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.lang-option.active {
    color: var(--forest-green);
    background: rgba(5, 150, 105, 0.1);
    font-weight: 600;
}

.lang-option:hover {
    color: var(--forest-green);
}

.lang-divider {
    color: var(--gray-text);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.4) 0%, 
        rgba(16, 185, 129, 0.35) 50%,
        rgba(8, 145, 178, 0.4) 100%);
    z-index: 1;
}

.hero-overlay-transparent {
    background: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    max-width: 700px;
    padding: 0 4rem;
    margin-left: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
}

.hero-quote {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    z-index: 2;
}

.quote-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    background: var(--cream-light);
    color: var(--forest-green-dark);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--forest-green-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */
.main-section {
    background: var(--white);
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: justify;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--cream);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 3rem;
    text-align: center;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.mission-card, .vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--turquoise-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mission-card h3::before {
    content: '🎯';
    font-size: 1.5rem;
}

.vision-card h3::before {
    content: '🔭';
    font-size: 1.5rem;
}

.mission-card p, .vision-card p {
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--cream-light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--turquoise);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--forest-green-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.whyus-section {
    background: linear-gradient(135deg, var(--forest-green-dark) 0%, var(--turquoise-dark) 100%);
    color: white;
    position: relative;
}

.whyus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./main.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.whyus-section .container {
    position: relative;
    z-index: 2;
}

.whyus-section .section-title,
.whyus-section .section-subtitle {
    color: white;
}

.whyus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.whyus-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whyus-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.whyus-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.whyus-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.whyus-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   GREENTRACE SECTION
   ============================================ */
.greentrace-section {
    background: var(--cream-dark);
    position: relative;
    overflow: hidden;
}

.greentrace-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.greentrace-text {
    text-align: left;
}

.greentrace-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 2rem;
}

.greentrace-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid var(--turquoise);
    text-align: left;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.15);
}

.greentrace-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--turquoise);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.greentrace-cta:hover {
    background: var(--turquoise-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.3);
}

.greentrace-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.greentrace-img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.greentrace-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--dark-text);
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3,
.newsletter h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--turquoise-light);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.9rem;
}

.contact-value {
    font-size: 1.1rem;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--turquoise-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--turquoise-light);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background: var(--turquoise-light);
    color: var(--dark-text);
}

.newsletter p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.email-input {
    padding: 1rem;
    border: 2px solid #374151;
    border-radius: 8px;
    background: #374151;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--turquoise);
    background: #4b5563;
}

.email-input::placeholder {
    color: #9ca3af;
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111827;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 180px;
    width: auto;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--turquoise-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        padding: 0;
    }
    
    .logo-img {
        height: 90px;
    }
    
    .navbar.scrolled .logo-img {
        height: 75px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-right {
        padding-right: 1rem;
    }
    
    .footer-logo img {
        height: 120px;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-quote {
        left: 2rem;
        bottom: 2rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .greentrace-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .greentrace-text {
        text-align: center;
    }
    
    .feature-item {
        text-align: left;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-quote {
        left: 1rem;
        bottom: 1rem;
    }
    
    .quote-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   3D CARDS & GLASSMORPHISM
   ============================================ */
.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(5, 150, 105, 0.1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
    border-color: var(--turquoise);
    box-shadow: 
        0 25px 50px rgba(6, 182, 212, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
}

.whyus-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transform-style: preserve-3d;
}

.whyus-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */
.hero-content,
.hero-quote {
    will-change: transform;
}

.parallax-layer {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Performance optimizations */
.hero, .whyus-section {
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
