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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  --accent-primary: #1e3a8a;
  --accent-secondary: #3b82f6;
  --accent-gold: #b8860b;
  --border: #e2e8f0;
  
  --font-main: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1200px;
  --section-padding: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-primary);
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: var(--accent-secondary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background-color: var(--accent-secondary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

header.scrolled .logo {
  color: var(--text-primary);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

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

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

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--bg-dark);
  letter-spacing: -1px;
}

.hero-text h2 {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  object-fit: cover;
  aspect-ratio: 1;
  border: 8px solid white;
}

/* About Section */
.about {
  background-color: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-text p {
  margin-bottom: 24px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  padding: 24px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.stat-text {
  font-weight: 500;
  color: var(--text-primary);
}

/* Experience Section */
.experience {
  background-color: var(--bg-secondary);
}

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

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

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 16px;
  top: 0;
  width: 34px;
  height: 34px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 4px solid var(--bg-secondary);
  z-index: 1;
}

.timeline-content {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.timeline-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.2rem;
  top: -2px;
}

/* Education Section */
.education {
  background-color: var(--bg-primary);
}

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

.edu-card {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-secondary);
}

.edu-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.edu-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.edu-degree {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.edu-school {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Skills Section */
.skills {
  background-color: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.skill-category {
  background-color: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.skill-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.skill-category h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.875rem;
  padding: 6px 12px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.skill-category:hover .skill-tag {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
}

/* Projects Section */
.projects {
  background-color: var(--bg-primary);
}

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.project-item:nth-child(even) {
  direction: rtl;
}

.project-item:nth-child(even) > * {
  direction: ltr;
}

.project-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

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

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tech-tag {
  font-size: 0.875rem;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Footer / Contact */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 500;
}

.contact-value:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content, .about-content, .project-item {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .project-item:nth-child(even) {
    direction: ltr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 100px 32px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 56px;
  }
  
  .timeline-icon {
    left: 4px;
    width: 32px;
    height: 32px;
  }
}

/* Case Study specific styles */
.case-hero {
  padding-top: 120px;
  background-color: var(--bg-dark);
  color: white;
  text-align: center;
  padding-bottom: 120px;
}

.case-hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.case-hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.case-content {
  padding: 80px 0;
}

.case-block {
  margin-bottom: 64px;
}

.case-block h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--accent-primary);
}

.case-block p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.case-table th, .case-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.case-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.case-image {
  margin: 48px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.case-image img {
  width: 100%;
}
