/* ===== CORPORATE PROFESSIONAL DESIGN ===== */

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

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e40af;
  --secondary: #1e3a8a;
  --accent: #0ea5e9;
  --text-dark: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --text-dark: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #64748b;
  --bg-white: #1e293b;
  --bg-light: #0f172a;
  --bg-gray: #1a202c;
  --border: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: 70px;
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.navbar ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

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

.section {
  padding: 5rem 0;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
}

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

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-name {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 3px;
  transition: all 0.3s ease;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bg-white);
  border-radius: 13px;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  position: relative;
  z-index: 1;
  display: block;
}

.hero-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

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

[style*="background: var(--bg-secondary"]  {
  background: var(--bg-light) !important;
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

[style*="background: var(--bg-secondary"]:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

[style*="background: var(--bg-secondary"] h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

[style*="background: var(--bg-secondary"] h3 i {
  color: var(--primary);
  margin-right: 0.5rem;
}

[style*="background: var(--bg-secondary"] ul {
  color: var(--text-light);
  list-style: none;
}

[style*="background: var(--bg-secondary"] li {
  padding: 0.25rem 0;
  transition: all 0.2s;
}

[style*="background: var(--bg-secondary"] li:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Project Cards */
.project-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

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

.project-card > div:first-child {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.project-card > div:not(:first-child) {
  padding: 1.5rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  margin-bottom: 1rem;
}

/* Forms */
#contact-form {
  max-width: 800px;
  margin: 0 auto;
}

input,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: all 0.2s;
  margin-bottom: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  background: var(--bg-white);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 1rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0.5rem;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.2rem;
}

footer a:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-image-wrapper {
    width: 280px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-role {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-image-wrapper {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-content {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-image-wrapper {
    width: 220px;
    height: 280px;
  }

  input,
  textarea {
    font-size: 16px;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* About image styling */
.about-image-wrapper {
  position: relative;
  width: 280px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 3px;
  transition: all 0.3s ease;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bg-white);
  border-radius: 13px;
  z-index: 0;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  position: relative;
  z-index: 1;
  display: block;
}

.about-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Utility */
.hover-lift:hover {
  transform: translateY(-4px);
}

.gradient-text {
  color: var(--primary);
}
