/*
Theme Name: Rashad Portfolio
Theme URI: https://github.com/va9if
Author: Rəşad İbrahimov
Description: Data Scientist portfolio üçün bir səhifəlik (one-page) custom WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rashad-portfolio
*/

:root {
  --bg: #f7f8fc;
  --bg-alt: #eef0f9;
  --card: #ffffff;
  --card-border: #e2e5f2;
  --text: #171a2b;
  --text-muted: #5b6178;
  --accent: #5b4fff;
  --accent-2: #00c2b8;
  --gradient: linear-gradient(135deg, #5b4fff 0%, #00c2b8 100%);
  --radius: 16px;
  --container: 1120px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 43, 0.04), 0 1px 3px rgba(23, 26, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 26, 43, 0.08);
  --shadow-lg: 0 16px 40px rgba(91, 79, 255, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 12px;
  margin-left: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.lang-toggle:hover { border-color: var(--accent); }

.lang-sep { color: var(--card-border); }

.lang-option { color: var(--text-muted); transition: color 0.2s; }

.lang-option.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 79, 255, 0.28);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(91, 79, 255, 0.36); }

.btn-secondary {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -220px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(91, 79, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 194, 184, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.hero-visual {
  position: relative;
  height: 440px;
}

#data-network {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-greeting {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 40px;
}

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

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 14px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- About ---------- */
.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 780px;
  margin-top: 32px;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-name { font-weight: 600; font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-item h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--accent); }

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-badge {
  background: rgba(91, 79, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(91, 79, 255, 0.2);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.timeline-item p { color: var(--text-muted); max-width: 680px; }

.timeline-company-group {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin: 40px 0 20px;
}

.timeline-company-group:first-child { margin-top: 0; }

.timeline-company-group::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent-2);
}

.timeline-company-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.timeline-company-name {
  font-size: 1.25rem;
  font-weight: 800;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-md);
}

.project-card h3 { font-size: 1.15rem; margin-bottom: 12px; }

.project-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }

.project-card .tech-tags { margin: 20px 0; }

.project-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-2);
}

/* ---------- GitHub ---------- */
.github-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
}

.github-card-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 79, 255, 0.08);
  color: var(--accent);
}

.github-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }

.github-card-body p { color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  margin-top: 48px;
}

.contact-info p { color: var(--text-muted); margin-bottom: 28px; }

.contact-links { list-style: none; }

.contact-links li { margin-bottom: 16px; }

.contact-links a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.contact-form .form-row { margin-bottom: 18px; }

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 79, 255, 0.12);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.form-notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 500;
}

.form-notice.success {
  background: rgba(0, 194, 184, 0.1);
  border: 1px solid rgba(0, 194, 184, 0.35);
  color: #00897f;
}

.form-notice.error {
  background: rgba(230, 60, 60, 0.08);
  border: 1px solid rgba(230, 60, 60, 0.3);
  color: #c53030;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  background: var(--card);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy { color: var(--text-muted); font-size: 0.9rem; }

.footer-motto { color: var(--text-muted); font-size: 0.9rem; }

.footer-social { display: flex; gap: 18px; list-style: none; }

.footer-social a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--card-border);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 8px;
  }

  .site-nav li { padding: 10px 0; }

  .lang-toggle { margin: 8px 24px 16px; align-self: flex-start; }

  .hero-grid { grid-template-columns: 1fr; }

  .hero-visual { height: 260px; order: -1; }

  .github-card { flex-direction: column; text-align: center; }

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }

  .section { padding: 72px 0; }
}
