:root {
  --bg: #0a0f1a;
  --card: #111827;
  --accent: #15cc9c;
  --accent-dark: #0f8a6b;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --gradient: linear-gradient(135deg, #15cc9c 0%, #0f8a6b 100%);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.wrap {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: inline-block;
  width: 100px;
  height: 50px;
  background: url('korex_logo.png') no-repeat center center;
  background-size: contain;
  text-decoration: none;
  transition: var(--transition);
}


nav a {
  color: var(--text);
  margin-left: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
  opacity: 0.9;
}

nav a:hover {
  color: var(--accent);
  opacity: 1;
}

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

/* Language Selector */
.language-selector {
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: rgba(21, 204, 156, 0.1);
  border: 2px solid rgba(21, 204, 156, 0.3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(21, 204, 156, 0.2);
  border-color: rgba(21, 204, 156, 0.5);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--gradient);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(21, 204, 156, 0.3);
}

.lang-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 204, 156, 0.4);
}

.lang-btn i {
  font-size: 0.8rem;
}

/* Team Login Button */
.team-login {
  margin-left: 15px;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 204, 156, 0.4);
}

.login-btn i {
  font-size: 0.9rem;
}

#languageSelect option {
  background: rgba(10, 15, 26, 0.95);
  color: var(--text);
  padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 26, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(21, 204, 156, 0.2);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  margin-left: 0;
}

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

.mobile-menu nav a:last-child {
  border-bottom: none;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(21, 204, 156, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(21, 204, 156, 0.2);
  border-color: rgba(21, 204, 156, 0.5);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 168, 255, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #c2e9fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  color: rgba(200, 210, 220, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(21, 204, 156, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #0f8a6b 0%, #15cc9c 100%);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(21, 204, 156, 0.4);
}

.btn-primary {
  background: var(--gradient);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: block;
}

h2::after {
  content: '';
  display: block;
  width: 4em;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 100%), 
              url('1759427070625.jpg') no-repeat center center/cover;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  background: rgba(17, 24, 39, 0.8);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* .team-card:hover removed */

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(21, 204, 156, 0.3);
}

.avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: var(--transition);
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: white;
}

.team-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Projects */
.project-image {
  width: 100%;
  height: 500px; /* Increased from 250px */
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* .project:hover .project-image img removed */

/* Projects Section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project {
  background: rgba(17, 24, 39, 0.8);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-height: 400px; /* Ensure minimum height */
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transition: var(--transition);
}

/* .project:hover removed */

.project h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.project h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

/* .project:hover h3::after removed */

.project p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  min-height: 220px; /* Ensure minimum content height */
}

/* Hackathons Section */
.hackathons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hackathon {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hackathon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.hackathon-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hackathon h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: white;
  position: relative;
  display: inline-block;
}

.hackathon h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
}

.hackathon-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hackathon-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hackathon-meta i {
  color: var(--accent);
}

.hackathon-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hackathon p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  flex-grow: 1;
}

.hackathon-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(21, 204, 156, 0.1);
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  margin-top: auto;
}

.hackathon-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.project h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.project h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

/* .project:hover h3::after removed */

.project p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%), 
              url('1759427070625.jpg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 70%, rgba(21, 204, 156, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.contact .wrap {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  margin-top: 50px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(21, 204, 156, 0.2);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  background: rgba(0, 0, 0, 0.3);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-text p, 
.contact-text a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--accent);
}

.instagram-link {
  margin-top: 25px;
}

.instagram-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 20px;
  background: rgba(21, 204, 156, 0.1);
  border: 2px solid rgba(21, 204, 156, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.instagram-link a:hover {
  background: rgba(21, 204, 156, 0.2);
  border-color: rgba(21, 204, 156, 0.6);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(21, 204, 156, 0.3);
}

.instagram-link a i {
  font-size: 1.5rem;
  color: var(--accent);
}

.location-link {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.location-link:hover {
  color: var(--accent-dark);
}
/* Footer */
.site-footer {
  background: #0a0f1a;
  padding: 30px 0;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.footer-links {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.copyright {
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .team-grid,
  .projects {
    grid-template-columns: 1fr;
  }

  /* Hide desktop nav on mobile */
  nav {
    display: none;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
  }

  /* Show mobile menu when active */
  .mobile-menu.active {
    display: block;
  }

  /* Mobile hero buttons - stack vertically with more space */
  .hero-buttons {
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}
