/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background);
}

main {
  flex: 1 0 auto;
}

:root {
  --primary-color: linear-gradient(135deg, #ff554e 0%, #ffb347 100%);
  --secondary-color: #ff554e;
  --accent-color: #ff554e;
  --dark-color: #1a1a1a;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --section-bg: #f3f4f6;
  --border-color: #e5e7eb;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Header Styles */
header.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
}

header.header .logo {
  font-family: "Lobster", cursive;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--primary-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

header.header .nav {
  display: flex;
  align-items: center;
}

header.header .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

header.header .nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

header.header .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

header.header .hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Section Styles */
section {
  padding-top: 120px;
  margin-top: -80px;
  scroll-margin-top: 80px;
}

/* Hero Section */
.hero {
  padding: 160px 0 120px;
  min-height: 100vh;
  background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
  text-align: center;
  margin-top: 0;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.hero h1::after {
  display: none;
}

.hero h1:hover::after {
  display: none;
}

.hero p {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  background: var(--primary-color);
  color: white;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn:hover::after {
  opacity: 1;
}

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

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

/* About Section */
.about {
  padding: 100px 0 120px;
  background: var(--background);
}

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.about-text h2:hover::after {
  width: 100%;
}

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

.interests {
  list-style: none;
}

.interests li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.interests li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.section-header h2:hover::after {
  width: 100%;
}

/* Projects Section */
.projects {
  padding: 100px 0 120px;
  background: var(--section-bg);
}

.projects h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.coming-soon {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-bg);
  color: var(--light-text);
  font-size: 1.25rem;
  font-weight: 500;
}

.project-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.25rem;
  color: var(--text-color);
}

.project-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--light-text);
  line-height: 1.6;
  flex-grow: 1;
}

/* Blog Section */
.blog {
  padding: 100px 0 120px;
  background: var(--background);
}

.blog h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  margin: 1rem;
  color: var(--text-color);
}

.blog-card p {
  margin: 0 1rem 1rem;
  color: var(--light-text);
  flex-grow: 1;
}

.blog-card .btn {
  margin: 0 1rem 1rem;
  align-self: flex-start;
}

.blog-post {
  max-width: 800px;
  margin: 20px auto 60px;
  padding: 0 2rem;
}
.blog-post img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  margin: 2rem 0 0.5rem;
}
.blog-post h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.blog-post .meta {
  color: var(--light-text);
  margin-bottom: 2rem;
}
.blog-post .content {
  line-height: 1.8;
}
.blog-post .content p {
  margin-bottom: 1.5rem;
}
.blog-post .content h2 {
  margin: 2rem 0 1rem;
}
.blog-post .content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
.blog-post .content li {
  margin-bottom: 0.5rem;
}
.blog-post .content ol {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  list-style-position: outside;
}
.blog-post .content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.image-caption {
  color: var(--light-text);
  font-size: 0.875rem;
  text-align: center;
  margin: 0 0 2rem;
}

/* Contact Section */
.contact {
  padding: 100px 0 120px;
  background: var(--section-bg);
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: inherit;
}

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

.contact-info .social-links {
  margin-top: 1rem;
  justify-content: flex-start;
}

.contact-info .social-links a {
  color: var(--light-text);
  font-size: 1.25rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  display: inline-block;
}

.contact-info .social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Footer */
.footer {
  flex-shrink: 0;
  padding: 2rem 0;
  background: var(--text-color);
  color: white;
  text-align: center;
}

.footer .social-links a {
  color: var(--light-text);
  font-size: 1.25rem;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  header.header .hamburger {
    display: block;
  }

  header.header .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
  }

  header.header .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  header.header .nav-links li {
    width: 100%;
    text-align: center;
  }

  header.header .nav-links a {
    display: block;
    padding: 0.75rem;
  }

  header.header .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  header.header .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  header.header .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

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

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

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

  .hero {
    padding: 120px 0 60px;
  }

  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.portrait {
  width: 400px;
  height: 400px;
  margin: 0 auto 3rem;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
