/* CSS Variables for Theme Colors */
:root {
  /* Light mode variables */
  --bg-color: #ffffff;
  --text-color: #333333;
  --nav-bg: #333333;
  --section-bg: #f4f4f4;
  --card-bg: #ffffff;
  --card-border: #dddddd;
  --heading-color: #333333;
  --subheading-color: #555555;
  --btn-bg: #555555;
  --btn-hover: #777777;
  --link-color: #555555;
  --link-hover: #777777;
  --input-bg: #ffffff;
  --input-border: #cccccc;
  --footer-color: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent-color: #00bfff;
  --accent-light: #66d9ff;
  --font-primary: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Dark mode color variables */
.dark-mode {
  --bg-color: #121212;
  --text-color: #e1e1e1;
  --nav-bg: #1e1e1e;
  --section-bg: #1a1a1a;
  --card-bg: #252525;
  --card-border: #333333;
  --heading-color: #00bfff;
  --subheading-color: #66d9ff;
  --btn-bg: #0088cc;
  --btn-hover: #00bfff;
  --link-color: #00bfff;
  --link-hover: #66d9ff;
  --input-bg: #2c2c2c;
  --input-border: #333333;
  --footer-color: #999999;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-color: #00bfff;
  --accent-light: #66d9ff;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 16px;
  font-weight: 400;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Navigation Bar */
.navbar {
  background: var(--nav-bg);
  color: #fff;
  padding: 1.2rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo a {
  display: block;
  text-decoration: none;
}

.navbar .logo .logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.navbar .logo .logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-light);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: none;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
  color: #fff;
  height: auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 191, 255, 0.2), transparent 70%);
  z-index: 1;
}

.hero .container {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  max-width: 900px;
  z-index: 2;
  transform: none;
  top: 0;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  animation: fadeInDown 1s ease-out forwards;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out;
  opacity: 0.9;
  color: #fff;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section button should stand out more */
.hero .btn {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
  background: var(--accent-light);
}

/* Button Styles */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: #fff;
  padding: 12px 28px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.4s ease;
}

.btn:hover {
  background: var(--btn-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

section .container {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.about, .research, .team, .contact {
  background: var(--section-bg);
  margin-bottom: 0;
  padding: 5rem 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 191, 255, 0.05), transparent);
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* Research Items */
.research-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.research-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  flex: 1;
  min-width: 250px;
  border-radius: 10px;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.research-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-color);
  transition: height 0.3s ease;
}

.research-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.research-item:hover::before {
  height: 100%;
}

.research-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--subheading-color);
  transition: color 0.3s ease;
}

.research-item:hover h3 {
  color: var(--accent-color);
}

/* Team Section */
.team {
  background: var(--section-bg);
  position: relative;
  overflow: hidden;
}

.team::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.05), transparent);
  z-index: 0;
}

.team .container {
  position: relative;
  z-index: 1;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
}

.team-member {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--card-border);
  width: 100%;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member:hover img {
  transform: scale(1.05);
  border: none;
}

.team-member h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 0;
}

/* Section transition - add subtle separation between sections */
section:nth-child(odd) {
  position: relative;
}

section:nth-child(odd)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* Footer Styles */
.footer {
  background: var(--nav-bg);
  color: var(--footer-color);
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.footer p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Contact Form Styles */
.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, rgba(0, 191, 255, 0.05), transparent);
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact form {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 15px;
  max-width: 650px;
  margin: 3rem auto 0;
  box-shadow: 0 15px 30px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
}

.contact form:hover {
  box-shadow: 0 20px 40px var(--shadow-color);
}

.contact h2 {
  text-align: center;
}

.contact .form-group {
  margin-bottom: 1.5rem;
}

.contact label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.05rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact textarea {
  min-height: 150px;
  resize: vertical;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
}

.contact .btn {
  width: 100%;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Form feedback */
.form-message {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 5px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid #4CAF50;
  display: block;
}

.form-message.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid #F44336;
  display: block;
}

/* Headings and Links */
h2 {
  color: var(--heading-color);
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  font-weight: 700;
}

h3 {
  color: var(--subheading-color);
  font-size: 1.8rem;
}

a {
  color: var(--link-color);
  transition: color 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .navbar .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  
  .navbar .logo .logo-img {
    height: 45px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0;
    gap: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero .container {
    padding: 3.75rem 0;
  }

  html {
    scroll-padding-top: 120px;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .navbar {
    padding: 0.4rem 0;
  }

  .navbar .logo .logo-img {
    height: 40px;
  }

  .nav-links {
    padding: 0.3rem 0;
    gap: 0.6rem;
  }

  .nav-links li a {
    font-size: 0.85rem;
    padding: 5px 8px;
  }

  .theme-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .emblem-container {
    width: 160px;
    height: 200px;
  }

  .emblem {
    width: 50%;
    height: 50%;
  }

  .tech-icon {
    font-size: 140px;
  }

  .hero .container {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .research-item h3 {
    font-size: 1.2rem;
  }

  .research-item p {
    font-size: 0.95rem;
  }

  .about p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .highlight-item {
    padding: 1.5rem;
  }

  .highlight-item i {
    font-size: 2rem;
  }

  .highlight-item h3 {
    font-size: 1.2rem;
  }

  .highlight-item p {
    font-size: 0.95rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .team-member h3 {
    font-size: 1.2rem;
  }

  .team-member p {
    font-size: 0.9rem;
  }

  .contact-intro {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .contact label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .contact .btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  html {
    scroll-padding-top: 110px;
  }
}

/* Fix iOS form zoom */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
  select,
  textarea,
  input {
    font-size: 16px !important;
  }
}

/* Animation for loading */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* About section highlights */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.highlight-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px var(--shadow-color);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
}

.highlight-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.highlight-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.highlight-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.highlight-item p {
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Make the about section highlights responsive */
@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* Mission Section */
.mission {
  background: var(--section-bg);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 191, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.mission .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.mission-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-top: 3rem;
}

.mission-text {
  text-align: left;
}

.mission-text > p:first-child {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--accent-color);
  font-weight: 500;
}

.mission-text > p:last-child {
  margin-top: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.mission-list-container {
  max-width: 800px;
  margin: 0;
}

.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mission-list li {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  font-size: 1.1rem;
  line-height: 1.6;
}

.mission-list li i {
  color: var(--accent-color);
  margin-right: 1.2rem;
  font-size: 1.4rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.mission-list li span {
  flex: 1;
}

.emblem-container {
  position: relative;
  width: 280px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.emblem-border {
  display: none;
}

.emblem {
  width: 75%;
  height: 75%;
  object-fit: contain;
  z-index: 3;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.3));
}

.tech-icon {
  position: absolute;
  font-size: 220px;
  color: rgba(0, 191, 255, 0.08);
  opacity: 0.6;
  z-index: 1;
  transition: all 0.3s ease;
}

.emblem-container:hover .emblem {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.4));
}

.emblem-container:hover .tech-icon {
  opacity: 0.7;
  transform: scale(1.05) rotate(5deg);
  color: rgba(0, 191, 255, 0.12);
}

/* Responsive design for mission section */
@media (max-width: 992px) {
  .mission-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .mission-text {
    text-align: center;
  }

  .mission-text > p:first-child {
    font-size: 1.15rem;
  }

  .mission-text > p:last-child {
    font-size: 1.05rem;
  }
  
  .mission-list li {
    justify-content: flex-start;
    text-align: left;
  }
  
  .emblem-container {
    width: 240px;
    height: 280px;
    margin: 0 auto;
  }

  .tech-icon {
    font-size: 190px;
  }
}

@media (max-width: 480px) {
  .mission-content {
    gap: 3rem;
  }

  .emblem-container {
    width: 200px;
    height: 240px;
  }

  .tech-icon {
    font-size: 160px;
  }

  .mission-list li {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .mission-list li i {
    font-size: 1.2rem;
    margin-right: 1rem;
  }
}

/* Footer Updates */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-update {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Accessibility Improvements */
:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.team-photo {
  object-fit: cover;
  border-radius: 50%;
}
