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

:root {
  --bg-primary: #040814;
  --bg-secondary: #0b1221;
  --bg-card: rgba(15, 23, 42, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-1: #0ea5e9;
  --accent-2: #38bdf8;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --gold: #fbbf24;
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(15, 23, 42, 0.4);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography & Utilities */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-main);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

.highlight {
  color: var(--accent-2);
}

.gold-text {
  color: var(--gold);
}

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

section {
  padding: 5rem 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 8, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.navbar .logo span {
  color: var(--accent-1);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

.nav-links li a:hover {
  color: var(--accent-2);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  background: linear-gradient(to bottom, rgba(4, 8, 20, 0.4), rgba(4, 8, 20, 1)), 
              url('assets/hero_bg.png') no-repeat center center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 100%);
  z-index: 1;
}

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

.profile-img-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent-1), var(--gold));
  box-shadow: 0 0 30px var(--accent-glow);
  animation: float 6s ease-in-out infinite;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  background-color: var(--bg-secondary);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: 1.8rem;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-1), #0284c7);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--glass-border);
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-1);
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-3px);
}

/* About Section */
#about {
  background-color: var(--bg-secondary);
  position: relative;
}

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

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit';
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.stat-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skills Section */
#skills {
  position: relative;
}

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

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
  color: var(--accent-1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.skill-item i {
  color: var(--gold);
  margin-top: 5px;
  font-size: 0.8rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tag:hover {
  background: var(--accent-1);
  color: #fff;
}

/* Experience Section */
#experience {
  background: linear-gradient(rgba(4, 8, 20, 0.9), rgba(11, 18, 33, 0.9)), 
              url('assets/construction_bg.png') no-repeat center center/cover;
  position: relative;
  background-attachment: fixed;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-dot {
  position: absolute;
  left: 21px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-1);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: translateX(10px);
}

.timeline-date {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-size: 1.1rem;
  color: var(--accent-1);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.timeline-content ul {
  padding-left: 1.2rem;
}

.timeline-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  list-style-type: none;
}

.timeline-content li::before {
  content: "▹";
  position: absolute;
  left: -1.2rem;
  color: var(--accent-2);
}

/* Education & Certs */
#education {
  background-color: var(--bg-secondary);
}

.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.edu-card, .cert-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edu-card:hover, .cert-card:hover {
  border-color: var(--accent-1);
  background: rgba(14, 165, 233, 0.05);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Contact Footer */
.footer {
  background-color: #02040a;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

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

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.1));
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Add Responsive Media Queries */
@media (max-width: 900px) {
  .about-grid, .edu-cert-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 11px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
}
