/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff; color: #1a1a1a; line-height: 1.7; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --green-primary: #0a9e76;
  --green-light: #04d878;
  --green-dark: #067a5c;
  --green-pale: #e6f7f2;
  --white: #ffffff;
  --gray-text: #555555;
  --gray-light: #f8faf9;
  --dark: #1a1a1a;
  --transition: all 0.3s ease;
}

/* ===== LANGUAGE SYSTEM ===== */
[data-tr], [data-en] { display: none; }
[data-tr].active, [data-en].active { display: inline; }
div[data-tr].active, div[data-en].active, p[data-tr].active, p[data-en].active,
h1[data-tr].active, h1[data-en].active, h2[data-tr].active, h2[data-en].active,
h3[data-tr].active, h3[data-en].active, h4[data-tr].active, h4[data-en].active,
span[data-tr].active, span[data-en].active, li[data-tr].active, li[data-en].active { display: block; }
a[data-tr].active, a[data-en].active { display: inline; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10,158,118,0.1); transition: var(--transition);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center; height: 70px;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--green-primary); letter-spacing: 1px; }
.logo span { color: var(--green-light); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--dark); position: relative; padding: 0.3rem 0;
  transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--green-primary); transition: var(--transition);
}
.nav-links a:hover { color: var(--green-primary); }
.nav-links a:hover::after { width: 100%; }
.lang-toggle {
  background: var(--green-pale); border: 2px solid var(--green-primary);
  color: var(--green-primary); padding: 0.4rem 1rem; border-radius: 25px;
  font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.85rem;
}
.lang-toggle:hover { background: var(--green-primary); color: var(--white); }
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--green-primary);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 50%, var(--green-pale) 100%);
  padding-top: 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(4,216,120,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(10,158,118,0.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 2rem; display: grid;
  grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1;
}
.hero-content h1 {
  font-size: 3.2rem; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 0.5rem;
}
.hero-content h1 span { color: var(--green-primary); }
.hero-content .subtitle {
  font-size: 1.3rem; color: var(--green-primary); font-weight: 600; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-content .subtitle::before {
  content: ''; display: inline-block; width: 40px; height: 3px; background: var(--green-light); border-radius: 2px;
}
.hero-content p {
  font-size: 1.05rem; color: var(--gray-text); margin-bottom: 2rem; max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 0.9rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary {
  background: var(--green-primary); color: var(--white); box-shadow: 0 4px 15px rgba(10,158,118,0.3);
}
.btn-primary:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,158,118,0.4);
}
.btn-outline {
  background: transparent; color: var(--green-primary); border: 2px solid var(--green-primary);
}
.btn-outline:hover { background: var(--green-primary); color: var(--white); transform: translateY(-2px); }
.hero-image {
  display: flex; justify-content: center; align-items: center; position: relative;
}
.hero-image-inner {
  width: 320px; height: 320px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  display: flex; justify-content: center; align-items: center; position: relative;
  box-shadow: 0 20px 60px rgba(10,158,118,0.25);
}
.hero-image-inner::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 2px dashed rgba(10,158,118,0.2); animation: spin 20s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-avatar {
  width: 300px; height: 300px; border-radius: 50%; background: var(--white);
  display: flex; justify-content: center; align-items: center; font-size: 5rem;
  color: var(--green-primary); border: 4px solid var(--white);
}

/* ===== SECTIONS COMMON ===== */
.section { padding: 5rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: 2.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; position: relative; display: inline-block;
}
.section-header h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 3px; background: var(--green-light); border-radius: 2px;
}
.section-header p { color: var(--gray-text); margin-top: 1rem; font-size: 1.05rem; }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.about-text h3 {
  font-size: 1.5rem; color: var(--green-primary); margin-bottom: 1rem;
}
.about-text p { color: var(--gray-text); margin-bottom: 1rem; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-card {
  background: var(--gray-light); padding: 1.5rem; border-radius: 12px;
  border-left: 4px solid var(--green-primary); transition: var(--transition);
}
.about-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(10,158,118,0.1); }
.about-card h4 { color: var(--green-primary); font-size: 1.1rem; margin-bottom: 0.5rem; }
.about-card p { color: var(--gray-text); font-size: 0.9rem; }

/* ===== EXPERIENCE ===== */
.experience { background: var(--gray-light); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 100%; background: var(--green-primary); opacity: 0.3;
}
.timeline-item {
  position: relative; padding: 1.5rem 0; width: 50%;
}
.timeline-item:nth-child(odd) { padding-right: 3rem; text-align: right; }
.timeline-item:nth-child(even) { padding-left: 3rem; margin-left: 50%; }
.timeline-dot {
  position: absolute; width: 16px; height: 16px; background: var(--green-primary);
  border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--green-primary);
  top: 2rem;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }
.timeline-content {
  background: var(--white); padding: 1.5rem; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition);
}
.timeline-content:hover { box-shadow: 0 8px 25px rgba(10,158,118,0.12); }
.timeline-content h3 { color: var(--green-primary); font-size: 1.1rem; margin-bottom: 0.3rem; }
.timeline-content .date { color: var(--green-light); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.timeline-content p { color: var(--gray-text); font-size: 0.95rem; }
.timeline-content ul { margin-top: 0.5rem; }
.timeline-content ul li {
  color: var(--gray-text); font-size: 0.9rem; margin-bottom: 0.3rem;
  position: relative; padding-left: 1rem;
}
.timeline-content ul li::before {
  content: '•'; color: var(--green-light); position: absolute; left: 0; font-weight: bold;
}

/* ===== EDUCATION ===== */
.education { background: var(--white); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.edu-card {
  background: var(--gray-light); padding: 2rem; border-radius: 16px;
  border: 1px solid rgba(10,158,118,0.1); transition: var(--transition); position: relative; overflow: hidden;
}
.edu-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
}
.edu-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(10,158,118,0.1); }
.edu-card h3 { color: var(--dark); font-size: 1.2rem; margin-bottom: 0.3rem; }
.edu-card .school { color: var(--green-primary); font-weight: 600; margin-bottom: 0.3rem; }
.edu-card .year { color: var(--green-light); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.edu-card p { color: var(--gray-text); font-size: 0.95rem; }
.edu-card .thesis { margin-top: 1rem; padding: 1rem; background: var(--white); border-radius: 8px; font-size: 0.9rem; color: var(--gray-text); border-left: 3px solid var(--green-light); }

/* ===== SKILLS ===== */
.skills { background: var(--gray-light); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.skill-category { background: var(--white); padding: 2rem; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.skill-category h3 {
  color: var(--green-primary); font-size: 1.2rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.skill-item { margin-bottom: 1.2rem; }
.skill-item-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-item-header span { font-size: 0.95rem; color: var(--dark); font-weight: 500; }
.skill-bar { height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.skill-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  border-radius: 4px; transition: width 1.5s ease;
}

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
  background: var(--gray-light); padding: 2.5rem 2rem; border-radius: 16px; text-align: center;
  transition: var(--transition); border: 1px solid transparent;
}
.service-card:hover {
  border-color: rgba(10,158,118,0.2); transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10,158,118,0.1);
}
.service-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  display: flex; justify-content: center; align-items: center; margin: 0 auto 1.5rem;
  font-size: 1.8rem; color: var(--white);
}
.service-card h3 { color: var(--dark); font-size: 1.2rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--gray-text); font-size: 0.95rem; }

/* ===== COMMUNITY ===== */
.community { background: linear-gradient(135deg, var(--green-primary), var(--green-dark)); color: var(--white); }
.community .section-header h2, .community .section-header p { color: var(--white); }
.community .section-header h2::after { background: var(--green-light); }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.community-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 2rem; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2); text-align: center; transition: var(--transition);
}
.community-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-5px); }
.community-card .number {
  font-size: 3rem; font-weight: 800; color: var(--green-light); margin-bottom: 0.5rem;
}
.community-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.community-card p { font-size: 0.95rem; opacity: 0.9; }

/* ===== CONTACT ===== */
.contact { background: var(--gray-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h3 { color: var(--green-primary); font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--gray-text); margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-item-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--green-pale); color: var(--green-primary);
  display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
}
.contact-item-text h4 { color: var(--dark); font-size: 1rem; }
.contact-item-text p { color: var(--gray-text); font-size: 0.9rem; margin: 0; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a {
  width: 45px; height: 45px; border-radius: 50%; background: var(--white);
  color: var(--green-primary); display: flex; justify-content: center; align-items: center;
  font-size: 1.1rem; transition: var(--transition); border: 1px solid rgba(10,158,118,0.2);
}
.social-links a:hover { background: var(--green-primary); color: var(--white); transform: translateY(-3px); }

.contact-form { background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.5rem; color: var(--dark); font-weight: 500; font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.9rem 1rem; border: 1px solid #e0e0e0; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; transition: var(--transition); background: var(--gray-light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--green-primary); background: var(--white);
  box-shadow: 0 0 0 3px rgba(10,158,118,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
  padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: none; font-size: 0.95rem;
}
.form-status.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-status.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); color: var(--white); padding: 2rem; text-align: center;
}
.footer p { opacity: 0.7; font-size: 0.9rem; }
.footer a { color: var(--green-light); }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 45px; height: 45px;
  background: var(--green-primary); color: var(--white); border-radius: 50%;
  display: flex; justify-content: center; align-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
  border: none; font-size: 1.2rem; box-shadow: 0 4px 15px rgba(10,158,118,0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-content p { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image-inner { width: 250px; height: 250px; }
  .hero-image-inner::before { width: 270px; height: 270px; }
  .hero-avatar { width: 230px; height: 230px; font-size: 4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding-left: 3rem !important; padding-right: 0 !important; margin-left: 0 !important; text-align: left !important; }
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 12px !important; right: auto !important; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .subtitle { font-size: 1rem; }
  .section-header h2 { font-size: 1.7rem; }
  .about-cards { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
}

/* Mobile menu */
.nav-links.mobile-open {
  display: flex; flex-direction: column; position: absolute; top: 70px; left: 0;
  width: 100%; background: var(--white); padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  gap: 1rem; border-top: 1px solid rgba(10,158,118,0.1);
}