/* --- CSS Custom Properties (Variables) --- */
:root {
    --color-primary: #0a2342; /* Deep Ocean Blue */
    --color-secondary: #4a6547; /* Lush Green */
    --color-accent: #c75e3c; /* Terracotta/Coral */
    --color-background: #f4f1ea; /* Dune Sand */
    --color-text: #333333; /* Charcoal Grey */
    --color-white: #ffffff;
    --color-border: #dcd9d1; /* A subtle border color */

    /* UPDATED FONTS */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --container-width: 1140px;
    --border-radius: 4px; /* Reduced from 8px for a sharper look */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7; /* Increased for better readability */
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700; /* Ensure the bold weight is used */
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* --- Header & Navigation --- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2rem; /* Slightly larger */
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 1px; /* Add some spacing */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 35px; /* Increased gap */
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase; /* Classic look */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

#hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.6); /* Dark Blue Overlay */
    z-index: -1;
}

.hero-title {
    font-size: 5rem; /* More dramatic */
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-style: italic; /* Add a classic touch */
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Prepare for hover effect */
    border-radius: var(--border-radius); /* SHARPER CORNERS */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

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

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #384e36;
}


/* --- General Section Styling --- */
.text-center-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--color-border); /* DECORATIVE BORDER */
}
.text-center-section h2 {
    font-size: 3rem;
}
.text-center-section .lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* NEW: Drop Cap Style */
.drop-cap {
    float: left;
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 0.8;
    margin-right: 15px;
    margin-top: 10px;
    color: var(--color-primary);
}


/* --- Projects Section --- */
.projects-section {
    padding: 100px 0;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border); /* DECORATIVE BORDER */
}

.projects-section .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border); /* ADDED BORDER for framed look */
    box-shadow: none; /* Removed modern shadow for a flatter, classic look */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius); /* SHARPER CORNERS */
    transition: border-color 0.3s ease;
}
.project-card:hover {
    border-color: var(--color-accent); /* Highlight on hover */
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border); /* Separates image */
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.card-content p {
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.footer-column ul {
    list-style: none;
}
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.social-icons a {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-right: 15px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .text-center-section h2, .projects-section .section-title {
        font-size: 2.2rem;
    }
}