/* =============================================
   INVESTIA BRAND COLORS & VARIABLES
   ============================================= */
:root {
    /* Brand Colors */
    --color-dark-blue: #1F3E4F;
    --color-turquoise: #38AEA4;
    --color-gold: #F6B65F;

    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1F3E4F;
    --text-secondary: #666;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #1F3E4F;
    --border-color: #e0e0e0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-dark-blue) 100%);

    /* Typography */
    --font-primary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

/* Dark Mode Variables - Lighter and More Vibrant */
[data-theme="dark"] {
    --bg-primary: #1a2332;
    --bg-secondary: #243447;
    --text-primary: #f0f4f8;
    --text-secondary: #c5d0de;
    --card-bg: #243447;
    --header-bg: #1a2332;
    --footer-bg: #141d2b;
    --border-color: #2f4052;
    --color-dark-blue: #38AEA4;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-dark-blue);
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-turquoise), var(--color-gold));
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-turquoise);
    color: white;
}

.btn-primary:hover {
    background: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 174, 164, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-turquoise);
    color: var(--color-turquoise);
}

.btn-outline:hover {
    background: var(--color-turquoise);
    color: white;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0;
    gap: 40px;
}

.navbar .logo {
    margin-right: auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark-blue);
}

.logo .turquoise {
    color: var(--color-turquoise);
}

.logo-underline {
    height: 3px;
    background: linear-gradient(to right, var(--color-turquoise), var(--color-gold));
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-dark-blue);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-turquoise);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark-blue);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #2a5468 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M0,200 L50,150 L100,175 L150,125 L200,150 L250,100 L300,125 L350,75 L400,100" stroke="%2338AEA4" stroke-width="3" fill="none" opacity="0.3"/><path d="M0,250 L50,200 L100,225 L150,175 L200,200 L250,150 L300,175 L350,125 L400,150" stroke="%23F6B65F" stroke-width="3" fill="none" opacity="0.3"/><circle cx="350" cy="75" r="5" fill="%2338AEA4"/><circle cx="400" cy="100" r="5" fill="%2338AEA4"/><circle cx="350" cy="125" r="5" fill="%23F6B65F"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.2;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--color-turquoise);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Growth Arrow Animation */
.growth-arrows {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.arrow {
    width: 150px;
    height: 100px;
    position: relative;
    animation: arrowFloat 3s ease-in-out infinite;
}

.arrow:nth-child(2) {
    animation-delay: 0.5s;
    margin-left: 30px;
}

.arrow:nth-child(3) {
    animation-delay: 1s;
    margin-left: 60px;
}

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

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--color-turquoise);
    margin-bottom: 15px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pillar {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--color-turquoise);
}

.pillar:nth-child(2) {
    border-top-color: var(--color-dark-blue);
}

.pillar:nth-child(3) {
    border-top-color: var(--color-gold);
}

.pillar:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pillar h4 {
    color: var(--color-dark-blue);
    margin-bottom: 15px;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-turquoise);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 15px;
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gradient-primary);
}

.project-content {
    padding: 25px;
}

.project-tag {
    display: inline-block;
    background: var(--color-turquoise);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.project-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 10px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--color-dark-blue);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--color-turquoise);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-turquoise);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-dark-blue);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-turquoise);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--color-dark-blue);
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: var(--color-turquoise);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

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

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(56, 174, 164, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--color-turquoise);
    transform: translateY(-3px);
}

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

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .growth-arrows {
        display: none;
    }

    .theme-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .section {
        padding: 50px 0;
    }

    .theme-toggle-slider {
        width: 36px;
        height: 18px;
    }

    .theme-toggle-slider::before {
        width: 14px;
        height: 14px;
    }

    .theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-slider::before {
        transform: translateX(18px);
    }

    .hero {
        padding: 80px 0;
    }

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

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

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

/* Messages / Alerts */
.messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease-out;
}

.alert-success {
    background: var(--color-turquoise);
    color: white;
}

.alert-error {
    background: #e74c3c;
    color: white;
}

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

/* =============================================
   DARK MODE TOGGLE - Compact Design
   ============================================= */
.theme-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-label {
    display: block;
    cursor: pointer;
}

.theme-toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: var(--color-dark-blue);
    border-radius: 20px;
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover .theme-toggle-slider {
    box-shadow: 0 0 8px rgba(56, 174, 164, 0.4);
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-slider {
    background: var(--color-turquoise);
}

.theme-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-slider::before {
    transform: translateX(20px);
}

/* Dark Mode Styles for Components */
[data-theme="dark"] .header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .pillar,
[data-theme="dark"] .contact-form {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .pillar:hover {
    box-shadow: 0 8px 20px rgba(56, 174, 164, 0.3);
}

[data-theme="dark"] .section-title h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .project-content,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .pillar p {
    color: var(--text-secondary);
}

[data-theme="dark"] .project-card h3,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .pillar h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .about-text p {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-info {
    background: var(--card-bg);
}
