/* TITAN CORE ENGINEERING - Updated Style Sheet */
/* New Color Palette: Deep Navy, Dark Blue, Medium Blue, Bright Teal, White */

/* ==========================================
   COLOR VARIABLES
   ========================================== */
:root {
    --primary-navy: #0B132B;      /* Deep Navy - Headers, Navigation */
    --secondary-blue: #1C2541;    /* Dark Blue - Sections, Footer */
    --medium-blue: #3A506B;       /* Medium Blue - Cards, Supporting */
    --accent-teal: #5BC0BE;       /* Bright Teal - Buttons, Highlights */
    --white: #FFFFFF;             /* White - Background, Text on dark */
    --light-gray: #F5F7FA;        /* Light backgrounds */
    --text-dark: #0B132B;         /* Primary text color */
    --text-medium: #3A506B;       /* Secondary text */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-navy);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 2rem; margin-bottom: 0.875rem; }
h4 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.25rem; margin-bottom: 0.625rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-gray);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background-color: var(--primary-navy);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(11, 19, 43, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--accent-teal);
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-teal);
}

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

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

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-blue);
    list-style: none;
    min-width: 250px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: var(--medium-blue);
    color: var(--accent-teal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.nav-cta {
    margin-left: auto;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
    border-color: var(--accent-teal);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.btn-secondary:hover {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.9) 0%, rgba(28, 37, 65, 0.8) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-teal);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(91, 192, 190, 0.1);
    color: var(--accent-teal);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   CARDS & GRIDS
   ========================================== */
.services-grid,
.why-grid,
.pillars-grid,
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card,
.why-card,
.pillar-card,
.approach-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 19, 43, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover,
.why-card:hover,
.pillar-card:hover,
.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(91, 192, 190, 0.2);
    border-color: var(--accent-teal);
}

.service-card.featured {
    border: 2px solid var(--accent-teal);
    background: linear-gradient(135deg, rgba(91, 192, 190, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.service-icon,
.pillar-icon,
.why-number {
    width: 60px;
    height: 60px;
    background-color: rgba(91, 192, 190, 0.1);
    color: var(--accent-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.why-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card h3,
.why-card h3,
.pillar-card h3,
.approach-card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--accent-teal);
}

/* ==========================================
   PORTFOLIO SECTION - FIXED STYLING
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 19, 43, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(91, 192, 190, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-gray);
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--medium-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    font-size: 3rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(91, 192, 190, 0.1);
    color: var(--accent-teal);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.portfolio-content h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray);
    color: var(--primary-navy);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================
   CASE STUDY DETAILED PAGE
   ========================================== */
.case-study-detailed {
    background-color: var(--white);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 30px rgba(11, 19, 43, 0.08);
}

.case-study-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.case-study-title-section h3 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.case-study-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.meta-tag i {
    color: var(--accent-teal);
}

.case-study-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.case-study-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content-section h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-highlights {
    list-style: none;
    margin-top: 1rem;
}

.project-highlights li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.deliverable-item {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.deliverable-item i {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.deliverable-item h5 {
    color: var(--primary-navy);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.deliverable-item p {
    font-size: 0.875rem;
    color: var(--text-medium);
}

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

.outcome-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-teal);
}

.outcome-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.outcome-icon.success {
    background-color: rgba(91, 192, 190, 0.2);
    color: var(--accent-teal);
}

.outcome-card h5 {
    color: var(--primary-navy);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.outcome-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

.case-study-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-stats {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.stat-item-large {
    text-align: center;
    padding: 1.5rem 0;
}

.stat-item-large h3 {
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.stat-item-large p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.sidebar-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.sidebar-info h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.services-list {
    list-style: none;
}

.services-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.services-list li i {
    color: var(--accent-teal);
    font-size: 0.875rem;
}

.sidebar-note {
    background-color: rgba(91, 192, 190, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-teal);
}

.sidebar-note i {
    color: var(--accent-teal);
    margin-right: 0.5rem;
}

.sidebar-note p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
}

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

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-teal);
}

.footer-tagline {
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info li i {
    color: var(--accent-teal);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

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

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

.footer-social a:hover {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-navy);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

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

    .case-study-content {
        grid-template-columns: 1fr;
    }

    .case-study-sidebar {
        order: -1;
    }
}

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

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

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

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .why-grid,
    .pillars-grid,
    .approach-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .case-study-detailed {
        padding: 2rem 1.5rem;
    }

    .deliverables-grid,
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .nav-toggle,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}