@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #000000; /* Solid Black */
    --secondary-color: #ffffff; /* White text */
    --accent-color: #00D9FF; /* Neon Blue */
    --accent-light: #53CAFD; /* Light Neon Blue */
    --accent-glow: rgba(0, 217, 255, 0.4); /* Neon Blue Glow */
    --accent-soft: rgba(0, 217, 255, 0.1); /* Subtle Neon Blue */
    --text-color: #f0f0f0;
    --light-bg: #ffffff;
    --dark-bg: #000000;
    --gray: #cccccc;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

/* Header & Nav */
header {
    background-color: var(--dark-bg);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 17.5px;
    width: auto;
}

.footer-logo {
    margin-bottom: 1rem;
    max-width: 130px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Increased height to ensure full view */
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centers content vertically */
    color: var(--secondary-color);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 60%;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 202, 253, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    margin-top: -15vh; /* Shift content up so text is above centered orb */
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 300;
    margin-bottom: 3rem; /* Space between text and button */
    opacity: 0.9;
    display: block; /* Restore display */
}

/* Button positioning to overlap orb */
.hero .btn-hero {
    background-color: #000000;
    border: 2px solid #ffffff;
    backdrop-filter: blur(5px);
    padding: 1rem 3rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.hero .btn-hero:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 8rem 10%;
}

.bg-light {
    background-color: #0a0a0a; /* Slightly lighter black for contrast sections if needed, or keep black */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.pillar-card {
    background: #0f0f0f;
    padding: 2.5rem;
    border: 1px solid #222;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.15);
}

.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--accent-soft));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* About Page Specifics */
.thesis-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.9;
    font-weight: 300;
}

.approach-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Better responsive grid */
gap: 5rem; /* Increased gap */
margin-top: 4rem;
}

.approach-item {
display: flex;
flex-direction: column;
padding: 2rem;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 4px;
background: rgba(255, 255, 255, 0.01);
transition: all 0.3s ease;
}

.approach-item:hover {
border-color: var(--accent-color);
box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
background: rgba(0, 217, 255, 0.05);
transform: translateY(-5px);
}

@media (min-width: 768px) {
.approach-item {
/* Reset flex direction for grid layout preference */
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.approach-item h3 {
margin-bottom: 1rem;
font-size: 1.4rem;
}
    .approach-item {
        /* Reset flex direction for grid layout preference */
        flex-direction: column; 
        align-items: flex-start;
        gap: 1rem;
    }
    .approach-item h3 {
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }
}

/* Contact Page */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-top: 3rem;
    text-align: left;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    display: block;
}

/* Login Page */
.login-page {
    background-color: #ffffff;
    color: #000000;
}

.login-page main {
    background-color: #ffffff;
}

.login-split {
    display: flex;
    min-height: calc(100vh - 110px); /* Adjust for header */
    flex-wrap: wrap;
}

.login-option {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
    color: #000000;
    border-bottom: 1px solid #000000; /* Border for mobile stacking */
}

/* Borders for containers - assuming login-option and inputs */
.login-option {
    border: 1px solid #000000; /* "Containers... should be black" */
    margin: -1px; /* Collapse borders */
}

.login-option p, .login-option h2, .login-option label {
    color: #000000;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
}

.login-option input {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000; /* Input containers black */
    border-radius: 0; /* sharper edges fitting the aesthetic */
}

.login-option input::placeholder {
    color: #666;
}

/* Ensure buttons are black */
.login-page .btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.login-page .btn-primary:hover {
    background-color: #333333;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow), 0 0 40px rgba(0, 217, 255, 0.3);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-brand {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-brand strong {
    font-weight: 700;
}

.footer-tagline {
    color: #999;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
