/* Core Styling Variables & Reset */
:root {
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --navy-blue: #0a192f;
    --light-blue-card: #eff6ff;
    --accent-cyan: #00d2ff;
    --grid-line: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Blueprint Grid Background Dynamic Pattern */
body {
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--grid-line);
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--text-muted);
}

.navbar nav .btn-nav {
    background: var(--text-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    display: flex;
    padding: 80px 8%;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
}

.hero-content {
    max-width: 50%;
}

.hero-content .subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3b82f6;
    display: block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    margin-right: 15px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn-dark {
    background: var(--text-dark);
    color: white;
}

.btn-outline {
    border: 1px solid var(--grid-line);
    color: var(--text-dark);
    background: white;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-image-container {
    width: 40%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--grid-line);
    background: white;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Section Common Titles */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* Intersection Section */
.intersection-section {
    padding: 80px 8%;
}

.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--grid-line);
}

.card-light {
    background: var(--light-blue-card);
}

.card-dark-blue {
    background: var(--navy-blue);
    color: white;
}

.card h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px;
}

.card p {
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    opacity: 0.9;
}

.card ul {
    list-style: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card ul li {
    margin-bottom: 8px;
}

/* Three Column Sub-grid */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--grid-line);
    border-radius: 4px;
}

.pillar-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Projects Section */
.projects-section {
    padding: 80px 8%;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: -30px;
    margin-bottom: 40px;
}

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

.project-card {
    background: white;
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    overflow: hidden;
    min-height: 380px;
}

.project-img-placeholder {
    min-height: 220px;
    background: #e2e8f0;
}

.project-info {
    padding: 25px;
}

.tags {
    margin-bottom: 15px;
}

.tags span {
    font-size: 0.75rem;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    border: 1px solid var(--grid-line);
    color: var(--text-muted);
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    height: 70px; /* Aligns lengths roughly */
}

.project-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer & Contact Block Styling */
.footer-contact {
    background: #030712; /* Very deep dark space blue background matching blueprint */
    color: white;
    padding: 80px 8% 40px;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.footer-container p {
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    max-width: 700px;
    margin: 0 auto 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    padding: 15px;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

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

.btn-submit {
    width: 100%;
    background: var(--accent-cyan);
    color: #030712;
    border: none;
    padding: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #00b4db;
}

/* Bottom Footer Bar */
.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-logo {
    color: white;
    font-weight: 700;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: white;
}

/* Responsiveness Layout Changes */
@media (max-width: 968px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; margin-bottom: 40px; }
    .hero-image-container { width: 75%; }
    .split-cards, .three-column-grid, .projects-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 6%;
    }
    .navbar .logo {
        margin-bottom: 12px;
    }
    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
    }
    .navbar nav a {
        margin-left: 0;
    }
    .hero-section { padding: 40px 6%; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-content p { font-size: 1rem; }
    .hero-image-container { width: 100%; max-width: 520px; margin: 0 auto; }
    .project-info p { height: auto; }
    .footer-contact { padding: 60px 6% 40px; }
}

@media (max-width: 480px) {
    .navbar { padding: 18px 5%; }
    .hero-section { padding: 30px 5%; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.98rem; }
    .hero-buttons { display: grid; gap: 12px; justify-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .footer-container h2 { font-size: 2rem; }
    .footer-bottom { font-size: 0.8rem; }
}
