/* 
   Futuristic White-Turquoise Theme 
   Author: Ammar Ibrahim Mohamed 
*/

:root {
  /* Core Palette */
  --white: #ffffff;
  --accent: #14b8a6;
  /* Turquoise/Teal */
  --accent-light: #ccfbf1;
  /* Very light teal */
  --accent-glow: rgba(20, 184, 166, 0.5);
  --dark-text: #0f172a;
  --gray-text: #64748b;
  --gray-light: #f1f5f9;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --blur: 12px;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.eyebrow {
  font-family: var(--font-heading);
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
  /* Compact padding */
  position: relative;
}

/* Alternating Backgrounds */
.bg-white {
  background-color: var(--white);
}

.bg-accent-light {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.bg-gray-glass {
  background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s var(--ease);
}

.site-header.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--dark-text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.btn-glow-small) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-text);
  position: relative;
}

.nav-links a:not(.btn-glow-small):hover {
  color: var(--accent);
}

.nav-links a:not(.btn-glow-small)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.btn-glow-small):hover::after {
  width: 100%;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding-top: 60px;
  /* Reduced gap from header */
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 20px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--dark-text) 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-text);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-highlights {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
}

.highlight-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.highlight-label {
  font-size: 0.9rem;
  color: var(--gray-text);
  font-weight: 500;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--white);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
  border-color: var(--accent-light);
}

/* Hero Visual Card Specifics */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-text);
  font-weight: 500;
}

.hero-list i {
  color: var(--accent);
}

/* Buttons */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 var(--accent-glow);
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--accent-glow);
  background: #0d9488;
  /* Slightly darker teal */
}

.btn-glow-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: var(--dark-text);
  /* Black button for contrast in nav */
  color: var(--white);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
}

.btn-glow-small:hover {
  background: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--dark-text);
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* About Section */
.split {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--gray-text);
  font-size: 1.05rem;
}

.about-panel h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

/* Projects Section */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link:hover i {
  transform: translateX(4px);
  transition: transform 0.3s var(--ease);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.badge-list span {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--gray-light);
  color: var(--gray-text);
  font-weight: 500;
}

.hero-list.compact {
  margin-top: 12px;
  gap: 8px;
  font-size: 0.95rem;
}

.info-box {
  margin-top: 24px;
  padding: 16px;
  background: var(--accent-light);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #0f766e;
  /* Dark teal text */
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skill-icon {
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
  padding: 12px;
  background: var(--accent-light);
  border-radius: 12px;
}

.skill-card h3 {
  margin-bottom: 16px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.glass-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.glass-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
  transform: translateX(4px);
}

.glass-link i {
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .btn-glow {
  align-self: center;
}

.form-note {
  background: var(--accent-light);
  color: #0f766e;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input,
textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-light);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--gray-text);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Mobile Responsiveness */
@media (max-width: 900px) {

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    text-align: center;
    padding-top: 40px;
  }

  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 5%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    display: none;
    width: 200px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-glow,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}