/*
Theme Name: MyPortfolio
Theme URI: https://example.com
Author: Alex
Author URI: https://example.com
Description: A clean portfolio WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: myportfolio
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  scroll-behavior: smooth;
}

/* NAV */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #6c63ff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul a:hover {
  color: #6c63ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6c63ff22, #fff);
  text-align: center;
  padding-top: 80px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero-content h1 span {
  color: #6c63ff;
}

.hero-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: #6c63ff;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #574fd6;
}

/* ABOUT */
.about {
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about h2, .work h2, .contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #6c63ff;
}

.about p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* WORK */
.work {
  padding: 80px 40px;
  background: #f9f9f9;
  text-align: center;
}

.projects {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin-bottom: 10px;
  color: #6c63ff;
}

/* CONTACT */
.contact {
  padding: 80px 40px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

form input, form textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

form input:focus, form textarea:focus {
  border-color: #6c63ff;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 24px;
  background: #333;
  color: #aaa;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}
