/* styles.css */

/* Variables */
:root {
    /* Color Palette */
    --primary-blue: #0078d7;
    --light-blue: #7fdbff;
    --dark-blue: #1e3a5f;
    --pink: #e94e77;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Container Width */
    --container-width: 1200px;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

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

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

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--white);
}

.logo-container .tagline {
    font-family: var(--heading-font);
    font-weight: 500;
}

.tagline .blue {
    color: var(--primary-blue);
}

.tagline .white {
    color: var(--white);
}

.tagline .pink {
    color: var(--pink);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: var(--spacing-lg);
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom: 2px solid var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    /* Parallax effect */
    perspective: 1px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    transform: translateZ(-1px) scale(2); /* Parallax effect */
    /* Fallback background color until image is available */
    background-color: var(--dark-blue);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-lg);
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-content .tagline {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.btn-connect {
    display: inline-block;
    background-color: var(--pink);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-connect:hover {
    background-color: #d03e65;
    color: var(--white);
}

/* Feature Boxes */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-box {
    flex: 1;
    min-width: 300px;
    margin: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
}

.feature-box .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-box h2 {
    margin-bottom: var(--spacing-md);
    color: var(--dark-blue);
}

.feature-box p {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    
    nav ul {
        margin-top: var(--spacing-md);
    }
    
    nav ul li {
        margin-left: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .features .container {
        flex-direction: column;
    }
    
    .feature-box {
        margin-bottom: var(--spacing-lg);
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 var(--spacing-sm) var(--spacing-sm);
    }
}
/* ========================================= */
/* STYLES FOR TEXT CARD & INFO SECTIONS      */
/* ========================================= */

/* General styling for the new content sections */
.info-section {
    padding: 60px 20px;
}

/* Alternate background colors for sections to create visual separation */
.info-section:nth-of-type(odd) {
     background-color: #f7f7f7; /* Light grey for Current Projects & Earlier Research */
}

/* Main title for each section (e.g., "Current Projects") */
.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Disclaimer text style */
.section-disclaimer {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    color: #666;
    line-height: 1.6;
}

/* Grid container for the cards for responsive layout */
.text-card-grid {
    display: grid;
    /* This creates responsive columns: 1 on small screens, adjusts up to 3 on large screens */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* The text card itself, which is a clickable link */
.text-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Card title */
.text-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #005A87; /* Using your brand's blue */
    margin: 0 0 15px 0;
}

/* Card description paragraph */
.text-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1; /* This makes the paragraph expand, pushing the link to the bottom */
}

/* The "View Project" link text at the bottom of the card */
.card-link-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #E83E8C; /* Using your brand's pink */
    margin-top: 20px; /* Space between paragraph and link */
    transition: all 0.3s ease;
}

.text-card:hover .card-link-text {
    color: #005A87; /* Change link color on hover for a nice effect */
}