/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06080d;
  --surface: #0d1117;
  --surface-light: #161b22;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #60a5fa;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.06);
  --gradient-1: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #0f172a, #1e3a5f);
  --gradient-3: linear-gradient(135deg, #1e293b, #0f172a);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}

.cursor-follower {
  width: 40px; height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s infinite ease-in-out;
}

.shape-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px; height: 300px;
  background: #8b5cf6;
  bottom: -50px; left: -50px;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px; height: 200px;
  background: var(--accent);
  top: 50%; left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content { flex: 1; position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-badge span { color: #10b981; margin-right: 0.3rem; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.typed-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary, .btn-outline {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat small {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== HERO CARD ===== */
.hero-visual { flex: 0.8; position: relative; z-index: 2; }

.hero-card {
  perspective: 1000px;
}

.card-inner {
  width: 320px;
  height: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatCard 6s infinite ease-in-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.avatar {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.card-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.card-inner p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== SECTIONS ===== */
section { padding: 6rem 2rem; }

#about { background: var(--surface); }
#skills { background: var(--bg); }
#projects { background: var(--surface); }
#contact { background: var(--bg); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header { margin-bottom: 4rem; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
}

.section-title span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--surface-light);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  border: 1px solid var(--border);
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text strong { color: var(--text); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.highlight-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s;
}

.highlight-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.highlight-item i {
  font-size: 1.2rem;
  color: var(--primary);
  width: 35px;
  text-align: center;
}

.highlight-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.skill-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.skill-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skill-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width 1.5s ease;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: var(--primary);
}

.project-image {
  height: 180px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.project-info { padding: 1.5rem; }

.project-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.project-tags span {
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.65rem;
  color: var(--accent);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s;
}

.project-link:hover { gap: 0.8rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info > p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-item i {
  width: 45px; height: 45px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

.contact-item small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item strong {
  font-size: 0.85rem;
  color: var(--text);
}

.social-links { display: flex; gap: 0.8rem; margin-top: 2rem; }

.social-links a {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  color: var(--text);
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form textarea { height: 140px; resize: vertical; }

.contact-form button {
  padding: 1rem;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--primary); }

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer p span { color: var(--text); }

.copyright { margin-top: 0.5rem; font-size: 0.7rem; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  /* Show hero visual on mobile */
  .hero-visual {
    display: block !important;
    order: -1;
    margin-bottom: 1.5rem;
  }
  
  .card-inner {
    width: 220px;
    height: 260px;
    margin: 0 auto;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
}
/* ===== PROFILE PHOTO ===== */
.avatar {
  width: 300px;
  height: 300px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About section image */
.image-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-image {
  height: 200px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--surface);
}
/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
  /* Show hamburger menu */
  nav {
    padding: 0.8rem 1rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 8, 13, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }

  /* Hero section */
  .hero {
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 0.9rem;
    max-width: 100%;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }
  
  .card-inner {
    width: 200px;
    height: 240px;
    padding: 1.5rem;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }
  
  .avatar img {
    width: 100px;
    height: 100px;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Sections */
  section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .image-placeholder {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-image {
    height: 180px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}
/* ===== ROTATING IPHONE CSS ===== */
/* Add this to your portfolio.css file */

.iphone-rotator {
  perspective: 1200px;
  width: 260px;
  height: 520px;
  margin: 0 auto;
}

.iphone {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 42px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 4px rgba(255, 255, 255, 0.08);
  position: relative;
  animation: rotatePhone 8s ease-in-out infinite;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

@keyframes rotatePhone {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  25% { transform: rotateY(12deg) rotateX(6deg); }
  50% { transform: rotateY(0deg) rotateX(0deg); }
  75% { transform: rotateY(-12deg) rotateX(-6deg); }
  100% { transform: rotateY(0deg) rotateX(0deg); }
}

.iphone-screen {
  width: 92%;
  height: 92%;
  background: #ffffff;
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.notch {
  position: absolute;
  top: 12px;
  width: 140px;
  height: 28px;
  background: #0a0e27;
  border-radius: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ===== IPHONE FOR PROJECTS - HALF SIZE, FIXED IMAGE FIT ===== */

/* iPhone Frame - Fixed half size */
.iphone-frame {
  position: relative;
  width: 180px;
  height: 370px;
  margin: 0 auto 1rem;
}

.iphone-device {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 32px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), inset 0 0 0 3px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

/* No rotation - just slight lift on hover */
.project-card:hover .iphone-device {
  transform: translateY(-3px);
}

/* Notch - smaller for half size */
.iphone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #0a0e27;
  border-radius: 14px;
  z-index: 3;
}

/* Screen - FIXED: image fills completely */
.iphone-screen {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 92%;
  height: 92%;
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* If you want the image to show fully without cropping, use this instead: */
/*
.iphone-screen img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
*/

/* Side button */
.iphone-side-button {
  position: absolute;
  right: -3px;
  top: 70px;
  width: 3px;
  height: 25px;
  background: #3b82f6;
  border-radius: 2px;
  opacity: 0.5;
}

/* Volume buttons */
.iphone-volume-up {
  position: absolute;
  left: -3px;
  top: 55px;
  width: 3px;
  height: 20px;
  background: #3b82f6;
  border-radius: 2px;
  opacity: 0.5;
}

.iphone-volume-down {
  position: absolute;
  left: -3px;
  top: 82px;
  width: 3px;
  height: 20px;
  background: #3b82f6;
  border-radius: 2px;
  opacity: 0.5;
}

/* Silent switch */
.iphone-silent {
  position: absolute;
  left: -3px;
  top: 35px;
  width: 3px;
  height: 14px;
  background: #3b82f6;
  border-radius: 2px;
  opacity: 0.5;
}

/* Project Card */
.project-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.4);
}

/* Project Info */
.project-info {
  margin-top: 1rem;
  text-align: left;
}

.project-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 0.65rem;
  padding: 0.2rem 0.7rem;
  border-radius: 16px;
  margin-bottom: 0.5rem;
}

.project-info h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: white;
}

.project-info p {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.project-tags span {
  background: rgba(59, 130, 246, 0.1);
  font-size: 0.65rem;
  padding: 0.15rem 0.6rem;
  border-radius: 16px;
  color: #94a3b8;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: gap 0.3s;
}

.project-link:hover {
  gap: 0.6rem;
  color: #60a5fa;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .iphone-frame {
    width: 160px;
    height: 330px;
  }
}

/* Project iPhone Image - FIXED */
.project-iphone-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}