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

:root {
  --primary: #2D3A4A;
  --secondary: #FF6B6B;
  --accent: #4ECDC4;
  --light: #F7F9FC;
  --dark: #1A1A1A;
  --gray: #6C757D;
  --glass: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

html { scroll-behavior:smooth; scroll-padding-top:80px; }

body {
  font-family:'Inter',sans-serif;
  background:var(--light);
  color:var(--dark);
  line-height:1.7;
  overflow-x:hidden;
}

h1,h2,h3,h4 { font-family:'Poppins',sans-serif; font-weight:700; line-height:1.2; }

a { text-decoration:none; color:inherit; transition:all .3s; }

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

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

/* NAV */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(255,255,255,0.92); backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(0,0,0,0.06);
  transition:all .3s;
}
.nav.scrolled { box-shadow:0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  display:flex; align-items:center; justify-content:space-between;
  max-width:1200px; margin:0 auto; padding:16px 24px;
}
.nav-logo { font-family:'Poppins',sans-serif; font-size:1.5rem; font-weight:800; }
.nav-logo span { color:var(--accent); }
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  font-size:.9rem; font-weight:500; color:var(--gray);
  position:relative; padding:4px 0;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:2px; background:var(--accent); transition:width .3s;
}
.nav-links a:hover, .nav-links a.active { color:var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.hamburger {
  display:none; flex-direction:column; gap:5px; cursor:pointer;
  background:none; border:none; padding:4px;
}
.hamburger span {
  width:24px; height:2px; background:var(--dark);
  transition:all .3s; border-radius:2px;
}

/* HERO */
.hero {
  min-height:100vh; display:flex; align-items:center;
  background:linear-gradient(135deg, var(--primary) 0%, #1a2535 100%);
  color:#fff; padding:120px 0 80px; position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; top:-50%; right:-20%;
  width:700px; height:700px; border-radius:50%;
  background:radial-gradient(circle, rgba(78,205,196,0.15), transparent 70%);
}
.hero::after {
  content:''; position:absolute; bottom:-30%; left:-10%;
  width:500px; height:500px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,107,107,0.1), transparent 70%);
}
.hero-inner {
  display:grid; grid-template-columns:1fr 1fr; gap:60px;
  align-items:center; position:relative; z-index:1;
}
.hero-text h1 { font-size:3.2rem; margin-bottom:8px; }
.hero-text h1 span { color:var(--accent); }
.hero-text .tagline {
  font-size:1.3rem; color:rgba(255,255,255,0.7);
  margin-bottom:24px; font-weight:300;
}
.hero-text p { color:rgba(255,255,255,0.6); margin-bottom:32px; max-width:500px; }
.hero-btns { display:flex; gap:16px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:var(--radius); font-weight:600;
  font-size:.95rem; cursor:pointer; border:none; transition:all .3s;
}
.btn-primary { background:var(--accent); color:var(--dark); }
.btn-primary:hover { background:#3dbdb5; transform:translateY(-2px); box-shadow:0 8px 24px rgba(78,205,196,0.3); }
.btn-outline { background:transparent; color:#fff; border:2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); }
.hero-img {
  display:flex; justify-content:center; align-items:center;
}
.hero-img img {
  width:350px; height:350px; border-radius:50%;
  object-fit:cover; border:4px solid rgba(78,205,196,0.4);
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
}
.hero-stats {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  margin-top:48px; padding-top:32px; border-top:1px solid rgba(255,255,255,0.1);
}
.stat h3 { font-size:2rem; color:var(--accent); }
.stat p { font-size:.85rem; color:rgba(255,255,255,0.5); }

/* SECTIONS */
.section { padding:100px 0; }
.section-dark { background:var(--primary); color:#fff; }
.section-title {
  text-align:center; margin-bottom:60px;
}
.section-title h2 { font-size:2.4rem; margin-bottom:12px; }
.section-title .line {
  width:60px; height:4px; background:var(--accent);
  margin:0 auto 16px; border-radius:2px;
}
.section-title p { color:var(--gray); max-width:600px; margin:0 auto; }
.section-dark .section-title p { color:rgba(255,255,255,0.6); }

/* ABOUT */
.about-grid {
  display:grid; grid-template-columns:1fr 2fr; gap:60px; align-items:start;
}
.about-card {
  background:#fff; border-radius:var(--radius); padding:40px 32px;
  box-shadow:var(--shadow); text-align:center;
}
.about-card img {
  width:180px; height:180px; border-radius:50%;
  object-fit:cover; margin:0 auto 20px;
  border:3px solid var(--accent);
}
.about-card h3 { font-size:1.3rem; margin-bottom:4px; }
.about-card .role { color:var(--accent); font-weight:500; margin-bottom:16px; }
.about-card .social-links { display:flex; justify-content:center; gap:12px; margin-top:16px; }
.about-card .social-links a {
  width:40px; height:40px; border-radius:50%;
  background:var(--light); display:flex; align-items:center; justify-content:center;
  color:var(--gray); font-size:1.1rem; transition:all .3s;
}
.about-card .social-links a:hover { background:var(--accent); color:#fff; }
.about-content h3 { font-size:1.5rem; margin-bottom:16px; }
.about-content p { color:var(--gray); margin-bottom:16px; }
.highlights { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }
.highlight-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; background:var(--light); border-radius:8px;
}
.highlight-item i { color:var(--accent); font-size:1.2rem; }
.contact-info { margin-top:32px; display:flex; flex-direction:column; gap:12px; }
.contact-info div { display:flex; align-items:center; gap:12px; color:var(--gray); }
.contact-info i { color:var(--accent); width:20px; }

/* EXPERIENCE TIMELINE */
.timeline { position:relative; max-width:800px; margin:0 auto; }
.timeline::before {
  content:''; position:absolute; left:50%; top:0; bottom:0;
  width:2px; background:linear-gradient(to bottom, var(--accent), var(--secondary));
  transform:translateX(-50%);
}
.timeline-item {
  position:relative; width:45%; padding:24px;
  background:#fff; border-radius:var(--radius); box-shadow:var(--shadow);
  margin-bottom:40px;
}
.timeline-item:nth-child(odd) { margin-left:auto; }
.timeline-item::before {
  content:''; position:absolute; top:30px;
  width:16px; height:16px; border-radius:50%;
  background:var(--accent); border:3px solid #fff;
  box-shadow:0 0 0 4px rgba(78,205,196,0.2);
}
.timeline-item:nth-child(odd)::before { left:-40px; }
.timeline-item:nth-child(even)::before { right:-40px; }
.timeline-item h3 { font-size:1.1rem; margin-bottom:4px; }
.timeline-item .company { color:var(--accent); font-weight:600; margin-bottom:4px; }
.timeline-item .date { font-size:.85rem; color:var(--gray); margin-bottom:12px; }
.timeline-item p { font-size:.9rem; color:var(--gray); }
.timeline-item .tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.tag {
  padding:4px 12px; background:rgba(78,205,196,0.1);
  color:var(--accent); border-radius:20px; font-size:.75rem; font-weight:500;
}

/* EDUCATION */
.edu-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px,1fr)); gap:24px; }
.edu-card {
  background:#fff; border-radius:var(--radius); padding:32px;
  box-shadow:var(--shadow); border-left:4px solid var(--accent);
  transition:transform .3s;
}
.edu-card:hover { transform:translateY(-4px); }
.edu-card .icon {
  width:48px; height:48px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), #3dbdb5);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.3rem; margin-bottom:16px;
}
.edu-card h3 { font-size:1.1rem; margin-bottom:4px; }
.edu-card .school { color:var(--accent); font-weight:500; margin-bottom:4px; }
.edu-card .year { font-size:.85rem; color:var(--gray); margin-bottom:12px; }
.edu-card p { font-size:.9rem; color:var(--gray); }

/* SKILLS */
.skills-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:40px; }
.skill-category h3 {
  font-size:1.2rem; margin-bottom:20px;
  display:flex; align-items:center; gap:10px;
}
.skill-category h3 i { color:var(--accent); }
.skill-bar { margin-bottom:16px; }
.skill-bar .info { display:flex; justify-content:space-between; margin-bottom:6px; font-size:.9rem; }
.skill-bar .info span:last-child { color:var(--accent); font-weight:600; }
.bar-bg {
  height:8px; background:rgba(0,0,0,0.06); border-radius:4px; overflow:hidden;
}
.bar-fill {
  height:100%; border-radius:4px;
  background:linear-gradient(90deg, var(--accent), #3dbdb5);
  width:0; transition:width 1.5s ease;
}
.tools-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(100px,1fr));
  gap:16px; margin-top:24px;
}
.tool-item {
  text-align:center; padding:16px 8px;
  background:#fff; border-radius:var(--radius);
  box-shadow:0 2px 12px rgba(0,0,0,0.06); transition:all .3s;
}
.tool-item:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.tool-item i { font-size:1.8rem; color:var(--accent); margin-bottom:8px; }
.tool-item span { font-size:.75rem; color:var(--gray); display:block; }
.lang-badges { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.lang-badge {
  padding:10px 20px; background:#fff; border-radius:var(--radius);
  box-shadow:0 2px 12px rgba(0,0,0,0.06); display:flex; align-items:center; gap:8px;
}
.lang-badge strong { font-size:.9rem; }
.lang-badge span { font-size:.8rem; color:var(--gray); }

/* PROJECTS */
.projects-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(340px,1fr)); gap:24px;
}
.project-card {
  background:#fff; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); transition:all .3s;
}
.project-card:hover { transform:translateY(-6px); box-shadow:0 16px 48px rgba(0,0,0,0.15); }
.project-card .thumb {
  height:220px; overflow:hidden; position:relative;
}
.project-card .thumb img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s;
}
.project-card:hover .thumb img { transform:scale(1.05); }
.project-card .thumb .overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity:0; transition:opacity .3s;
  display:flex; align-items:flex-end; padding:20px;
}
.project-card:hover .thumb .overlay { opacity:1; }
.project-card .body { padding:24px; }
.project-card .body h3 { font-size:1.1rem; margin-bottom:8px; }
.project-card .body p { font-size:.9rem; color:var(--gray); margin-bottom:16px; }
.project-card .body .tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.project-links { display:flex; gap:12px; }
.project-links a {
  padding:8px 16px; border-radius:8px; font-size:.85rem; font-weight:500;
  border:1px solid rgba(0,0,0,0.1); color:var(--gray);
}
.project-links a:hover { border-color:var(--accent); color:var(--accent); }

/* CV */
.cv-section { background:var(--primary); }
.cv-preview {
  max-width:800px; margin:0 auto;
  background:#fff; border-radius:var(--radius);
  box-shadow:0 20px 60px rgba(0,0,0,0.3); overflow:hidden;
}
.cv-header {
  background:linear-gradient(135deg, var(--primary), #1a2535);
  color:#fff; padding:40px; display:flex; align-items:center; gap:24px;
}
.cv-header img {
  width:80px; height:80px; border-radius:50%;
  object-fit:cover; border:3px solid var(--accent);
}
.cv-header h2 { font-size:1.5rem; margin-bottom:4px; }
.cv-header p { color:rgba(255,255,255,0.7); font-size:.9rem; }
.cv-body { padding:40px; }
.cv-block { margin-bottom:32px; }
.cv-block h3 {
  font-size:1rem; text-transform:uppercase; letter-spacing:1px;
  color:var(--accent); margin-bottom:16px;
  padding-bottom:8px; border-bottom:2px solid var(--light);
}
.cv-block .entry { margin-bottom:16px; }
.cv-block .entry h4 { font-size:.95rem; }
.cv-block .entry .meta { font-size:.85rem; color:var(--gray); }
.cv-block .entry p { font-size:.85rem; color:var(--gray); margin-top:4px; }
.cv-skills-list { display:flex; flex-wrap:wrap; gap:8px; }
.cv-skills-list span {
  padding:4px 12px; background:var(--light);
  border-radius:20px; font-size:.8rem; color:var(--primary);
}
.cv-download {
  text-align:center; margin-top:40px;
}

/* CONTACT */
.contact-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:48px;
}
.contact-form { display:flex; flex-direction:column; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label { font-size:.9rem; font-weight:500; }
.form-group input, .form-group textarea {
  padding:14px 16px; border:2px solid rgba(0,0,0,0.08);
  border-radius:var(--radius); font-family:inherit; font-size:.95rem;
  transition:border-color .3s; background:#fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline:none; border-color:var(--accent);
}
.form-group textarea { resize:vertical; min-height:140px; }
.btn-submit {
  padding:16px 32px; background:var(--accent); color:var(--dark);
  border:none; border-radius:var(--radius); font-weight:700;
  font-size:1rem; cursor:pointer; transition:all .3s;
}
.btn-submit:hover { background:#3dbdb5; transform:translateY(-2px); }
.contact-details h3 { font-size:1.3rem; margin-bottom:24px; }
.contact-item {
  display:flex; align-items:center; gap:16px; margin-bottom:20px;
}
.contact-item .icon-box {
  width:48px; height:48px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), #3dbdb5);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.1rem;
}
.contact-item .text span { display:block; font-size:.85rem; color:var(--gray); }
.contact-item .text strong { display:block; }

/* FOOTER */
.footer {
  background:var(--dark); color:rgba(255,255,255,0.6);
  padding:40px 0; text-align:center; font-size:.9rem;
}
.footer a { color:var(--accent); }

/* ANIMATIONS */
.reveal {
  opacity:0; transform:translateY(30px);
  transition:all .8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.active { opacity:1; transform:translateY(0); }

/* BACK TO TOP */
.back-top {
  position:fixed; bottom:30px; right:30px; z-index:999;
  width:48px; height:48px; border-radius:50%;
  background:var(--accent); color:var(--dark);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; border:none; font-size:1.2rem;
  opacity:0; visibility:hidden; transition:all .3s;
  box-shadow:0 4px 16px rgba(78,205,196,0.3);
}
.back-top.visible { opacity:1; visibility:visible; }
.back-top:hover { transform:translateY(-4px); }

/* RESPONSIVE */
@media(max-width:968px) {
  .hero-inner { grid-template-columns:1fr; text-align:center; }
  .hero-text p { margin:0 auto 32px; }
  .hero-btns { justify-content:center; }
  .hero-img img { width:280px; height:280px; }
  .hero-stats { grid-template-columns:repeat(3,1fr); }
  .about-grid { grid-template-columns:1fr; }
  .skills-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .timeline::before { left:20px; }
  .timeline-item { width:calc(100% - 50px); margin-left:50px !important; }
  .timeline-item::before { left:-40px !important; right:auto !important; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .nav-links.open {
    display:flex; flex-direction:column;
    position:absolute; top:100%; left:0; right:0;
    background:#fff; padding:24px;
    box-shadow:0 8px 24px rgba(0,0,0,0.1);
  }
}
@media(max-width:600px) {
  .hero-text h1 { font-size:2rem; }
  .hero-stats { grid-template-columns:1fr; gap:16px; }
  .projects-grid { grid-template-columns:1fr; }
  .edu-grid { grid-template-columns:1fr; }
  .highlights { grid-template-columns:1fr; }
  .section { padding:60px 0; }
  .section-title h2 { font-size:1.8rem; }
}

/* PRINT */
@media print {
  .nav, .footer, .back-top, .btn, .hero, .contact-form { display:none !important; }
  .section { padding:20px 0; }
  .cv-preview { box-shadow:none; border:1px solid #ddd; }
  body { font-size:11pt; }
}
