* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #282828;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: #121212;
  color: #f5f5f5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.icon svg path {
  fill: currentColor;
}

#themeToggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #282828;
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.15s ease;
}

#themeToggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

body.dark #themeToggle {
  color: #f5f5f5; 
}

#themeToggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.dark #themeToggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

#themeToggle:active {
  transform: scale(0.9);
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

header h2 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 8px;
    color: #555;
}

body.dark header h2 {
  color: #aaa;
}

.btn {
  position: relative;
  display: inline-block;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;

  text-decoration: none;
  color: #282828;

  padding: 2px 0;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 1.5px;
  background-color: #282828;

  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.dark .btn {
  color: #f5f5f5;
}

body.dark .btn::after {
  background-color: #f5f5f5;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.contact-info a {
    text-decoration: none;
    color: #282828;
    font-size: 14px;
}

body.dark .contact-info a {
  color: #f5f5f5;
}

section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}

body.dark .section-title {
  border-bottom-color: #333;
}

p {
    margin: 0;
}

.job {
    margin-bottom: 24px;
}

.job h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.job p {
    font-size: 14px;
    color: #444;
}

body.dark .job p {
  color: #bdbdbd;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill {
    background: #f1f3f5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

body.dark .skill {
  background: #2a2a2a;
}

.languages .language {
    font-size: 14px;
}

footer {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 40px;
}


@media (max-width: 768px) {
    .container {
        padding: 24px 14px;
    }

    header h1 {
        font-size: 24px;
    }

    header h2 {
        font-size: 15px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .skills {
        justify-content: center;
    }
}

@media print {

    body {
        background: #fff;
        color: #000;
        font-size: 12px;
    }

    .language-toggle {
        display: none;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        page-break-inside: avoid;
    }

    footer {
        font-size: 11px;
        margin-top: 20px;
    }
}
