/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #333;
}

.logo-img {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.nav-links {
    display: flex;
    gap: 2.1rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #002A69;
}

/* Main Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 3rem 3rem;
}

/* Project Header */
.project-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.project-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-header p {
    font-size: 1.25rem;
    color: #000;
    line-height: 1.7;
}

/* UNIFIED CONTENT SECTION */
.content-section {
    margin-bottom: 5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

/* Headers in sections */
.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Paragraphs in sections */
.content-section p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #000;
}

/* Half-width intro text */
.content-section .intro-text {
    max-width: 50%;
}

/* Images in sections */
.content-section img {
    width: 100%;
    border-radius: 8px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Lottie Animation Container */
.lottie-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lottie-animation {
    width: 100%;
    height: auto;
}

/* Two column layout */
.content-section.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Three column layout */
.content-section.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Split layout: one large + two stacked */
.content-section.split-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.content-section.split-layout > div {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Reverse layout for text/image alternation */
.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

/* Highlight section styling */
.content-section.highlight {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    border-left: 4px solid #333;
}

.content-section.highlight h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.content-section.highlight p {
    font-size: 1.125rem;
    color: #555;
}

/* More Work Section */
.more-work {
    background: #f8f9fa;
    padding: 5rem 3rem;
    margin: 5rem -3rem 0;
}

.more-work h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* ==========================================
   INVERTED SECTION (Black Background)
   ========================================== */

.inverted-section {
    background: #000000;
    color: #ffffff;
    padding: 5rem 3rem;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    margin-top: 5rem;
    margin-bottom: 0;
}

.inverted-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.inverted-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

.inverted-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 3rem;
}

.inverted-image {
    margin-bottom: 2.5rem;
}

.inverted-image:last-child {
    margin-bottom: 0;
}

.inverted-image img {
    width: 100%;
    border-radius: 8px;
}

  /* Blue Inverted Section Variant */
.inverted-section.inverted-blue {
    background: #162D5B;
}

/* Responsive adjustments for inverted section */
@media (max-width: 1200px) {
    .inverted-section {
        padding: 4rem 2rem;
    }
    
    .inverted-content {
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    .inverted-section {
        padding: 3rem 1.5rem;
    }
    
    .inverted-content {
        padding: 0 1.5rem;
    }

  
}


/* More Work Section (back to light) */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    aspect-ratio: 4/3;
    background: #e5e5e5;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.placeholder-pattern {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd 25%, transparent 25%),
                linear-gradient(225deg, #ddd 25%, transparent 25%),
                linear-gradient(45deg, #ddd 25%, transparent 25%),
                linear-gradient(315deg, #ddd 25%, #eee 25%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0 10px;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 1rem;
    color: #666;
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

/* Profile Section */
.profile-section {
    display: grid;
    gap: 3rem;
    margin-bottom: 6rem;
    align-items: start;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    margin: 0 auto;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

.profile-subheading {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #333;
}

/* Services Section */
.services-section {
    margin-bottom: 6rem;
}

.services-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.services-grid {
    display: grid;
    gap: 3rem;
}

.service-category {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
}

/* Individual color variations for service categories */
.service-category:nth-child(1) {
    background: #9EC646;
}

.service-category:nth-child(1) .category-title,
.service-category:nth-child(1) .skill-item,
.service-category:nth-child(1) .skill-item::before {
    color: #3A501B;
}

.service-category:nth-child(2) {
    background: #028FEE;
}

.service-category:nth-child(2) .category-title,
.service-category:nth-child(2) .skill-item,
.service-category:nth-child(2) .skill-item::before {
    color: #041835;
}

.service-category:nth-child(3) {
    background: #DE4138;
}

.service-category:nth-child(3) .category-title,
.service-category:nth-child(3) .skill-item,
.service-category:nth-child(3) .skill-item::before {
    color: #000000;
}

.service-category:nth-child(4) {
    background: #1B561A;
}

.service-category:nth-child(4) .category-title,
.service-category:nth-child(4) .skill-item,
.service-category:nth-child(4) .skill-item::before {
    color: #E0FAE0;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2D2D2D;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    font-size: 1.125rem;
    color: #2D2D2D;
    padding-left: 1.25rem;
    position: relative;
}

.skill-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2D2D2D;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: #002A69;
    padding: 4rem 3rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 4rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #D4E5FE;
}

.cta-text {
    font-size: 1.25rem;
    color: #D4E5FE;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #D4E5FE;
    color: #002A69;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Raleway', sans-serif;
}

.cta-button:hover {
    background: #028FEE;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: #666;
    border-top: 1px solid #e5e5e5;
    margin-top: 5rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (min-width: 900px) {
    /* About page desktop layout */
    .profile-section {
        grid-template-columns: 400px 1fr;
        gap: 5rem;
    }
    
    .profile-img {
        margin: 0;
    }
    
    .profile-heading {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .page-container {
        padding: 100px 2rem 2rem;
    }
    
    .nav-content {
        padding: 0 2rem;
    }
}

@media (max-width: 900px) {
    .project-header h1 {
        font-size: 2.25rem;
    }
    
    .project-header p {
        font-size: 1.125rem;
    }
    
    /* Stack only split-layout (not cols-2 or cols-3) */
    .content-section.split-layout {
        grid-template-columns: 1fr;
    }
    
    /* Keep cols-2 and cols-3 layouts on tablet */
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .more-work {
        padding: 4rem 2rem;
        margin: 4rem -2rem 0;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 90px 1.5rem 1.5rem;
    }
    
    .nav-content {
        padding: 0 1.5rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .project-header {
        margin-bottom: 3rem;
    }
    
    .project-header h1 {
        font-size: 1.75rem;
    }
    
    .project-header p {
        font-size: 1rem;
    }
    
    .content-section {
        margin-bottom: 3rem;
        gap: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p,
    .content-section .intro-text {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* Keep cols-2 and cols-3 layouts on mobile with tighter gap */
    .content-section.cols-2,
    .content-section.cols-3 {
        gap: 0.5rem;
    }
    
    .content-section.highlight {
        padding: 2rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .more-work {
        padding: 3rem 1.5rem;
        margin: 3rem -1.5rem 0;
    }
    
    /* About page mobile adjustments */
    .profile-heading {
        font-size: 1.75rem;
    }
    
    .profile-subheading {
        font-size: 1.125rem;
    }
    
    .services-title {
        font-size: 1.75rem;
    }
    
    .service-category {
        padding: 2rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .skill-item {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 3rem 2rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1.125rem;
    }
}
    
    /* Video and Lottie mobile adjustments */
    .lottie-container {
        padding: 2rem 1.5rem;
    }
}
