@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

:root {
  --primary-color: #ffcd42;
  --primary-dark: #e6b830;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --bg-alt: #f8f9fc;
  --text-color: #222222;
  --text-muted: #6b7280;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;
  --border-color: #e5e7eb;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
  --transition: 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --primary-dark: #f0c240;
  --secondary-color: #ffd35c;
  --bg-primary: #0a0a0a;
  --bg-alt: #111111;
  --text-color: #f0f0f0;
  --text-muted: #9ca3af;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #1a1a1a;
  --bg-secondary-two: #f4f4f4;
  --border-color: #2a2a2a;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html { font-size: 100%; scroll-behavior: smooth; }

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

ul { list-style: none; }

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

a:hover { color: var(--primary-color); }

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

body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

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

.navbar #logo img {
  width: 36px;
  transition: var(--transition);
}

.navbar #logo img:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--card-background);
  color: var(--primary-color);
}

.theme-switch {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  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(255, 205, 66, 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(255, 205, 66, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: var(--weight-bold);
  line-height: 1.1;
  color: var(--text-color);
}

.hero-title {
  font-size: 1.5rem;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  min-height: 2rem;
}

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

.cursor {
  display: inline-block;
  width: 3px;
  background: var(--primary-color);
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.hero-social a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 205, 66, 0.1);
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-image-bg {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px dashed var(--primary-color);
  animation: spin 20s linear infinite;
  z-index: 1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 1rem auto 0;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card-background);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Skills */
.skills-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3 i {
  color: var(--primary-color);
}

.skill-bar {
  margin-bottom: 1.2rem;
}

.skill-name {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 0.4rem;
}

.skill-track {
  height: 8px;
  background: var(--card-background);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  width: 0;
  transition: width 1s ease;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card-background);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.project-links a:hover {
  background: var(--primary-color);
  color: #000;
  transform: scale(1.1);
}

.project-details {
  padding: 1.25rem;
}

.project-details h3 {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 0.3rem;
}

.project-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 205, 66, 0.15);
  color: var(--primary-dark);
  border-radius: 4px;
  font-weight: var(--weight-semibold);
}

.section-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* Timeline / Experience */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

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

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.5rem;
}

.timeline-icon {
  position: absolute;
  left: 8px;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #000;
  z-index: 2;
}

.timeline-content {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.timeline-date {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  background: rgba(255, 205, 66, 0.15);
  color: var(--primary-dark);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-content h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-primary);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 205, 66, 0.1);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.cert-card h3 {
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 0.3rem;
}

.cert-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 205, 66, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
}

.contact-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-social a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 205, 66, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 205, 66, 0.1);
}

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

.btn-block {
  width: 100%;
  text-align: center;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
#footer {
  background: #111111;
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  text-align: center;
}

.footer-email {
  font-size: 0.9rem;
  color: #aaa !important;
  transition: var(--transition);
}

.footer-email:hover {
  color: var(--primary-color) !important;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  transition: var(--transition);
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer-social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(0.7);
  transition: var(--transition);
}

.footer-social a:hover img {
  filter: brightness(0) invert(1);
}

#footer p {
  font-size: 0.8rem;
  color: #666;
}

/* Scroll 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);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive - Tablet & below */
@media (max-width: 1100px) {
  .hero-name { font-size: 3rem; }
  .content-text h2 { font-size: 2.5rem; }
}

@media (max-width: 1000px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-description { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }

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

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

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img { width: 60%; }

  .skills-content { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-content { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    right: -100vw;
    top: 60px;
    flex-direction: column;
    width: calc(85% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border-radius: var(--radius);
    align-items: flex-start;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
  }

  .nav-menu.active { right: 15px; }
  .nav-link { margin: 0; width: 100%; font-size: 0.85rem; }
  .nav-menu li { width: 100%; }
  .nav-menu .btn { width: 100%; text-align: center; margin-top: 0.5rem; }

  .hamburger { display: block; cursor: pointer; padding: 0.1rem 0.2rem; }
  .hamburger.active { border: 1px dotted gray; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .theme-switch { margin-left: auto; }
}

@media (max-width: 768px) {
  .navbar .container { height: 60px; }
  .navbar #logo img { width: 30px; }

  .container { padding: 1rem 1.5rem; }
  .section { padding: 3.5rem 0; }

  .hero-name { font-size: 2.2rem; }
  .hero-title { font-size: 1.2rem; }
  .hero-greeting { font-size: 0.95rem; }
  .hero-description { font-size: 0.9rem; }
  .hero-image-wrapper { width: 200px; height: 200px; }
  .hero-image-bg { display: none; }

  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.9rem; }

  .about-text h3 { font-size: 1.3rem; }

  .skills-content { grid-template-columns: 1fr; }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .project-thumb { height: 200px; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .stat { padding: 1rem 0.5rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }

  .timeline::before { left: 15px; }
  .timeline-item { padding-left: 45px; }
  .timeline-icon { left: 4px; width: 22px; height: 22px; font-size: 0.65rem; }
  .timeline-content { padding: 1.2rem; }
  .timeline-content h3 { font-size: 1rem; }
  .timeline-content p { font-size: 0.85rem; }

  .contact-info { gap: 1rem; }
  .contact-item i { width: 38px; height: 38px; font-size: 0.95rem; }
  .contact-item p, .contact-item a { font-size: 0.85rem; }

  .cert-card { padding: 1.5rem 1rem; }
  .cert-card h3 { font-size: 0.85rem; }
  .cert-icon { width: 46px; height: 46px; font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .navbar .container { height: 55px; }
  .nav-menu { top: 55px; }

  .container { padding: 1rem 1.2rem; }
  #hero { min-height: auto; padding: 5rem 0 3rem; }

  .hero-name { font-size: 1.8rem; }
  .hero-title { font-size: 1rem; }
  .hero-image-wrapper { width: 160px; height: 160px; }

  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }

  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }

  .about-content { gap: 1.5rem; }
  .about-image img { width: 70%; max-width: 220px; }
  .about-text h3 { font-size: 1.1rem; }
  .about-text p { font-size: 0.85rem; }

  .about-stats { grid-template-columns: 1fr; max-width: 220px; margin: 1.5rem auto 0; }
  .stat { padding: 0.8rem; }
  .stat-number { font-size: 1.3rem; }

  .skill-category { padding: 1.5rem; }
  .skill-name { font-size: 0.8rem; }
  .skill-track { height: 6px; }

  .project-grid { max-width: 380px; gap: 1rem; }
  .project-thumb { height: 180px; }
  .project-details h3 { font-size: 0.9rem; }
  .project-details p { font-size: 0.8rem; }

  .timeline-item { margin-bottom: 1.5rem; }
  .timeline-content { padding: 1rem; }
  .timeline-content h3 { font-size: 0.9rem; }
  .timeline-content h4 { font-size: 0.8rem; }
  .timeline-content p { font-size: 0.8rem; }
  .timeline-date { font-size: 0.7rem; }

  .cert-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; gap: 1rem; }
  .cert-card { padding: 1.2rem 1rem; }
  .cert-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 0.7rem; }
  .cert-card h3 { font-size: 0.8rem; }

  .contact-content { gap: 1.5rem; }
  .contact-item i { width: 34px; height: 34px; font-size: 0.85rem; }
  .form-group input, .form-group textarea { padding: 0.75rem 1rem; font-size: 0.85rem; }
  .btn { padding: 0.65rem 1.5rem; font-size: 0.75rem; }

  .footer-content { gap: 0.7rem; }
  .footer-email { font-size: 0.8rem; }
  .footer-social img { width: 18px; height: 18px; }
  #footer p { font-size: 0.7rem; }
}

@media (max-width: 400px) {
  .container { padding: 0.8rem 1rem; }
  .hero-name { font-size: 1.5rem; }
  .hero-image-wrapper { width: 130px; height: 130px; }
  .hero-actions .btn { max-width: 240px; padding: 0.6rem 1.2rem; font-size: 0.7rem; }

  .section-header h2 { font-size: 1.3rem; }
  .project-grid { max-width: 100%; }
  .project-details { padding: 0.8rem 1rem; }

  .about-image img { width: 80%; max-width: 180px; }

  .timeline-item { padding-left: 35px; }
  .timeline::before { left: 10px; }
  .timeline-icon { left: 1px; width: 18px; height: 18px; font-size: 0.55rem; }
}
