/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #0f3a54;
    --secondary-color: #1a5277;
    --accent-color: #1a5277;
    --warm-accent: #E6B325;
    --light-bg: #f7f9fc;
    --dark-bg: #0f172a;
    --text-color: #1f2937;
    --text-light: #f5f5f5;
    --transition-speed: 0.3s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

@media (hover: hover) {
    a:hover {
        color: var(--accent-color);
    }
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
}

@media (hover: hover) {
    .nav-links li a:hover {
        color: var(--secondary-color);
    }
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 45vh;
    background: linear-gradient(120deg, rgba(15,58,84,0.90) 0%, rgba(26,82,119,0.90) 100%), url('../assets/Background.png') no-repeat;
    background-size: 120% auto;
    background-position: left center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7rem;
    font-weight: 700;
    margin-bottom: -0.5rem;
    padding-bottom: 0;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.6rem;
    margin-top: -2.0rem;
    margin-bottom: 2.5rem;
    padding-top: 0;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.btn {
    background: #000;
    color: #fff;
    padding: 1.1rem 2.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) {
    .btn:hover {
        color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }
}

/* About Section */
.about {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.about h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-image {
    width: 55%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin: 0 auto;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
}

@media (hover: hover) {
    .about-image:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
}

.about-text ul {
    margin-top: 1rem;
    list-style: none;
}

.about-text li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.about-text li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Page Section Utility */
.page-section {
    padding-top: 6rem;
}

/* Projects Section */
.projects-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.projects-section p {
    max-width: 700px;
    margin: 0.5rem auto 2rem auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(15, 58, 84, 0.12);
        border-color: rgba(26, 82, 119, 0.2);
    }
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
    text-align: center;
}

.project-card .description {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1rem;
}

.project-meta .language {
    font-weight: 600;
    color: var(--accent-color);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card .project-link {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

@media (hover: hover) {
    .project-card .project-link:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 58, 84, 0.3);
    }
}

/* Writing Section */
.writing-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.writing-section p {
    max-width: 700px;
    margin: 0.5rem auto 2rem auto;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

@media (hover: hover) {
    .post-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(15, 58, 84, 0.12);
        border-color: rgba(26, 82, 119, 0.2);
    }
}

.post-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.post-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-card button.read-more {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed);
}

@media (hover: hover) {
    .post-card button.read-more:hover {
        background-color: var(--secondary-color);
    }
}

.post-content {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Services Section */
.services-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.services-section p {
    max-width: 700px;
    margin: 0.5rem auto 2rem auto;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.service-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed);
}

@media (hover: hover) {
    .service-button:hover {
        background-color: var(--secondary-color);
    }
}

/* Contact Section */
.contact {
    background-color: rgba(13, 52, 80, 0.85);
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem 0;
}

/* Consultancy page specific contact styling */
.consultancy-page .contact {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.contact p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.6rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background-color: rgba(230, 235, 240, 0.25);
    padding: 0.45rem 0.75rem;
    border-radius: 5px;
    color: var(--text-light);
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
    .contact-link:hover {
        background-color: rgba(240, 245, 250, 0.35);
        color: var(--text-light);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* AI Consultancy Page Styles */

/* Simple Header (not full hero) */
/* AI Consultancy Page - Blue Theme */
body.consultancy-page {
    background: linear-gradient(135deg, #0f3a54 0%, #1a5277 100%);
    min-height: 100vh;
}

/* Landing Page */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f3a54 0%, #1a5277 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-content {
    text-align: center;
    padding: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.landing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
}

.landing-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    font-style: normal;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
    max-width: 900px;
    line-height: 1.6;
    opacity: 0.75;
}

.countdown-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.main-content-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease 0.3s, visibility 0.8s ease 0.3s;
}

.main-content-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Landing Page */
@media screen and (max-width: 1024px) {
    .landing-title {
        font-size: 4.5rem;
    }

    .landing-subtitle {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    .landing-title {
        font-size: 3rem;
    }

    .landing-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .countdown-number {
        font-size: 3rem;
    }

    .landing-content {
        padding: 0 1.5rem;
        text-align: center;
    }

    /* Reviews section mobile */
    .unified-reviews-section {
        padding: 1rem 0 3rem 0;
    }

    .unified-reviews-section h2 {
        font-size: 1.75rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .review-card {
        padding: 0.45rem;
    }

    .review-header {
        margin-bottom: 0.5rem;
    }

    .review-overall-rating {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .review-overall-rating strong {
        font-size: 0.6rem;
    }

    .review-overall-rating .review-stars {
        font-size: 0.65rem;
        letter-spacing: 0.03rem;
        transform: translateY(-1px);
        display: inline-block;
    }

    .review-category-breakdown {
        margin-bottom: 0.5rem;
    }

    .review-category-item {
        font-size: 0.55rem;
        margin-bottom: 0.25rem;
    }

    .review-category-item .category-name {
        font-size: 0.55rem;
    }

    .review-category-item .category-stars {
        font-size: 0.6rem;
        letter-spacing: 0.015rem;
    }

    .review-category-item .category-value {
        font-size: 0.5rem;
    }

    .review-text {
        font-size: 0.65rem;
        line-height: 1.65;
        max-height: 3.22rem; /* Exactly 3 lines: 0.65 × 1.65 × 3 */
    }

    .review-text.expanded {
        max-height: 2000px;
    }

    .read-more-btn {
        font-size: 0.6rem;
        padding: 0.4rem 0 0 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .reviews-actions {
        margin-bottom: 2.5rem;
    }

    .leave-review-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .landing-title {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .landing-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .landing-content {
        padding: 0 1rem;
    }

    /* Reviews section extra small mobile */
    .unified-reviews-section h2 {
        font-size: 1.5rem;
    }

    .reviews-subtitle {
        font-size: 0.9rem;
    }

    .review-card {
        padding: 0.35rem;
    }

    .review-header {
        margin-bottom: 0.45rem;
        gap: 0.25rem;
    }

    .review-author {
        font-size: 0.6rem;
    }

    .review-author strong {
        font-size: 0.6rem;
    }

    .review-author em {
        font-size: 0.55rem;
    }

    .review-date {
        font-size: 0.55rem;
    }

    .review-overall-rating {
        margin-bottom: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .review-overall-rating strong {
        font-size: 0.6rem;
        margin-bottom: 0.15rem;
    }

    .review-overall-rating .review-stars {
        font-size: 0.6rem;
        letter-spacing: 0.02rem;
        transform: translateY(-1px);
        display: inline-block;
    }

    .review-category-breakdown {
        margin-bottom: 0.45rem;
    }

    .review-category-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.3rem;
        margin-bottom: 0.25rem;
        font-size: 0.5rem;
    }

    .review-category-item .category-name {
        min-width: auto;
        flex: 0 0 auto;
        font-size: 0.5rem;
    }

    .review-category-item .category-stars {
        font-size: 0.55rem;
        letter-spacing: 0.01rem;
        flex-shrink: 0;
    }

    .review-category-item .category-value {
        font-size: 0.45rem;
        min-width: auto;
        flex-shrink: 0;
    }

    .review-text {
        font-size: 0.6rem;
        line-height: 1.6;
        max-height: 2.88rem; /* Exactly 3 lines: 0.6 × 1.6 × 3 */
    }

    .review-text.expanded {
        max-height: 2000px;
    }

    .review-text-container {
        margin-top: 0.35rem;
    }

    .read-more-btn {
        font-size: 0.55rem;
        padding: 0.45rem 0 0 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .reviews-actions {
        margin-bottom: 2rem;
    }

    .leave-review-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Modal adjustments for small screens */
    .review-modal .modal-content {
        max-width: 100%;
        margin: 1rem;
    }
}

.consultancy-header {
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0 2.5rem 0;
    margin-top: 60px;
}

.consultancy-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: #fff;
}

.consultancy-header .header-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.88;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Service Selection Interface */
.service-selection {
    padding: 5rem 0 1.5rem 0;
}

.service-selection h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.selection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.selection-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 3px solid transparent;
}

@media (hover: hover) {
    .selection-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--warm-accent);
    }
}

.selection-card i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    display: block;
}

.selection-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.selection-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.selection-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: 'Inter', sans-serif;
}

@media (hover: hover) {
    .selection-btn:hover {
        background-color: var(--secondary-color);
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(15, 58, 84, 0.3);
    }
}

/* Unified Reviews Section */
.unified-reviews-section {
    padding: 1.5rem 0 4rem 0;
}

.unified-reviews-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.reviews-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: start; /* Each card only takes its own content height */
}

.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    padding: 3rem 1rem;
    font-style: italic;
}

.review-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto; /* Allow card to grow with content */
    align-self: start; /* Don't stretch in grid */
}

@media (hover: hover) {
    .review-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    font-size: 1rem;
    color: var(--primary-color);
}

.review-author strong {
    font-weight: 600;
}

.review-author em {
    color: #666;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.review-overall-rating {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.review-overall-rating strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.review-overall-rating .review-stars {
    font-size: 1rem;
    color: #ffd700;
    letter-spacing: 0.05rem;
    transform: translateY(-2px);
    display: inline-block;
}

.review-category-breakdown {
    margin-bottom: 1rem;
}

.review-category-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.review-category-item .category-name {
    font-weight: 600;
    color: #7987a8;
    min-width: 80px;
}

.review-category-item .category-stars {
    color: #ffd700;
    font-size: 0.75rem;
    letter-spacing: 0.01rem;
}

.review-category-item .category-value {
    color: #7987a8;
    font-size: 0.7rem;
}

.review-text-container {
    margin-top: 0.75rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    max-height: 4.56rem; /* Exactly 3 lines: 0.95 × 1.6 × 3 */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
    display: block;
}

.review-text.expanded {
    max-height: 2000px; /* Large enough for any review */
    transition: max-height 0.5s ease-in-out;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0 0 0;
    margin-top: 0.25rem;
    transition: color 0.2s ease;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

@media (hover: hover) {
    .read-more-btn:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }
}

.reviews-actions {
    text-align: center;
    margin-bottom: 3rem;
}

.leave-review-btn {
    background: var(--warm-accent);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(230, 179, 37, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (hover: hover) {
    .leave-review-btn:hover {
        background: #f5c43e;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(230, 179, 37, 0.4);
    }
}

/* Unified Review Modal Form Styling */
.review-modal .form-group input[type="text"] {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.review-modal .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Back Button */
.back-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

@media (hover: hover) {
    .back-btn:hover {
        background-color: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateX(-5px);
    }
}

.back-btn i {
    font-size: 0.85rem;
}

/* Hidden class for toggling sections */
.hidden {
    display: none !important;
}

/* Consultancy Sections */
.consultancy-content {
    min-height: 50vh;
    padding-bottom: 3.5rem;
}

.consultancy-section {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-icon {
    font-size: 2.75rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

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

.info-box {
    background: #fff;
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(15, 58, 84, 0.1);
}

.info-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.styled-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(230, 179, 37, 0.1), rgba(26, 82, 119, 0.1));
    padding: 1.75rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid rgba(230, 179, 37, 0.3);
}

.highlight-box i {
    font-size: 2.25rem;
    color: var(--warm-accent);
    margin-bottom: 0.75rem;
}

.highlight-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-box p {
    font-size: 1.05rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}

.workshop-formats {
    margin: 2rem 0;
}

.workshop-formats h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.format-card {
    background: #fff;
    padding: 1.35rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

@media (hover: hover) {
    .format-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
}

.format-card i {
    font-size: 1.85rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.format-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.format-card p {
    font-size: 0.9rem;
    color: #666;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 3rem 0;
}

/* Form Styles */
.form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 2.5rem 0;
}

.form-container h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.consultation-form .form-group {
    margin-bottom: 1.5rem;
}

.consultation-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.consultation-form input[type="text"],
.consultation-form input[type="email"],
.consultation-form input[type="tel"],
.consultation-form input[type="number"],
.consultation-form select,
.consultation-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition-speed);
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.consultation-form textarea {
    resize: vertical;
}

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

.hidden {
    display: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem auto 0 auto;
}

@media (hover: hover) {
    .submit-btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 58, 84, 0.3);
    }
}

.submit-btn i {
    font-size: 0.9rem;
}

/* Reviews Section */
.reviews-section {
    margin-top: 2.5rem;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
}

.reviews-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start; /* Each card only takes its own content height */
}

.review-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    height: auto; /* Allow card to grow with content */
    align-self: start; /* Don't stretch in grid */
}

.review-rating {
    color: var(--warm-accent);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    letter-spacing: 2px;
    line-height: 1;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

/* Category-based review display */
.review-overall-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.review-overall-rating strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.review-overall-rating .review-stars {
    color: var(--warm-accent);
    font-size: 1.1rem;
    letter-spacing: 0.05rem;
    line-height: 1;
    transform: translateY(-2px);
}

.review-category-breakdown {
    margin-bottom: 1rem;
}

.review-category-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0;
    font-size: 0.85rem;
}

.review-category-item .category-name {
    flex: 1;
    color: #555;
    font-weight: 500;
}

.review-category-item .category-stars {
    color: var(--warm-accent);
    font-size: 0.85rem;
    letter-spacing: 0.01rem;
    line-height: 1;
}

.review-category-item .category-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.7rem;
}

.no-reviews {
    text-align: center;
    color: #999;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 1rem;
}

.error-reviews,
.loading-reviews {
    text-align: center;
    grid-column: 1 / -1;
    padding: 1.5rem 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.error-reviews {
    color: #d32f2f;
    font-weight: 500;
}

.loading-reviews {
    color: #666;
    font-style: italic;
}

.review-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-form-container h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.review-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rating-categories {
    margin-bottom: 1.25rem;
    padding: 0.85rem;
    background: #f9fafb;
    border-radius: 8px;
}

.rating-categories h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.rating-category {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5e7eb;
}

.rating-category:last-of-type {
    border-bottom: none;
}

.rating-category label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 0.88rem;
}

.rating-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.rating-instruction {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.star-rating .star {
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: #ddd;
    transition: all 0.2s ease;
    user-select: none;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .star-rating .star:hover {
        color: var(--warm-accent);
        transform: scale(1.1);
    }
}

.star-rating .star.filled {
    color: var(--warm-accent);
}

.overall-rating {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--accent-color);
    text-align: center;
}

.overall-rating strong {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.overall-rating span {
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* Form group styling for review form */
.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.review-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition-speed);
    resize: vertical;
    min-height: 90px;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 82, 119, 0.1);
}

/* Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.review-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@media screen and (max-width: 480px) {
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

@media (hover: hover) {
    .modal-close:hover {
        color: var(--primary-color);
    }
}

.modal-body {
    padding: 1.25rem;
}

/* Compact styles for modal content */
.review-modal .review-note {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.review-modal .rating-categories {
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.review-modal .rating-categories h5 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.review-modal .rating-instruction {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.review-modal .rating-category {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
}

.review-modal .rating-category label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.review-modal .star-rating {
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.review-modal .star-rating .star {
    font-size: 1.2rem;
}

.review-modal .overall-rating {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.review-modal .overall-rating strong {
    font-size: 0.9rem;
}

.review-modal .overall-rating span {
    font-size: 0.9rem;
}

.review-modal .form-group {
    margin-bottom: 1rem;
}

.review-modal .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.review-modal textarea {
    font-size: 0.9rem;
}

.review-modal .submit-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.open-review-modal-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.7rem 1.35rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

@media (hover: hover) {
    .open-review-modal-btn:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
    }
}

.open-review-modal-btn i {
    margin-right: 0.4rem;
}

.open-consultation-modal-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

@media (hover: hover) {
    .open-consultation-modal-btn:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.open-consultation-modal-btn i {
    margin-right: 0.4rem;
}

/* Compact modal form styling */
.review-modal .consultation-form .form-group {
    margin-bottom: 1rem;
}

.review-modal .consultation-form label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.review-modal .consultation-form input,
.review-modal .consultation-form select,
.review-modal .consultation-form textarea {
    font-size: 0.9rem;
}

.review-modal .consultation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media screen and (max-width: 480px) {
    .review-modal .consultation-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* Footer */
.footer {
    background-color: #081f4a;
    color: var(--text-light);
    padding: 1.5rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
    .container {
        width: 92%;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .about h2,
    .projects-section h2,
    .writing-section h2 {
        font-size: 2.4rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .consultancy-header h1 {
        font-size: 3.5rem;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    /* Navigation - Clean hamburger menu */
    .nav-container {
        height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(15, 58, 84, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 0.75rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        transition: all 0.2s ease;
        background-color: transparent;
        border-radius: 0;
    }

    .nav-links li a:hover {
        background-color: rgba(15, 58, 84, 0.08);
        padding-left: 1rem;
        transform: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 30px;
        height: 21px;
        cursor: pointer;
        background: transparent;
        border: none;
        transition: all 0.2s ease;
        padding: 0;
        position: relative;
    }

    .nav-toggle:hover {
        opacity: 0.7;
    }

    /* Hide Font Awesome icon */
    .nav-toggle i {
        display: none;
    }

    /* Create three equal lines */
    .nav-toggle::before,
    .nav-toggle::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #0f3a54;
        border-radius: 2px;
        transition: all 0.3s ease;
        left: 0;
    }

    .nav-toggle::before {
        top: 0;
    }

    .nav-toggle::after {
        bottom: 0;
    }

    /* Middle line using background */
    .nav-toggle {
        background:
            linear-gradient(to bottom,
                transparent 0%,
                transparent calc(50% - 1.5px),
                #0f3a54 calc(50% - 1.5px),
                #0f3a54 calc(50% + 1.5px),
                transparent calc(50% + 1.5px),
                transparent 100%);
    }

    /* Container */
    .container {
        width: 92%;
        padding: 2rem 0;
    }

    /* Hero Section */
    .hero {
        height: 45vh;
        min-height: 380px;
        background: linear-gradient(120deg, rgba(15,58,84,0.90) 0%, rgba(26,82,119,0.90) 100%), url('../assets/Background.png') no-repeat;
        background-size: cover;
        background-position: center center;
        margin-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: -0.2rem;
        padding-bottom: 0;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1.35rem;
        margin-top: -1rem;
        margin-bottom: 2rem;
        padding-top: 0;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        line-height: 1.6;
    }

    /* About Section */
    .about {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        width: 75%;
        max-width: 350px;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.8;
        text-align: center;
    }

    .about-text ul {
        list-style-position: inside;
    }

    .about-text li {
        margin-bottom: 0.75rem;
        text-align: center;
    }

    /* Page Sections - Override for mobile */
    .page-section {
        padding-top: 5rem;
    }

    .projects-section,
    .writing-section {
        padding-top: 5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-section h2,
    .writing-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .projects-section p,
    .writing-section p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }

    .project-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .project-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .project-card .description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .project-links {
        gap: 0.85rem;
        justify-content: center;
    }

    .project-card .project-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
        min-width: 90px;
        text-align: center;
    }

    /* Writing/Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .post-card h3 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .post-date {
        font-size: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .post-excerpt {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .post-card button.read-more {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .service-card {
        padding: 1.75rem;
        border-radius: 12px;
    }

    .service-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.85rem;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .service-button {
        padding: 0.65rem 1.3rem;
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact {
        padding: 1rem 0;
    }

    .contact h2 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .contact p {
        display: none;
    }

    .contact-links {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin-top: 0.35rem;
    }

    .contact-link {
        width: auto;
        min-width: 80px;
        max-width: 110px;
        justify-content: center;
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
        gap: 0.35rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .contact-link i {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.75rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .open-consultation-modal-btn,
    .open-review-modal-btn {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
    }

    .back-btn {
        padding: 0.65rem 1.35rem;
        min-height: 44px;
    }

    /* Footer */
    .footer {
        padding: 1.25rem 0;
    }

    .footer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Consultancy Page Responsive */
    .consultancy-header {
        padding: 3rem 0 2.5rem 0;
    }

    .consultancy-header h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .consultancy-header .header-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .service-selection {
        padding: 4rem 0 1rem 0;
    }

    .service-selection h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .selection-cards {
        gap: 2rem;
    }

    .selection-card {
        padding: 1.5rem 1.25rem;
    }

    .selection-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .selection-card h3 {
        font-size: 1.4rem;
    }

    .selection-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .selection-btn {
        padding: 0.85rem 2.25rem;
        font-size: 1rem;
    }

    /* Consultancy Content Mobile Styles */
    .highlight-box {
        padding: 1.5rem 1.25rem;
        margin: 1.5rem 0;
    }

    .highlight-box h3 {
        font-size: 1.4rem;
    }

    .highlight-box p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .info-box {
        padding: 1.5rem 1.25rem;
    }

    .info-box h3 {
        font-size: 1.25rem;
    }

    .reviews-section {
        padding: 1.5rem 1rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 480px) {
    /* Container */
    .container {
        width: 90%;
    }

    /* Hero */
    .hero {
        height: 40vh;
        min-height: 350px;
        background: linear-gradient(120deg, rgba(15,58,84,0.90) 0%, rgba(26,82,119,0.90) 100%), url('../assets/Background.png') no-repeat;
        background-size: cover;
        background-position: center center;
        margin-bottom: 55px;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: -0.2rem;
        padding-bottom: 0;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-top: -0.9rem;
        margin-bottom: 1.75rem;
        padding-top: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        line-height: 1.55;
    }

    /* Navigation - Smaller hamburger */
    .nav-container {
        height: 55px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-toggle {
        width: 28px;
        height: 19px;
        background:
            linear-gradient(to bottom,
                transparent 0%,
                transparent calc(50% - 1.5px),
                #0f3a54 calc(50% - 1.5px),
                #0f3a54 calc(50% + 1.5px),
                transparent calc(50% + 1.5px),
                transparent 100%);
        border: none;
    }

    .nav-links {
        max-width: 220px;
        padding: 1.25rem;
    }

    .nav-links li a {
        font-size: 0.95rem;
        padding: 0.85rem 0.65rem;
    }

    /* Page Section Spacing */
    .page-section {
        padding-top: 5rem;
    }

    /* Section Headings */
    .about h2,
    .projects-section h2,
    .writing-section h2 {
        font-size: 1.65rem;
        margin-bottom: 1.25rem;
    }

    .contact h2 {
        font-size: 1.5rem;
    }

    /* About Section */
    .about-image {
        width: 85%;
    }

    .about-text {
        font-size: 0.875rem;
        line-height: 1.7;
        text-align: center;
    }

    .about-text li {
        text-align: center;
    }

    /* Project Cards */
    .project-card {
        padding: 1.25rem;
    }

    .project-card h3 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .project-card .description {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .project-links {
        justify-content: center;
    }

    .project-card .project-link {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
        min-width: 85px;
    }

    /* Post Cards */
    .post-card {
        padding: 1.25rem;
    }

    .post-card h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .post-card button.read-more {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Review Form Mobile */
    .review-form-container {
        padding: 1.5rem;
    }

    .review-form-container h4 {
        font-size: 1.3rem;
    }

    .rating-input {
        padding: 1rem;
    }

    .rating-instruction {
        font-size: 0.85rem;
    }

    .star-rating {
        gap: 0.3rem;
        justify-content: center;
    }

    .star-rating .star {
        font-size: 2.5rem;
    }

    .selected-rating {
        font-size: 0.9rem;
        text-align: center;
    }

    .review-form textarea {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact {
        padding: 0.85rem 0;
    }

    .contact h2 {
        font-size: 1.2rem;
        margin-bottom: 0.35rem;
    }

    .contact p {
        display: none;
    }

    .contact-links {
        gap: 0.4rem;
        margin-top: 0.3rem;
    }

    .contact-link {
        width: auto;
        min-width: 70px;
        max-width: 100px;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-link i {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
        min-height: 40px;
    }

    .open-consultation-modal-btn,
    .open-review-modal-btn {
        padding: 0.8rem 1.6rem;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.8rem 1.6rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .selection-btn {
        min-height: 44px;
    }

    .back-btn {
        padding: 0.7rem 1.4rem;
        min-height: 44px;
    }

    /* Consultancy Page Small Mobile */
    .consultancy-header {
        padding: 2.5rem 0 2rem 0;
    }

    .consultancy-header h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .consultancy-header .header-subtitle {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .service-selection h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .selection-card {
        padding: 1.25rem 1rem;
    }

    .selection-card i {
        font-size: 2rem;
    }

    .selection-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .selection-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .selection-btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }

    /* Consultancy Content Small Mobile */
    .highlight-box {
        padding: 1.25rem 1rem;
        margin: 1.25rem 0;
    }

    .highlight-box h3 {
        font-size: 1.25rem;
    }

    .highlight-box p {
        font-size: 0.9rem;
        padding: 0;
    }

    .highlight-box i {
        font-size: 2rem;
    }

    .info-box {
        padding: 1.25rem 1rem;
    }

    .info-box h3 {
        font-size: 1.15rem;
    }

    .styled-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .reviews-section {
        padding: 1.25rem 0.75rem;
        margin-top: 2rem;
    }

    .consultancy-section {
        padding: 2rem 1.25rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}
