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

:root {
  --background-color: #0a0a14; /* Dark background */
  --text-color: #e0e0e0; /* Light text */
  --primary-accent: #00ffe7; /* Neon gradient primary */
  --secondary-accent: #ff00ff; /* Optional secondary for gradients */
  --card-background: #1a1a2e; /* Slightly lighter dark for cards */
  --border-color: rgba(0, 255, 231, 0.2); /* Subtle neon border */
  --font-primary: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #ffffff; /* Brighter headings */
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

/* Header Styles */
.app-header {
  padding: 1rem 0; /* Reduced padding */
  background-color: rgba(10, 10, 20, 0.8); /* Slightly transparent dark */
  border-bottom: 1px solid var(--border-color);
  position: sticky; /* Basic sticky header */
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px); /* Increased blur */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

.app-nav ul {
    display: flex;
    gap: 2rem; /* Spacing between nav items */
}

.app-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.app-nav a:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

/* Underline effect for nav links */
.app-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px; /* Position below the text */
    left: 0;
    background-color: var(--primary-accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.app-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* Footer Styles */
.app-footer {
  padding: 2.5rem 0; /* Increased padding */
  background-color: var(--card-background);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(224, 224, 224, 0.7); /* Slightly muted footer text */
  margin-top: auto; /* Push footer down */
}

/* Hero Section Styles with Vanta.js */
#hero {
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    /* Remove padding-top if header shouldn't overlap */
}

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind overlay and content */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 20, 0.7), rgba(10, 10, 20, 0.9)); /* Semi-transparent gradient */
    z-index: 1; /* Above Vanta, below content */
}

.hero-content {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
    max-width: 800px;
    /* Add fade-in animation */
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards; /* name duration timing-function delay fill-mode */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title { /* Renamed from #hero h1 */
    font-size: 3.8rem; /* Adjust size as needed */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff; /* Ensure white title */
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem; /* Adjust size */
    color: rgba(224, 224, 224, 0.9); /* Adjust opacity */
    margin-bottom: 0; /* Remove bottom margin if no button */
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove old hero styles if they conflict */
#hero::before { display: none; }
#hero .text-gradient { /* Remove if title is plain white */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-fill-color: unset;
}
#hero .btn { display: none; } /* Hide button unless needed */
.hero-graphic-placeholder { display: none; }


/* About Section Styles */
#about {
    background-color: var(--card-background); /* Slightly different background */
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text .btn {
    margin-top: 1rem;
}

.about-image-placeholder {
    height: 300px; /* Example height */
    background-color: rgba(0, 255, 231, 0.05); /* Placeholder visual */
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(224, 224, 224, 0.5);
    font-style: italic;
}

.about-image-placeholder::before {
    content: 'Illustrative Graphic';
}


/* Vision Section Styles */
#vision {
    /* Optional: Add a slightly different background or keep it the same */
    /* background-color: #0f0f1a; */
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive 3-column grid */
    gap: 2rem;
}

.vision-card {
    text-align: center;
    padding: 2.5rem 1.5rem; /* Adjust padding */
}

.vision-icon {
    font-size: 2.5rem; /* Larger icon */
    margin-bottom: 1.5rem;
    /* Basic gradient for placeholder icon */
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    padding: 0.5rem;
    border-radius: 50%;
    line-height: 1; /* Ensure icon fits circle */
    width: 60px; /* Fixed size */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.vision-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-accent); /* Use accent for vision titles */
}

.vision-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}


/* Projects Section Styles */
#projects {
    background-color: var(--background-color); /* Match main background or alternate */
}

.projects-grid {
    display: grid;
    /* Responsive 2-column grid, adjust minmax as needed */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem; /* Increased gap */
}

.project-card {
    /* Inherits base card styles */
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

.project-image-placeholder {
    height: 200px; /* Example height */
    background-color: rgba(0, 255, 231, 0.08); /* Placeholder visual */
    border-bottom: 2px solid var(--primary-accent); /* Accent border */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 8px 8px 0 0; /* Round top corners */
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #ffffff; /* White project titles */
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    flex-grow: 1; /* Allow paragraph to take available space */
    margin-bottom: 1.5rem; /* Space before button */
}

.project-card .btn {
    margin-top: auto; /* Push button to the bottom */
    width: fit-content; /* Button width based on content */
    align-self: flex-start; /* Align button to the left */
}


/* Tech Stack Section Styles */
#tech-stack {
    background-color: var(--card-background); /* Alternate background */
}

.tech-stack-grid {
    display: grid;
    /* Responsive 4-column grid */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.tech-category {
    background-color: rgba(10, 10, 20, 0.5); /* Darker background for category */
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tech-category h4 {
    font-size: 1.2rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tech-category ul {
    list-style: none; /* Remove default list style */
}

.tech-category li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    position: relative;
    padding-left: 1.2rem; /* Space for pseudo-element */
}

/* Custom bullet point using pseudo-element */
.tech-category li::before {
    content: '▹'; /* Use a suitable character */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-accent);
    font-weight: bold;
}


/* Partners Section Styles */
#partners {
    /* Optional: Adjust background */
    /* background-color: var(--background-color); */
}

.partner-logos {
    display: flex;
    flex-wrap: wrap; /* Allow logos to wrap on smaller screens */
    justify-content: center; /* Center logos horizontally */
    align-items: center;
    gap: 3rem; /* Spacing between logos */
    margin-top: 1rem; /* Space below header */
}

.partner-logo-placeholder {
    height: 60px; /* Example height */
    min-width: 120px; /* Example width */
    background-color: rgba(255, 255, 255, 0.05); /* Placeholder visual */
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(224, 224, 224, 0.6);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo-placeholder:hover {
    opacity: 1;
}


/* Contact CTA Section Styles */
#contact {
    background: linear-gradient(rgba(10, 10, 20, 0.8), rgba(10, 10, 20, 0.9)),
                radial-gradient(ellipse at top, rgba(0, 255, 231, 0.1), transparent 70%);
    text-align: center;
    border-bottom: none; /* No border for the last section */
    padding: 7rem 0; /* Extra padding */
}

.contact-content h2 {
    font-size: 2.5rem; /* Larger heading */
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-content p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto; /* Center paragraph */
    color: var(--text-color);
    opacity: 0.9;
}

#contact .btn {
    padding: 1rem 2.5rem; /* Match hero button size */
    font-size: 1.1rem;
}


/* Utility Classes (Example) */
.text-primary {
  color: var(--primary-accent);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Underline effect for section headers */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 2px;
}

/* Button Placeholder */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--primary-accent);
    background-color: transparent;
    color: var(--primary-accent);
}

.btn:hover {
    background-color: var(--primary-accent);
    color: var(--background-color);
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-accent), #00c4b3); /* Gradient button */
    color: var(--background-color);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #00c4b3, var(--primary-accent));
    box-shadow: 0 0 20px rgba(0, 255, 231, 0.7);
}

/* Card Placeholder */
.card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
