/* --- CSS VARIABLES & GLOBAL STYLES --- */
:root {
  --dark-navy: #0A192F;
  --navy: #112240;
  --light-navy: #233554;
  --slate: #8892B0;
  --light-slate: #A8B2D1;
  --lightest-slate: #CCD6F6;
  --accent-color: #64FFDA; /* Bright Cyan/Teal */
  --accent-tint: rgba(100, 255, 218, 0.1);
  --font-sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--dark-navy);
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--lightest-slate);
  font-weight: 600;
  margin: 0 0 10px 0;
}

section { padding: 80px 7%; }

/* --- PRELOADER --- */
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--dark-navy); z-index: 9999; display: flex;
  justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 50px; height: 50px; border: 4px solid var(--light-navy);
  border-top: 4px solid var(--accent-color); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- NAVBAR (Glassmorphism) --- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 25, 47, 0.85); backdrop-filter: blur(10px);
  padding: 1rem 5%; border-bottom: 1px solid var(--light-navy);
  position: sticky; top: 0; z-index: 1000;
}
.logo { font-size: 1.6rem; font-weight: 700; color: var(--accent-color); }
.logo i { margin-right: 10px; }
.nav-links { display: flex; gap: 35px; }
.nav-links a {
  text-decoration: none; font-weight: 500; color: var(--light-slate);
  transition: color 0.3s; position: relative; padding-bottom: 5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }

/* Dropdowns */
.dropdown { position: relative; display: inline-block; }
.dropdown-content, .dropdown-menu {
  display: none; position: absolute; min-width: 200px;
  background: rgba(17, 34, 64, 0.9); backdrop-filter: blur(10px);
  border: 1px solid var(--light-navy); border-radius: 8px;
  box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
  z-index: 10; padding: 10px 0; overflow: hidden;
}
.dropdown-content a, .dropdown-menu a {
  padding: 12px 20px; display: block; color: var(--light-slate);
  text-decoration: none; transition: all 0.25s;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a:hover, .dropdown-menu a:hover {
  background-color: var(--accent-tint); color: var(--accent-color); padding-left: 25px;
}
.profile-container { position: relative; }
.profile-icon { font-size: 2.2rem; color: var(--accent-color); cursor: pointer; transition: filter 0.3s; }
.profile-icon:hover { filter: brightness(1.2); }
.dropdown-menu { right: 0; top: 50px; flex-direction: column; }
.dropdown-menu a { display: flex; align-items: center; gap: 12px; }

/* --- HERO SECTION --- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 70vh; }
.hero-text { max-width: 55%; }
.hero-text h1 {
  font-size: clamp(40px, 8vw, 70px); line-height: 1.1; color: var(--lightest-slate); font-weight: 700;
}
.hero-text h1 span { color: var(--accent-color); }
.hero-text p { font-size: 1.1rem; color: var(--slate); max-width: 500px; margin-top: 20px; }
.hero-image img { width: 400px; max-width: 100%; border-radius: 12px; }
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; margin-bottom: 30px; }
  .hero-text p { margin: 20px auto 0; }
}

.internship-card a {
  color: inherit;
  text-decoration: none;
}

/* This keeps the heading color consistent for all link states:
   unvisited, visited, and while being clicked (active). */
.internship-card a:link h3,
.internship-card a:visited h3,
.internship-card a:active h3 {
  color: var(--lightest-slate); /* Standard off-white heading color */
  transition: color 0.3s ease; /* Ensures smooth color change on hover */
}

/* The existing hover rule still applies: when you hover the card,
   the heading will turn to the bright accent color. */
.internship-card:hover h3 {
  color: var(--accent-color);
}

/* --- GENERIC CARD & GRID STYLES (Glassmorphism) --- */
.card-grid, .projects-grid, .course-grid, .internship-grid, .features-grid, .team-grid, .template-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px;
}
.card, .project-card, .course-card, .internship-card, .feature, .template-card {
  background: rgba(17, 34, 64, 0.75); backdrop-filter: blur(10px);
  border: 1px solid var(--light-navy);
  padding: 25px; border-radius: 10px;
  box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover, .project-card:hover, .course-card:hover, .internship-card:hover, .feature:hover, .template-card:hover {
  transform: translateY(-8px); border-color: var(--accent-color);
}
#content-area h2 { text-align: center; font-size: 2.2rem; margin-bottom: 40px; }

/* --- SPECIFIC CARD STYLES --- */
.feature i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.feature h3 { font-size: 1.3rem; color: var(--lightest-slate); }
.project-card a, .internship-card h3 {
  text-decoration: none; color: var(--lightest-slate); font-weight: 600; font-size: 1.3rem; transition: color 0.3s;
}
.project-card a:hover, .internship-card:hover h3 { color: var(--accent-color); }
.internship-card a { text-decoration: none; }

/* --- TEAM SECTION (FLIP CARD) --- */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.team-card-container { height: 280px; perspective: 1000px; }
.team-card { width: 100%; height: 100%; position: relative; transition: transform 0.8s; transform-style: preserve-3d; }
.team-card-container:hover .team-card { transform: rotateY(180deg); }
.team-card-front, .team-card-back {
  position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden;
  backface-visibility: hidden; border-radius: 10px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 20px;
}
.team-card-front { background: var(--navy); border: 1px solid var(--light-navy); }
.team-card-back {
  background: linear-gradient(135deg, var(--accent-color) 0%, #00c7a8 100%);
  color: var(--dark-navy); transform: rotateY(180deg);
}
.team-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid var(--accent-color); }
.team-card-back h3 { color: var(--dark-navy); }
.team-card-back p { color: var(--dark-navy); font-weight: 500; }
.team-card-back button {
  padding: 10px 20px; border: 2px solid var(--dark-navy); background: transparent;
  color: var(--dark-navy); border-radius: 5px; font-weight: 600; cursor: pointer;
  margin-top: 8px; width: 160px; transition: all 0.3s;
}
.team-card-back button:hover { background: var(--dark-navy); color: var(--accent-color); }

/* --- GENERAL UI ELEMENTS (BUTTONS, INPUTS) --- */
button, .button {
  background: transparent; color: var(--accent-color);
  border: 1px solid var(--accent-color); border-radius: 4px; padding: 12px 24px;
  font-size: 1rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s;
}
button:hover, .button:hover { background-color: var(--accent-tint); }

#projectSearch {
  display: block; width: 100%; max-width: 400px; padding: 12px 18px;
  margin: 0 auto 40px auto; background-color: var(--navy);
  border: 1px solid var(--light-navy); border-radius: 8px; font-size: 1rem; color: var(--lightest-slate);
}
#projectSearch:focus { outline: none; border-color: var(--accent-color); }

/* --- RESUME BUILDER --- */
.resume-actions { text-align: center; margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; }
.template-card button { width: 100%; margin-top: 15px; }

/* --- RESUME FORM PAGE --- */
.form-page-body {
  display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem;
}
.form-container {
  background: rgba(17, 34, 64, 0.75); backdrop-filter: blur(10px);
  border: 1px solid var(--light-navy); padding: 2.5rem; border-radius: 12px;
  box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7); width: 100%; max-width: 700px;
}
.form-container h1 { color: var(--accent-color); text-align: center; }
.form-subtitle { text-align: center; color: var(--slate); margin-top: -10px; margin-bottom: 30px; }
.form-container .back-link {
  display: inline-block; margin-bottom: 20px; color: var(--accent-color);
  font-weight: 500; text-decoration: none;
}
#resumeForm label {
  display: block; margin-top: 20px; font-weight: 500;
  margin-bottom: 8px; color: var(--light-slate);
}
#resumeForm input, #resumeForm textarea {
  width: 100%; padding: 12px; background: var(--dark-navy);
  border: 1px solid var(--light-navy); border-radius: 8px; font-size: 1rem;
  color: var(--lightest-slate); font-family: var(--font-sans);
  transition: border-color 0.3s, box-shadow 0.3s;
}
#resumeForm input::placeholder, #resumeForm textarea::placeholder { color: var(--slate); }
#resumeForm input:focus, #resumeForm textarea:focus {
  outline: none; border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
#resumeForm button { width: 100%; padding: 15px; margin-top: 30px; font-size: 1.1rem; font-weight: 600; }

/* --- SCROLL TO TOP BUTTON --- */
#scrollTopBtn {
  display: none; position: fixed; bottom: 25px; right: 25px;
  z-index: 99; border: none; background-color: var(--accent-color);
  color: var(--dark-navy); cursor: pointer; padding: 0; border-radius: 50%;
  font-size: 1.2rem; width: 50px; height: 50px;
  box-shadow: 0 4px 10px rgba(100,255,218,0.2);
  transition: background-color 0.3s, transform 0.3s;
}
#scrollTopBtn:hover { transform: scale(1.1); filter: brightness(1.1); }

/* --- CUSTOMERS / TRUSTED BY SECTION --- */
.customers {
  text-align: center;
}

.customers h2 {
  font-size: 1.2rem; /* Adjusted for subtlety */
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.customers p {
  max-width: 600px;
  margin: 0 auto 40px auto;
  color: var(--slate);
}
.tech-video {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.company-logos{
  display: flex;
  gap: 15px;
  flex-direction: row;
  justify-content: center;
}
.company-logos img{
    width: 25px;
}
