/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sauce', Arial, sans-serif;
  background: #f2f4f5;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Sections ===== */
section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* ===== Hero / Intro ===== */
.hero {
  flex-direction: column;
  text-align: center;
}

.hero img {
  max-width: 150px;    
  height: auto;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 100px;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 30px;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 6rem;
}

/* ===== Ira Circle ===== */
.ira-container {
  position: relative;
  display: inline-block;
  padding: 10px; /* space for the oval */
}

.oval {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;   /* bigger horizontal size */
  height: 100px;  /* bigger vertical size */
  transform: translate(-50%, -50%) rotate(-30deg); /* slanted */
  overflow: visible;
}

.oval ellipse {
  fill: none;
  stroke: #ff6347;
  stroke-width: 2;
  stroke-dasharray: 400;  /* approximate perimeter for bigger oval */
  stroke-dashoffset: 400;
  animation: drawOval 3s linear infinite; /* slower: 6s instead of 2s */
}


@keyframes drawOval {
  0%   { stroke-dashoffset: 400; }
  50%  { stroke-dashoffset: 0; }   /* fully drawn */
  100% { stroke-dashoffset: 400; }  /* erased for repeat */
}




/* ===== Hire Me Button ===== */
.hire-me {
  display: inline-block;
  background: #000;       /* black background */
  color: #fff;            /* white text */
  font-size: 20px;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;  /* removes underline */
  transition: background 0.3s ease, color 0.3s ease;
  margin-bottom: 5rem;
}

.hire-me:hover {
  background: #333;  /* lighter black on hover */
  color: #e9efd8;    /* soft highlight text */
}

/* ===== Hero Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}
.delay-3 {
  animation-delay: 0.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Neon Text ===== */
.neon-text {
  font-size: 100px;
  color: #fff;
  
}

/* ===== Portfolio Banner ===== */
.portfolio-banner {
  background: url("assets/bg-galaxy.png") no-repeat center/cover;
  text-align: center;
}

/* ===== About Section ===== */
.about {
  background: #f2f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 9rem 2rem;
  gap: 3rem;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
  padding-left: 8%;
}

.about-text h2 {
  font-size: 60px;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 24px;
  line-height: 1.6;
  color: #333;
}

.about-img {
  flex: 1 1 300px;
  max-width: 70%;
}

.about-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  object-fit: cover;

  /* Floating animation */
  animation: floatDrift 6s ease-in-out infinite;
}

@keyframes floatDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(5px, -15px); }
  50%  { transform: translate(-5px, -20px); }
  75%  { transform: translate(5px, -15px); }
  100% { transform: translate(0, 0); }
}


/* ===== Gentle Monster Section ===== */
.gentle-monster {
  background: url("assets/bg-galaxy2.png") no-repeat center/cover;
}

.gentle-monster img {
  max-width: 75%;
  width: 100%;
}

/* ===== Project Gallery Title (1 image) ===== */
.projects-title {
  flex-direction: column;
  text-align: center;
  background: #f2f4f5;
}

.projects-title h2 {
  font-size: 80px;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.projects-title p {
  font-size: 24px;
  margin-bottom: 2rem;
}

.projects-title img {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  object-fit: cover;
}

/* ===== Project Gallery Two (2 images) ===== */
.projects-two {
  gap: 2rem;
  background: #f2f4f5;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.projects-two img {
  max-width: 30%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Project Gallery Six (6 images, fixed 3x2 layout) ===== */
.projects-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* always 3 per row */
  grid-template-rows: repeat(2, auto);    /* 2 rows only */
  gap: 1rem;
  background: #f2f4f5;
}

.projects-six img {
  width: 100%;
  height: 100%;          /* uniform height */
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Contact Section ===== */
.contact {
  background: url("assets/bg-galaxy3.png") no-repeat center/cover;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6rem 4rem;
  flex-wrap: wrap;
  gap: 3rem;
  padding-left: 7%;
}

.visual-art-container {
  position: relative;
  display: inline-block;
  padding: 20px; /* space for the oval */
}

.visual-art-container .oval {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;   /* slightly smaller than before */
  height: 120px;  /* slightly smaller vertical size */
  transform: translate(-50%, -50%) rotate(-25deg);
  overflow: visible;
}

.visual-art-container .oval ellipse {
  fill: none;
  stroke: #ff6347;
  stroke-width: 2;
  cx: 125;   /* half of width */
  cy: 60;    /* half of height */
  rx: 125;   /* horizontal radius */
  ry: 60;    /* vertical radius */
  stroke-dasharray: 600; /* updated perimeter for smaller ellipse */
  stroke-dashoffset: 600;
  animation: drawOvalVisual 6s linear infinite;
}

/* Keyframes for Visual Art */
@keyframes drawOvalVisual {
  0%   { stroke-dashoffset: 706; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 706; }
}


/* Left side */
.contact-left {
  flex: 1 1 500px;
  text-align: left;
}

.contact-left h2 {
  font-size: 60px;
  margin-bottom: 2rem;
  position: relative;
}

.contact-left h2::after {
  content: "";
  display: inline-block;
  width: 80%;
  height: 3px;
  background: #fff;
  margin-left: 1rem;
  vertical-align: middle;
}

.contact-left .social-text {
  font-size: 20px;
  margin: 1.5rem 0 1rem;
}

.socials {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  padding: 0;
  list-style: none;
}

.socials li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.socials li a:hover {
  color: #e9efd8;
}

/* Right side */
.contact-right {
  flex: 1 1 300px;
  text-align: right;
  font-size: 20px;
  line-height: 1.8;
  align-self: flex-end;
  margin-top: 1rem;
  margin-bottom: 1rem ;
}

.contact-right strong {
  display: inline-block;
  width: 80px;
}


/* ===== Smooth Rise Animation (Keyframes) ===== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0; /* initial state */
  animation: fadeUp 1s ease-out forwards;
}

/* Stagger delays for sequencing */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }
.delay-8 { animation-delay: 1.6s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .projects-six {
    grid-template-columns: repeat(3, 1fr); /* stays 3x2 */
  }
}

@media (max-width: 768px) {
  .hero h1, 
  .neon-text, 
  .projects-title h2 {
    font-size: 48px;
  }

  .hero p, 
  .projects-title p, 
  .contact h2, 
  .contact p {
    font-size: 18px;
  }

  .projects-two {
    flex-direction: column;
  }

  .projects-two img {
    max-width: 100%;
  }

  /* Keep 3x2 layout on mobile, allow scroll */
  .projects-six {
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
  }

  .contact {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-left,
  .contact-right {
    text-align: center;
  }

  .contact-left h2::after {
    display: block;
    margin: 0.5rem auto 0;
  }

  .socials {
    justify-content: center;
  }
}


/* Smooth scrolling for anchors */
html {
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem; /* ~40px */
  }

  .hero p {
    font-size: 1.2rem; /* ~18-20px */
  }

  .projects-title h2 {
    font-size: 2rem;
  }

  .projects-title p,
  .about-text p,
  .contact h2,
  .contact p {
    font-size: 1rem;@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem; /* ~40px */
  }

  .hero p {
    font-size: 1.2rem; /* ~18-20px */
  }

  .projects-title h2 {
    font-size: 2rem;
  }

  .projects-title p,
  .about-text p,
  .contact h2,
  .contact p {
    font-size: 1rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

  }

  .about-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .projects-six {
    display: grid;
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: auto;
    gap: 1rem;
  }

  .projects-two {
    flex-direction: column;
    gap: 1rem;
  }

  .projects-two img,
  .projects-six img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
  /* Keep 3x2 project six layout */
  .projects-six {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  /* Hero scaling */
  .hero h1,
  .neon-text,
  .projects-title h2 {
    font-size: 2.5rem; /* ~40px */
  }

  .hero p,
  .projects-title p,
  .about-text p,
  .contact h2,
  .contact p {
    font-size: 1.2rem; /* ~18-20px */
  }

  .about-text h2 {
    font-size: 2rem;
  }

  /* Projects layout adjustments */
  .projects-two {
    flex-direction: column;
    gap: 1rem;
  }

  .projects-two img,
  .projects-six img {
    max-width: 100%;
    height: auto;
  }

  .projects-six {
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: auto;
    gap: 1rem;
  }

  /* Contact adjustments */
  .contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-left,
  .contact-right {
    text-align: center;
  }

  .contact-left h2::after {
    display: block;
    margin: 0.5rem auto 0;
  }

  .socials {
    justify-content: center;
  }

  /* Shrink ovals proportionally */
  .ira-container .oval {
    width: 120px;
    height: 60px;
  }
  .ira-container .oval ellipse {
    cx: 60; cy: 30; rx: 60; ry: 30;
    stroke-dasharray: 188; stroke-dashoffset: 188;
  }

  .visual-art-container .oval {
    width: 180px;
    height: 90px;
  }
  .visual-art-container .oval ellipse {
    cx: 90; cy: 45; rx: 90; ry: 45;
    stroke-dasharray: 270; stroke-dashoffset: 270;
  }

  /* About image scaling */
  .about-img {
    max-width: 100%;
  }
}

