/**
 * RealData Dynamics - Main Stylesheet
 * Color Palette from Logo:
 * - Primary Green: #8CC63F
 * - Secondary Teal: #00A99D
 * - Dark Navy: #1A3A5C
 * - Light Gray: #F8F9FA
 */

:root {
    --primary-green: #8CC63F;
    --primary-green-dark: #7AB535;
    --secondary-teal: #00A99D;
    --secondary-teal-dark: #008F85;
    --dark-navy: #1A3A5C;
    --dark-navy-light: #2A4A6C;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E9ECEF;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-navy);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green-dark);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand img {
    height: 50px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--dark-navy) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    background: rgba(140, 198, 63, 0.1);
}

/* Buttons */
.btn-primary {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 198, 63, 0.35);
}

.btn-secondary {
    background: var(--dark-navy);
    border-color: var(--dark-navy);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--dark-navy-light);
    border-color: var(--dark-navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.35);
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.btn-teal {
    background: var(--secondary-teal);
    border-color: var(--secondary-teal);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background: var(--secondary-teal-dark);
    border-color: var(--secondary-teal-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 169, 157, 0.35);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-navy) 0%, #0D2137 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-teal) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.15;
}

.hero-section .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238CC63F' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section h1 .highlight {
    color: var(--primary-green);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Cards */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

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

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-teal) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-card .icon-wrapper i {
    font-size: 28px;
    color: white;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

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

.project-card .project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-card .project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.project-card .project-body {
    padding: 25px;
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-card .category {
    display: inline-block;
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #0D2137 100%);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* About Section */
.about-section .about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-section .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.about-section .feature-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(140, 198, 63, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.about-section .feature-item .icon i {
    color: var(--primary-green);
    font-size: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-teal) 100%);
    padding: 100px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact-section .contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-section .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-section .contact-item:last-child {
    margin-bottom: 0;
}

.contact-section .contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-teal) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-section .contact-item .icon i {
    color: white;
    font-size: 20px;
}

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

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.15);
}

.contact-form textarea.form-control {
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--dark-navy);
    padding: 80px 0 30px;
}

footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

footer p,
footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--primary-green);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer .footer-brand img {
    height: 50px;
    margin-bottom: 20px;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-green);
    color: white;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #0D2137 100%);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-teal) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.15;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
    color: var(--primary-green);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Team Section */
.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
}

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

.team-card .team-image {
    height: 280px;
    background-size: cover;
    background-position: center top;
}

.team-card .team-body {
    padding: 25px;
}

.team-card h4 {
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 80px;
    }

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

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-item .stat-number {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.bg-light-green {
    background: rgba(140, 198, 63, 0.1);
}

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

.text-teal {
    color: var(--secondary-teal);
}

.text-navy {
    color: var(--dark-navy);
}
