@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-color: #121212;
  --surface-color: #1a1a1a;
  --card-bg: #1e1e1e;
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #004e89;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-color: #343a40;
  --code-bg: #282c34;
  --highlight-color: #ff8a5d;
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  --gradient-accent: linear-gradient(135deg, #004e89 0%, #00a8cc 100%);
  --gradient-bg: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
}

html.light-mode {
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --card-bg: #ffffff;
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #004e89;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --code-bg: #e9ecef;
  --highlight-color: #ff8a5d;
  --gradient-bg: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

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

html {
  scroll-behavior: smooth;
}

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

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

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--text-primary);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 10, 31, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  margin-top: 10px;
  padding: 10px 30px;
  border: 1px solid var(--border-color);
}

html.light-mode .glass-nav {
  background: rgba(255, 255, 255, 0.7);
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

#theme-toggle:hover {
  background: var(--surface-color);
}

#theme-toggle .fa-sun {
  display: none;
}
html.light-mode #theme-toggle .fa-sun {
  display: block;
}
html.light-mode #theme-toggle .fa-moon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-color);
  padding: 16px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html.light-mode .nav {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

#theme-toggle:hover {
  background: var(--border-color);
}

#theme-toggle .fa-sun {
  display: none;
}
html.light-mode #theme-toggle .fa-sun {
  display: block;
}
html.light-mode #theme-toggle .fa-moon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.hero-section {
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  z-index: -1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(255, 107, 53, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 78, 137, 0.05) 0%,
      transparent 50%
    );
  z-index: -1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-intro {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-text h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.typing-effect {
  color: var(--accent-color);
  font-weight: 600;
}

.hero-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: white;
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

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

.cta-button.secondary:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 16px;
  transform: rotate(3deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}

.hero-image-frame:hover {
  transform: rotate(0deg);
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.hero-image-decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-accent);
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
}

.hero-image-decoration.top-right {
  top: -30px;
  right: -30px;
}

.hero-image-decoration.bottom-left {
  bottom: -30px;
  left: -30px;
}

.content-section {
  padding: 100px 0;
}

/* ABOUT */
.about-content {
  padding: 3rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.about-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 100px;
  color: var(--border-color);
  font-family: serif;
  line-height: 1;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-link {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: var(--secondary-color);
}

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

.project-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  padding: 5px 12px;
  background: var(--code-bg);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.subsection-title {
  text-align: center;
  margin: 3rem 0 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

.subsection-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-10px);
}

.skill-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

.cert-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.cert-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cert-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.experience-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.experience-card:hover::before {
  transform: scaleY(1);
}

.exp-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: white;
  transition: transform 0.3s ease;
}

.experience-card[data-type="work"] .exp-icon {
  background: var(--gradient-primary);
}

.experience-card[data-type="education"] .exp-icon {
  background: var(--gradient-accent);
}

.experience-card:hover .exp-icon {
  transform: rotate(-10deg) scale(1.1);
}

.exp-content {
  flex-grow: 1;
}

.exp-content h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.exp-content .company {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.exp-content .date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.exp-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-pitch {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-button i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.footer-content p {
  font-size: 0.9rem;
}

.footer-content i.fa-heart {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 1rem 0;
    border-radius: 0 0 16px 16px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .nav {
    padding: 16px 20px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 120px 0 80px;
  }
  .content-section {
    padding: 80px 0;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h2 {
    font-size: 1.3rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-button {
    width: 200px;
    justify-content: center;
  }
}
