/* Global Styles */
:root {
    --primary-blue: #0056b3;
    --primary-blue-dark: #003d80;
    --secondary-blue: #e0f2ff;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f4f9;
    --accent-orange: #ff9800;
    --brand-gold: #D4AF37;
    /* New Brand Gold */
    /* For subtle highlights if needed */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Helper Classes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-gold);
    border: 2px solid var(--brand-gold);
}

.btn-secondary:hover {
    background-color: var(--brand-gold);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-gold);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--brand-gold);
    /* Gold hover effect */
}

.nav-cta {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: var(--brand-gold);
    /* Gold CTA in Nav */
    border-color: var(--brand-gold);
    color: var(--white);
}

.nav-cta:hover {
    background-color: #bfa030;
    /* Darker gold */
    border-color: #bfa030;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-blue) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subheadline {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Hero Visual Placeholder Styling */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    /* Simulate the split screen */
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    border: 1px solid var(--brand-gold);
    /* Subtle gold border */
}

.visual-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 1px solid #e0e0e0;
}

.visual-label {
    margin-top: 15px;
    font-weight: 600;
    color: var(--brand-gold);
    /* Gold Label */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CSS specific mockups for the visual */
.screen-mockup {
    width: 100%;
    height: 100px;
    background: #333;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.code-lines {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-lines span {
    display: block;
    height: 6px;
    background: #555;
    border-radius: 3px;
    width: 100%;
}

.code-lines span:nth-child(2) {
    width: 70%;
}

.code-lines span:nth-child(3) {
    width: 90%;
}

.solar-mockup {
    width: 100%;
    height: 100px;
    background: linear-gradient(45deg, #1e88e5, #1565c0);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.panel-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Pillars Section */
.pillars {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid transparent;
}

.pillar-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-gold);
    /* Gold border on hover */
    transform: translateY(-5px);
    background: var(--white);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brand-gold);
    /* Gold Icons */
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Value Proposition */
.value-prop {
    padding: 80px 0;
    /* Blend Gold into the blue background? 
       No, let's keep it solid blue but use gold accents 
       or use a gradient from blue to a darker gold-ish blue? 
       Let's stick to the primary blue background but make the check icons gold.
    */
    background-color: var(--primary-blue);
    color: var(--white);
}

.value-prop .section-title {
    color: var(--white);
    margin-bottom: 40px;
    text-align: left;
}

.value-content {
    max-width: 800px;
    margin: 0 auto;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-gold);
    /* Gold accent border */
}

.check-icon {
    width: 30px;
    height: 30px;
    background-color: var(--white);
    color: var(--brand-gold);
    /* Gold Check marks */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.value-text h4 {
    color: var(--white);
    margin: 0 0 5px 0;
    font-size: 1.25rem;
}

.value-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: var(--white);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Update Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-light);
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        margin-top: 40px;
        transform: none;
        /* Reset rotation for cleaner mobile view */

    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-gold);
}

.portfolio-image {
    height: 200px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS Patterns for Portfolio Placeholders */
.portfolio-image.software {
    background: linear-gradient(135deg, #1a237e, #283593);
}

.portfolio-image.security {
    background: linear-gradient(135deg, #263238, #37474f);
}

.portfolio-image.solar {
    background: linear-gradient(135deg, #f57f17, #f9a825);
}

.portfolio-image .overlay-icon {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-category {
    font-size: 0.85rem;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-blue-dark);
}

.portfolio-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* Quote Section */
.quote-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.quote-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--brand-gold);
}

.quote-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-header h2 {
    font-size: 2rem;
    color: var(--primary-blue-dark);
    margin-bottom: 10px;
}

.quote-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    /* Gold focus ring */
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    background-color: var(--brand-gold);
    /* Gold submit button */
    border-color: var(--brand-gold);
}

.btn-block:hover {
    background-color: #bfa030;
    border-color: #bfa030;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .quote-wrapper {
        padding: 20px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--brand-gold);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--brand-gold);
}

/* Adjust quote-wrapper for modal context */
.modal-content .quote-wrapper {
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-top: none;
    border-radius: 0;
    max-width: 100%;
}

/* Ensure form fits nicely */
.modal-content .quote-header {
    margin-bottom: 20px;
}

.modal-content .quote-header h2 {
    font-size: 1.8rem;
    margin-top: 10px;
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}