/* --- Variables --- */
:root {
    --font-primary: 'Inter', sans-serif;
    --color-primary: #0a2540; /* Dark blue */
    --color-primary-light: #1e3a5f; /* Lighter blue */
    --color-accent: #4a90e2; /* Original accent (can be adjusted) */
    --color-accent-alt: #0056b3; /* More vibrant blue for buttons etc. */
    --color-background: #ffffff;
    --color-background-alt: #f7f9fc; /* Light gray background */
    --color-text: #333333;
    --color-text-muted: #667280;
    --color-border: #e6ebf1;
    --color-white: #ffffff;
    --container-width: 1140px;
    --spacing-unit: 1rem;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
    --border-radius: 6px;
    --transition-speed: 0.3s ease;
    --header-height: 80px;
    --mobile-header-height: 70px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* Now controlled by body font-size */
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px; /* Slightly increased for better readability */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    padding-top: var(--header-height);
    flex-grow: 1;
}

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bolder headings */
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary);
}

h1 { font-size: 3.2rem; } /* Increased sizes */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { /* Enhanced h4 styling for sections */
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: calc(var(--spacing-unit) * 2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


p {
    margin-bottom: var(--spacing-unit);
}
/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: calc(var(--spacing-unit) * 1.5);
    padding-right: calc(var(--spacing-unit) * 1.5);
}

section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: calc(var(--spacing-unit) * 0.5) auto 0;
    border-radius: 2px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-speed), height var(--transition-speed);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
/* Update these CSS rules in your style.css file */

/* Ensure logo stays visible */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    z-index: 1002; /* Make sure logo is above the mobile menu */
    display: block; /* Ensure it's a block element */
}

/* Position the mobile toggle button correctly */
.mobile-menu-toggle {
    z-index: 1002; /* Make sure toggle is above the mobile menu */
    position: relative;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem; /* Slightly smaller on mobile if needed */
    }
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-primary);
}

.nav-main ul {
    display: flex;
    align-items: center;
}

.nav-main li {
    margin-left: calc(var(--spacing-unit) * 2);
}

.nav-main a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: calc(var(--spacing-unit) * 0.5) 0;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--color-primary);
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

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

/* --- Dropdown Navigation --- */
.nav-item-dropdown {
    position: relative;
}

/* Style for the dropdown link itself */
.nav-link-dropdown {
    display: flex; /* Align text and arrow */
    align-items: center;
}

/* Style for the arrow icon */
.nav-link-dropdown .dropdown-arrow {
    font-size: 0.7em;
    margin-left: 0.4em; /* Increased slightly */
    display: inline-block; /* Crucial */
    transition: transform var(--transition-speed);
    color: inherit; /* Inherit color from parent link */
}

.nav-item-dropdown:hover .dropdown-arrow {
     transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background);
    min-width: 220px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    padding: calc(var(--spacing-unit) * 0.5) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-speed), visibility var(--transition-speed), transform var(--transition-speed);
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.5);
    color: var(--color-text);
    font-weight: 400;
    white-space: nowrap;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.dropdown-menu a:hover {
    background-color: var(--color-background-alt);
    color: var(--color-primary);
}

.dropdown-menu a::after { /* Ensure dropdown links don't get main nav underline */
    display: none;
}
/* End Dropdown Navigation */

/* --- Hamburger Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1002;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle span:nth-child(2),
.mobile-menu-toggle span:nth-child(3) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(4) {
    top: 18px;
}

.mobile-menu-toggle.open span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.mobile-menu-toggle.open span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-toggle.open span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

/* --- Mobile Navigation Panel --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-background);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav ul {
    padding: calc(var(--spacing-unit) * 2);
}

.mobile-nav li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.mobile-nav a {
    display: block;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    padding: calc(var(--spacing-unit) * 0.5) 0;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-primary);
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    transition: transform var(--transition-speed);
}

.mobile-dropdown-toggle.open i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    padding-left: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 1);
}

.mobile-dropdown-menu.open {
    display: block;
}

.mobile-dropdown-menu li {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.mobile-dropdown-menu a {
    font-size: 1rem;
    padding: calc(var(--spacing-unit) * 0.3) 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: #3a80d2;
    border-color: #3a80d2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
    background-color: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 4);
    background-color: var(--color-background-alt);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: var(--spacing-unit);
}

/* --- Teaser Section --- */
.teaser {
    background-color: var(--color-background);
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.teaser-item {
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.teaser-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: transparent;
}

.teaser-image {
    max-width: 80px;
    height: auto;
    margin: 0 auto var(--spacing-unit);
    display: block;
}

.teaser-item h3 {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.teaser-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-unit);
}

.teaser-link {
    font-weight: 500;
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-background-alt);
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === Page Specific Styles === */

/* --- About & Detail Page Header --- */
.page-header {
    background-color: var(--color-background-alt);
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* Breadcrumbs */
.breadcrumbs {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted); /* Or your muted text color */
    list-style: none; /* Remove default list styling */
    padding: 0;
    display: flex;   /* Use flexbox for easy alignment */
    align-items: center; /* Vertically center items */
    justify-content: center; /* Horizontal centering */
}

.breadcrumbs li {
    display: inline-flex; /* Necessary for aligning items */
    align-items: center;   /* Vertical alignment within each item */
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";  /* Use a visually distinct separator */
    margin: 0 0.5rem; /* Space around the separator */
    color: var(--color-text-muted); /* Match muted text color */
    font-weight: bold;  /* Make separator more prominent */
}

.breadcrumbs a {
    color: var(--color-accent); /* Or your link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--color-primary); /* Or your darker link hover color */
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-text);   /* Or your regular text color */
    font-weight: 500;       /* Slightly bolder */
    cursor: default;       /* Indicate not clickable */
}

/* --- About Page Content --- */
.about-content-section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: start;
}

.about-text h2 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 1.8rem;
}
.about-text h3 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    font-size: 1.3rem;
    color: var(--color-primary-light);
}

.about-text p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.about-visuals h3 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
     font-size: 1.3rem;
     color: var(--color-primary-light);
}

.about-image-placeholder {
    width: 100%;
    max-width: 350px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image-placeholder img {
    display: block;
    width: 100%;
    height: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-unit);
}

.stat-item {
    background-color: var(--color-background-alt);
    padding: var(--spacing-unit);
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- Expertise Overview Page --- */
.expertise-overview {
    padding: calc(var(--spacing-unit) * 2) 0;
}

.expertise-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
    background-color: var(--color-background-alt);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.expertise-card:nth-child(2) {
    grid-template-columns: 1fr 1fr;
}
.expertise-card:nth-child(2) .expertise-card-image {
    order: 2;
}
.expertise-card:nth-child(2) .expertise-card-content {
    order: 1;
}

.expertise-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expertise-card-content {
    padding: calc(var(--spacing-unit) * 2.5);
}

.expertise-card-content h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-unit);
}

.expertise-card-content p {
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.expertise-card-content ul {
    margin-bottom: calc(var(--spacing-unit) * 2);
    list-style: disc;
    padding-left: calc(var(--spacing-unit) * 1.5);
    color: var(--color-text-muted);
}

.expertise-card-content li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* --- Detail Page Content Styles --- */
.content-section {
    padding: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 4);
}

.content-container {
    max-width: 840px;
}

.intro-paragraph {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.7;
}

.content-article {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.content-article h2 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    border-bottom: 2px solid var(--color-border);
}

.content-article h3 {
    font-size: 1.5rem;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary-light);
}
.content-article h4 {
     font-size: 1.1rem;
     font-weight: 700;
     margin-top: calc(var(--spacing-unit) * 1.5);
     margin-bottom: var(--spacing-unit);
     color: var(--color-primary);
     text-transform: uppercase;
     letter-spacing: 0.5px;
}

.content-article p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1.7;
}

.content-article ul {
    list-style: disc;
    padding-left: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1.7;
}

.content-article li {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.content-visual {
    margin: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
}

.content-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
    display: block;
}

.content-visual figcaption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: calc(var(--spacing-unit) * 0.5);
    font-style: italic;
}

/* === Responsive === */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
    }
     .about-image-placeholder {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .expertise-card,
    .expertise-card:nth-child(2) {
        grid-template-columns: 1fr;
        gap: 0;
    }
     .expertise-card:nth-child(2) .expertise-card-image,
     .expertise-card:nth-child(2) .expertise-card-content {
         order: initial;
     }
    .expertise-card-image img {
        height: 250px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
     .expertise-card-content {
        padding: calc(var(--spacing-unit) * 2);
    }
    
    /* Show hamburger at tablet breakpoint */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Adjust navigation */
    .nav-main {
        display: none;
    }
    
    /* Display mobile nav when needed */
    .mobile-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    html { font-size: 93.75%; }
    :root { --header-height: var(--mobile-header-height); }

    .header {
        height: var(--mobile-header-height);
    }

    .hero { min-height: 60vh; padding-top: calc(var(--spacing-unit) * 2); }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 80%; max-width: 300px; }

    .content-container {
        max-width: 100%;
    }
     .intro-paragraph { font-size: 1rem; }
     .content-article h2 { font-size: 1.6rem; }
     .content-article h3 { font-size: 1.3rem; }
     
     /* Vertically center the hamburger button */
     .mobile-menu-toggle {
         margin-top: 0;
     }
}

@media (max-width: 576px) {
     .stats-grid {
         grid-template-columns: 1fr;
         gap: calc(var(--spacing-unit) * 0.75);
     }
     .page-header h1 { font-size: 1.8rem; }
     .page-subtitle { font-size: 1rem; }
     .hero-title { font-size: 2.2rem; }
     .hero-subtitle { font-size: 1rem; }

     .expertise-card-content h2 { font-size: 1.5rem; }
     .expertise-card-image img { height: 200px; }
     
     /* Further adjustments for very small screens */
     .mobile-nav {
         padding-top: 10px;
     }
     
     .mobile-nav li {
         margin-bottom: calc(var(--spacing-unit) * 1);
     }
}


/* --- AGGRESSIVE DROPDOWN ARROW FIX --- */
/* Included just in case, targets the icon directly and its pseudo-element */
.header .nav-main .nav-item-dropdown .nav-link-dropdown i.dropdown-arrow {
    display: inline-block !important;
    font-size: 0.7em !important;
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
    color: inherit !important; /* Inherit color from link */
    opacity: 1 !important;
    visibility: visible !important;
    vertical-align: middle; /* Align arrow better with text */
}

.header .nav-main .nav-item-dropdown .nav-link-dropdown i.dropdown-arrow::before {
    content: "\f078" !important; /* Font Awesome chevron-down */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Solid", sans-serif !important; /* Add sans-serif fallback */
    font-weight: 900 !important; /* Usually needed for solid icons */
    font-size: inherit !important;
    display: inline-block !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
}
/* --- END AGGRESSIVE FIX --- */

/* --- Portfolio Grid Page Styles --- */
.portfolio-grid-section {
    padding: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 4);
}

.portfolio-grid {
    display: grid;
    /* Adjust minmax for desired card width and responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2); /* Gap between cards */
}

/* Styling for the link wrapping the card */
.project-card-link {
    display: block; /* Make link fill grid cell */
    color: inherit; /* Remove default link color */
    text-decoration: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-radius: var(--border-radius); /* Apply radius to link for hover effect */
}

.project-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Individual Project Card */
.project-card {
    background-color: var(--color-background); /* White background */
    border-radius: var(--border-radius);
    overflow: hidden; /* Clip image corners */
    border: 1px solid var(--color-border);
    height: 100%; /* Make card fill link height */
    display: flex;
    flex-direction: column;
}

.project-card-image {
    height: 320px; /* Fixed height for images */
background-color: var(--color-scondary-light); /* Fallback color */
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: none; /* Cover the area */
}

.project-card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1; /* Allow content to fill remaining space */
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 0.25);
    color: var(--color-primary);
}

.project-card-category {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-summary {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: calc(var(--spacing-unit) * 1);
    flex-grow: 1; /* Push CTA to bottom */
}

.project-card-cta {
    font-weight: 500;
    color: var(--color-accent);
    font-size: 0.95rem;
    align-self: flex-start; /* Align CTA to the start */
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
     .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: calc(var(--spacing-unit) * 1.5);
    }
    .project-card-content { padding: var(--spacing-unit); }
    .project-card-title { font-size: 1.15rem; }
    .project-card-summary { font-size: 0.9rem; }
}

/* --- Portfolio Detail Page Specific Styles --- */

.project-overview {
    background-color: var(--color-background-alt);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--color-border);
}

.project-overview h2 {
    border-bottom: none; /* Remove border from H2 inside this box */
    margin-bottom: var(--spacing-unit);
    font-size: 1.6rem;
}

.project-meta {
    margin-top: calc(var(--spacing-unit) * 1.5);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: calc(var(--spacing-unit) * 1.5);
}

.project-meta div {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.project-meta strong {
    color: var(--color-primary);
    min-width: 100px; /* Adjust as needed for alignment */
    display: inline-block;
}

/* Simple Project Navigation Links */
.project-nav {
    margin-top: calc(var(--spacing-unit) * 3);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: calc(var(--spacing-unit) * 1.5);
}

.project-nav a {
    font-weight: 500;
}

/* --- Contact Page Styles (Revision) --- */
.contact-page-section {
    padding: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 4);
}

.contact-page-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info column : Form column ratio */
    gap: calc(var(--spacing-unit) * 3); /* Gap between columns */
    align-items: flex-start; /* Align tops of columns */
    max-width: 1000px; /* Container max width */
}

/* Left Column: Contact Info */
.contact-page-info h2 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.contact-page-info p {
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1.7;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 calc(var(--spacing-unit) * 1.5) 0; /* Space below list */
}

.contact-details-list li {
    display: flex; /* Align icon and text block */
    align-items: flex-start; /* Align icon to top of text */
    margin-bottom: calc(var(--spacing-unit) * 1.2); /* Space between items */
}

.contact-details-icon {
    font-size: 1.4rem; /* Icon size */
    color: var(--color-accent);
    margin-right: var(--spacing-unit); /* Space between icon and text */
    margin-top: 0.15em; /* Fine-tune vertical alignment */
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 25px; /* Give icon fixed width for alignment */
    text-align: center;
}

.contact-details-text strong {
    display: block;
    margin-bottom: 0.1em;
    color: var(--color-primary);
    font-weight: 500;
}

.contact-details-text a,
.contact-details-text span { /* Style for non-linked text too */
    font-size: 0.95rem;
    color: var(--color-text-muted);
    word-break: break-word; /* Break long links/text */
}
.contact-details-text a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Right Column: Contact Form */
.contact-page-form h2 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.contact-page-form .form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.2);
}

.contact-page-form label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.4);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.contact-page-form input[type="text"],
.contact-page-form input[type="email"],
.contact-page-form textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.7) calc(var(--spacing-unit) * 1);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    background-color: var(--color-white); /* Ensure background is white */
}

.contact-page-form input[type="text"]:focus,
.contact-page-form input[type="email"]:focus,
.contact-page-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.contact-page-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-page-form button[type="submit"] {
    /* Using existing .btn .btn-primary styles */
    margin-top: calc(var(--spacing-unit) * 0.5);
    padding-left: calc(var(--spacing-unit) * 2);
    padding-right: calc(var(--spacing-unit) * 2);
    cursor: pointer;
}

.contact-page-form .form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-unit);
    font-style: italic;
}

/* Font Awesome Brands Icon Style Adjustment (if needed) */
.fab.contact-details-icon { /* More specific selector */
  font-family: "Font Awesome 6 Brands", sans-serif !important;
  font-weight: 400;
}


/* Responsive Adjustments for Contact Page */
@media (max-width: 992px) {
    .contact-page-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: calc(var(--spacing-unit) * 3);
    }
     .contact-page-info {
         /* Optional: center text when stacked */
         /* text-align: center; */
     }
     .contact-details-list {
         /* Optional: center list block */
         /* display: inline-block; */
         /* text-align: left; */
     }
}
/* --- Impact Section Enhancements--- */
.impact-section {
    background-color: var(--color-background-alt);
    padding: 6rem 0; /* Increased padding */
}

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

.impact-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}
.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.impact-item i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* --- Buttons (enhanced) --- */
.btn { /* ... existing button styles ... */ }
.btn-primary {  /* More visual prominence */
    background-color: var(--color-accent-alt); /* More vibrant blue */
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.3); /* Subtle shadow */
}
.btn-primary:hover {
    background-color: #004080;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 64, 128, 0.3);
}
