/* Base Styles and Variables */
:root {
  --primary-color: #64b5f6;
  --primary-dark: #2196f3;
  --secondary-color: #90caf9;
  --accent-color: #4caf50;
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-surface-light: #2d2d2d;
  --border-color: #333;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text-primary);
  background-color: var(--dark-bg);
  line-height: 1.6;
}

.open-sans {
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
}

section {
  padding: 80px 16px;
  position: relative;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background-color: rgba(18, 18, 18, 0.95);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(100, 181, 246, 0.3);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

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

.nav-link:hover {
  color: var(--primary-color);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(100, 181, 246, 0.1) 0%,
    rgba(18, 18, 18, 0) 70%
  );
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 300;
}

.highlight {
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 8px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  opacity: 0.3;
  z-index: -1;
}

.subtitle {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 24px;
  font-weight: 600;
  height: 42px;
  display: inline-block;
}

.typewriter {
  min-height: 42px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 16px;
  color: var(--text-secondary);
}

.note {
  font-style: italic;
  color: var(--accent-color);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.cta-button {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.cta-button.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(100, 181, 246, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
  background-color: rgba(100, 181, 246, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

/* Section Titles */
.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  font-size: 18px;
}

/* Skills Section */
.skills-section {
  background-color: var(--dark-surface);
  padding: 80px 16px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.tech:hover {
  transform: translateY(-5px);
}

.tech img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 0 5px rgba(100, 181, 246, 0.3));
}

.tech p {
  font-weight: 600;
  color: var(--text-primary);
}

/* Projects Section */
.projects-section {
  padding: 80px 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.project {
  background-color: var(--dark-surface-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
  border-color: var(--primary-color);
}

.project-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.project:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  background-color: var(--primary-color);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 20px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: var(--dark-surface);
  padding: 60px 24px 24px;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-info {
  text-align: center;
  margin: 0 auto;
}

.footer-info h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-info h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 1.5px;
}

.social-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--dark-surface-light);
  border-radius: 50%;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.copyright {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  background-color: var(--dark-surface);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 24px;
  }

  .hero-description {
    font-size: 18px;
  }

  .section-title {
    font-size: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .tech-stack {
    gap: 24px;
  }

  .tech img {
    width: 48px;
    height: 48px;
  }
}

/* Background Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: -1;
}
