/* ============================================
   CSS Variables & Base Styles
============================================= */
:root {
  --primary-color: #111111;
  --secondary-color: #666666;
  --accent-color: #3b82f6;
  --bg-color: #f5f5f0;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Scroll Progress Bar
============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 10001;
  transition: width 0.1s ease;
}

/* ============================================
   Header
============================================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 15px 10%;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

header h1 {
  font-size: 18px;
  font-weight: 600;
}

nav {
  display: flex;
}

nav a {
  margin-left: 30px;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  opacity: 0.6;
}

/* ============================================
   Hero Section
============================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-content {
  padding: 50px 70px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #f5f5f0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin-bottom: 30px;
  color: #f5f5f0;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border: 1px solid #f5f5f0;
  font-size: 14px;
  color: #f5f5f0;
  background: transparent;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.btn:hover {
  background: #f5f5f0;
  color: #111111;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Sections
============================================= */
section {
  padding: 120px 10%;
}

.section-title {
  font-size: 28px;
  margin-bottom: 60px;
}

/* ============================================
   Projects Grid
============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.project-card img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card {
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-info {
  margin-top: 15px;
}

.project-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.project-info p {
  font-size: 14px;
  opacity: 0.6;
}

/* ============================================
   About Section
============================================= */
#about p {
  max-width: 700px;
}

/* ============================================
   Contact Section
============================================= */
.contact-form {
  max-width: 600px;
  margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form button {
  padding: 12px 28px;
  border: 1px solid #d2d4d8;
  background: none;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #111111;
  color: #FFFFFF;
}

/* Social Icons */
.socials {
  margin-top: 40px;
}

.socials a {
  margin-right: 20px;
  font-size: 18px;
  transition: 0.3s;
  display: inline-block;
}

.socials a:hover {
  opacity: 0.6;
  transform: translateY(-3px);
}

/* ============================================
   Footer
============================================= */
footer {
  text-align: center;
  padding: 60px 10%;
  font-size: 14px;
  color: #c1c3c7;
  background: #ffffff;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}

/* ============================================
   Animations
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================
   Responsive
============================================= */
@media (max-width: 768px) {
  .hero h2 { font-size: 32px; }
  .hero-content { padding: 30px; }
  nav a { margin-left: 20px; font-size: 13px; }
}