/* Enhanced Global Styles with Professional Effects */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Theme Variables (Default) */
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --accent-bg: #2a2a2a;
  --primary-text: #ffffff;
  --secondary-text: #b0b0b0;
  --accent-color: #00d4ff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-light: 0 4px 20px rgba(0, 212, 255, 0.1);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --accent-bg: #e9ecef;
  --primary-text: #212529;
  --secondary-text: #6c757d;
  --accent-color: #0066cc;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 10, 10, 0.98);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--primary-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--secondary-text);
  margin-bottom: 2rem;
  animation: slideUp 1s ease-out 0.2s both;
}

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

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  animation: slideUp 1s ease-out 0.4s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Glass Card Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Service Cards */
.service-card {
  background: var(--secondary-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: var(--transition);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.footer {
  background: var(--secondary-bg);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--secondary-text);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--secondary-text);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form Styles */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.google-form-wrapper {
  background: var(--secondary-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
}

.google-form-iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: var(--border-radius);
}

/* Career Page Specific Styles */
.job-card {
  background: var(--secondary-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-heavy);
}

.job-title {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.job-department {
  color: var(--secondary-text);
  margin-bottom: 1rem;
}

.job-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.apply-button {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.apply-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Logo */
.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}



/* about section leadership team images */
/* Team Photo Styling */
.team-photo-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  padding: 3px; /* Creates border effect with gradient background */
}

.team-photo-container:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.team-photo {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.team-photo-container:hover .team-photo {
  transform: scale(1.1);
}


/*  */

/* Project Page Specific Styles */
.project-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.status-completed {
  background: var(--accent-color);
  color: var(--primary-bg);
}

.status-progress {
  background: #28a745;
  color: white;
}

.status-research {
  background: #ffc107;
  color: #000;
}

/* Enhanced Project Cards */
.project-card {
  background: var(--secondary-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: var(--transition);
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-heavy);
}

.project-image {
  height: 200px;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.project-meta {
  margin: 1rem 0;
}

.project-meta p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.project-meta strong {
  color: var(--accent-color);
}

/* Statistics Cards */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-weight: 600;
  color: var(--secondary-text);
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
  .project-image {
    height: 150px;
    font-size: 3rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}




/* Backdrop video additional CSS */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #050816;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: translate(-50%, -50%);
    z-index: 0;

    /* Enhanced Video Look */
    filter:
        brightness(0.45)
        contrast(1.2)
        saturate(1.35);

    opacity: 0.9;

    animation: videoZoom 18s ease-in-out infinite alternate;
}


/* Overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 22, 0.45),
            rgba(5, 8, 22, 0.68)
        ),

        radial-gradient(
            circle at top left,
            rgba(123, 97, 255, 0.22),
            transparent 35%
        ),

        radial-gradient(
            circle at bottom right,
            rgba(0, 212, 255, 0.18),
            transparent 35%
        );
}

/* Slow Premium Motion */
@keyframes videoZoom {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;

    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

/* Title */
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;

    color: #ca2929;
    margin-bottom: 24px;

    text-shadow: 0 0 20px rgba(238, 10, 188, 0.25);
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;

    color: rgba(255,255,255,0.82);

    margin-bottom: 40px;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 34px;
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #007bff,
        #00d4ff
    );

    color: white;
    text-decoration: none;
    font-weight: 600;

    transition: all 0.35s ease;

    box-shadow:
        0 10px 30px rgba(0, 123, 255, 0.35);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);

    box-shadow:
        0 15px 40px rgba(0, 212, 255, 0.45);
}



/* icon for social media in about page */

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);

    color: #b86cff;
    font-size: 1.1rem;

    text-decoration: none;

    transition: all 0.35s ease;

    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);

    background: linear-gradient(
        135deg,
        #7b61ff,
        #00d4ff
    );

    color: #fff;

    box-shadow:
        0 10px 30px rgba(123, 97, 255, 0.35);
}