/* Modern Eco-Friendly Solar Design for TREEA ENERGY LANKA */

:root {
    --primary-green: #2d7a3e;
    --secondary-green: #4caf50;
    --light-green: #81c784;
    --dark-green: #1b5e20;
    --solar-yellow: #ffc107;
    --solar-orange: #ff9800;
    --sky-blue: #e3f2fd;
    --earth-brown: #795548;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fafafa;
}

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

/* Header Styles */
header {
    background: #ffffff;
    padding: 18px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(45, 122, 62, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary-green);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.1;
    white-space: nowrap;
}

.tagline {
    font-size: 0.62rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: block;
    margin: 2px 0 0 0;
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--dark-green);
    transform: scale(1.05);
}

nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

nav li {
    position: relative;
    white-space: nowrap;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    position: relative;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    background: var(--primary-green);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: var(--primary-green);
    background: rgba(45, 122, 62, 0.06);
}

nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

nav a.active {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 3px 10px rgba(45, 122, 62, 0.3);
}

nav a.active::after {
    display: none;
}

/* MD Message Section */
.md-message {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f9f5 0%, #ffffff 100%);
}

.md-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.md-image {
    position: sticky;
    top: 100px;
}

.md-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.md-title {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.md-title h3 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin: 0 0 5px 0;
    font-weight: 700;
}

.md-title p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.md-text h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.md-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--solar-yellow);
    border-radius: 2px;
}

.md-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.md-experience {
    margin-top: 35px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-green);
}

.md-experience h4 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.md-experience p {
    margin-bottom: 15px;
}

.md-experience ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.md-experience li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.md-experience li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--sky-blue) 0%, #c8e6c9 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x bottom;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--solar-yellow);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-dark);
    opacity: 0.9;
}

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

.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 122, 62, 0.3);
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(45, 122, 62, 0.2);
    border-color: var(--light-green);
}

.service-icon {
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.service-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--primary-green);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    fill: var(--secondary-green);
    transform: scale(1.1);
}

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

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-green);
    font-weight: 600;
}

.service-card p {
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--dark-green);
    transform: translateX(5px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--solar-yellow);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-green);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--solar-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    opacity: 0.8;
}

/* Coming Soon Section */
.coming-soon {
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f9f5 0%, #ffffff 100%);
}

.coming-soon-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-content h1 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.coming-soon-title {
    font-size: 3.5rem;
    color: var(--solar-yellow);
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.coming-soon-text {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.coming-soon-cta {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.coming-soon-cta p {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 600;
}

.coming-soon-cta .btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
}

.service-detail {
    padding: 60px 0;
    background-color: #fff;
}

.service-detail h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2e7d32;
}

.service-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-detail h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #333;
}

.service-detail ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-detail li {
    margin-bottom: 10px;
}

.contact {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2e7d32;
}

.contact p {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 40px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #1b5e20;
}

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.float-btn .icon {
    font-size: 1.8rem;
}

.float-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.phone-btn {
    background: linear-gradient(135deg, #4caf50, #2d7a3e);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.email-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.float-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(76, 175, 80, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    header {
        padding: 15px 0;
    }

    header .container {
        gap: 15px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        display: none;
        border-top: 1px solid rgba(45, 122, 62, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 15px;
        gap: 5px;
    }

    nav a {
        display: block;
        padding: 14px 20px;
        border-radius: 8px;
    }

    nav a::after {
        display: none;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .md-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .md-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .md-text h2 {
        font-size: 1.6rem;
    }

    .md-text p {
        font-size: 1rem;
    }

    .coming-soon {
        padding: 60px 0;
    }

    .coming-soon-content h1 {
        font-size: 2rem;
    }

    .coming-soon-title {
        font-size: 2.5rem;
    }

    .coming-soon-text {
        font-size: 1.1rem;
    }

    .coming-soon-cta {
        padding: 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo img {
        width: 70px;
        max-height: 70px;
    }

    .floating-contacts {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .float-btn {
        width: 55px;
        height: 55px;
    }

    .float-btn .icon {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
