/* --- Global Styles & Variables --- */
:root {
    --bg-color: #b5b5b5; /* Darker, more modern background */
    --text-color: #f0f0f0;
    --primary-accent: #f39c12; /* Vibrant orange from your logo */
    --secondary-accent: #e67e22;
    --card-bg: rgb(65, 61, 50);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: "Kaushan Script", cursive;
    --font-body: "EB Garamond", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 1px; }
h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); margin-bottom: 1rem; line-height: 1.1; }
h2 { font-size: clamp(2rem, 8vw, 3rem); }
p { margin-bottom: 1.5rem; color: #a0a0a0; max-width: 65ch; }
a { color: var(--primary-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-color); }

/* --- Layout & Sections --- */
section { padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.section-title { margin-bottom: 3rem; }

/* --- Header & Nav --- */
header {
    position: fixed;
    width: 100%;
    padding: 1rem 1.5rem;
    z-index: 1000;
    text-shadow: #121212;
    /* background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); */
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: white;           /* Example text color */
    
    /* This is the magic for the animation */
    transition: transform 0.3s ease;
    transform: translateY(0);
    z-index: 1000;
  }
  
  /* This class will be added by JavaScript to hide the header */
  #main-header.header-hidden {
    transform: translateY(-100%);
}

nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo img { height: 45px; width: auto; vertical-align: middle; }
@media screen and (max-width: 768px) {
    .logo img { height: 35px; }
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--text-color); font-weight: 600; position: relative; padding: 0.5rem 0; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; display: block; margin-top: 5px; right: 0; background: var(--primary-accent); transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-links a.active { color: var(--primary-accent); }

/* Target the anchor tags within the list items of your navigation */
.nav-links li a {
    color: rgb(255, 255, 255); /* Example text color */
    font-size: 16px; 
    text-shadow: 1px 1px 1px rgba(43, 43, 43, 0.7);
}

/* --- Mobile Navigation --- */
.hamburger { display: none; cursor: pointer; z-index: 11; }
.hamburger .line { width: 25px; height: 3px; background-color: var(--text-color); margin: 5px; transition: all 0.3s ease; }

/* --- Hero Section (Homepage) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center; /* Center vertically by default */
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    background-size: cover;
    background-attachment: fixed; /* Fixes BG for parallax effect on mobile */
    background-position: center bottom; /* Better positioning for the portrait image */
    background-image: url('images/mainheromob.webp'); /* Mobile First Background */
}

/* Desktop/Default Styles (Larger Screens) */
.hero-content-text p:first-child {
  font-size: 2.5em; /* 'contact' */
  margin-top: 0;
        margin-bottom: -10px;
}
.hero-content-text h2 {
  font-size: 5em; /* 'NOW' */
  margin-top: 0;
        margin-bottom: 5px;
}
.hero-content-text p:last-child {
  font-size: 1.4em; /* 'or just check it OUT!' */
}
.hero-content-text-container {
  padding: 20px;
}

/* Mobile Styles (Screen width 600px and below) */
@media (max-width: 600px) {
  .hero-content-text-container {
      padding: 10px; /* Reduced padding for mobile */
  }
  .hero-content-text p:first-child {
      font-size: 1.5em; /* Smaller 'contact' */
      margin-bottom: -5px !important;
  }
  .hero-content-text h2 {
      font-size: 3em; /* Smaller 'NOW' */
      margin-bottom: 3px !important;
  }
  .hero-content-text p:last-child {
      font-size: 0.8em; /* Smaller 'or just check it OUT!' */
  }
}

/* --- About & Footer --- */
.about { background-color: #484343; 
        background-blend-mode: multiply; }
.about-content { max-width: 700px; margin: 0 auto; }
footer { background: linear-gradient(45deg, #1f1f1f, #121212); padding: 5rem 1.5rem 2rem 1.5rem; text-align: center; }
footer h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-color); }
footer p { color: #a0a0a0; max-width: 500px; margin: 1rem auto 2rem auto; }
footer .copyright { margin-top: 4rem; font-size: 0.8rem; color: #555; }

/* --- Inner Page Hero --- */
.page-hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; background-color: #1a1a1a; padding-top: 5rem; text-align: center; background: linear-gradient(45deg, rgba(30,30,30,0.9), rgba(18,18,18,0.9)), url('https://images.unsplash.com/photo-1512418490876-f92215a51089?q=80&w=2070') no-repeat center center/cover; }

/* --- Gallery for other pages --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-flow: dense; gap: 1rem; max-width: 1200px; margin: 0 auto; }
.gallery-item { overflow: hidden; border-radius: 10px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); filter: brightness(1.1); }

/* --- Pricing Section --- */
.pricing { background: var(--bg-color); }
.pricing-table { display: flex; flex-direction: column; gap: 2rem; max-width: 1200px; margin: 0 auto; align-items: center; }
.price-card { background: var(--card-bg); padding: 2.5rem; border-radius: 15px; border: 1px solid var(--border-color); flex: 1; width: 100%; max-width: 380px; transition: transform 0.3s ease, border-color 0.3s ease; }
.price-card:hover { transform: translateY(-5px); border-color: var(--primary-accent); }
.price-card.featured { border-color: var(--primary-accent); transform: scale(1.05); }
.price-card h3 { color: var(--primary-accent); }
.price-card .price { font-size: 2.5rem; font-weight: 700; margin: 1rem 0; color: var(--text-color); }
.price-card ul { list-style: none; text-align: left; margin-bottom: 2rem; }
.price-card ul li { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); color: #a0a0a0; }
.price-card ul li::before { content: '✓'; color: var(--primary-accent); margin-right: 10px; }

/* --- Portfolio Section (Websites Page) --- */
.portfolio { background: #1a1a1a; }
.portfolio-item { display: flex; flex-direction: column; text-align: left; max-width: 1000px; margin: 0 auto 5rem auto; gap: 2rem; align-items: center; }
.portfolio-image { flex: 1; }
.portfolio-image img { width: 100%; border-radius: 15px; transition: transform 0.3s ease; }
.portfolio-image img:hover { transform: scale(1.02); }
.portfolio-text { flex: 1; }
.portfolio-text h3 { color: var(--primary-accent); margin-bottom: 1rem; }

#services {
    background-color: #a0a0a0;
}
#services .portfolio-item {
    background-color: #ffffff;
    border-radius: 1px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#services .portfolio-item .portfolio-image img {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.751);
}

#services .portfolio-item .portfolio-text h3 {
    color: rgb(255, 255, 255);
}

#services .portfolio-item .portfolio-text a {
    color: rgb(255, 255, 255);
    background-color: #000000;
    padding: 10px 15px;
  }


/* --- Media Queries --- */
@media screen and (max-width: 768px) {
    .nav-links { position: fixed; right: -100%; top: 0; height: 100vh; width: 60%; background: rgba(18, 18, 18, 0.9); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); gap: 4rem; }
    .nav-links.nav-active { right: 0; }
    .hamburger { display: block; }
}

@media (min-width: 768px) {
    .hero {
        align-items: flex-end; /* Move text to bottom half */
        padding-bottom: 12vh; /* Give it some space from the edge */
        background-position: center bottom; 
        background-image: url('images/mainheropc.webp'); /* Desktop Background */
    }

    .pricing-table { flex-direction: row; align-items: stretch; }
    .portfolio-item { flex-direction: row; }
    .portfolio-item:nth-child(even) { flex-direction: row-reverse; }
}

@keyframes zoom-in { 0% { background-size: 100% 100%; } 100% { background-size: 110% 110%; } }


/* --- END: Step 1 --- */

/* --- REDESIGN: Step 2c - Hamburger Animation --- */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- REDESIGN: Step 3 - Overlapping Layout --- */

/* Add this inside your existing @media (min-width: 768px) query */

.portfolio-item {
    position: relative; /* Create a new stacking context */
}

.portfolio-item .portfolio-image {
    flex: 1.2; /* Make image slightly bigger */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item .portfolio-text {
    flex: 1;
    z-index: 2; /* Ensure text is on top */
    background: rgba(30, 30, 30, 0.7); /* Give text a slight bg */
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.portfolio-item .portfolio-image img {
    /* Keep existing styles */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* The "Magic": Overlap the image */
.portfolio-item:nth-child(even) .portfolio-image {
    @media (min-width: 768px) {transform: scale(1.25);}
    margin-right: -80px; /* Pulls the image over the text box */
}
.portfolio-item:nth-child(odd) .portfolio-image {
    @media (min-width: 768px) {transform: scale(1.25);}
    margin-left: -80px; /* Pulls image the other way */
}

.portfolio-item:hover .portfolio-image {
    @media (min-width: 768px) {transform: scale(1.1);}
}

/* --- Mobile First Styles (Default) --- */
/* This controls the look on phones */

.horizontal-nav {
    /* Positioning */
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  
    /* Layout & Sizing */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* Mobile: smaller gap */
    
    /* Frosted Glass Bar */
    background-color: rgba(0, 0, 0, 0.271);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 12px; /* Mobile: smaller padding */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Style for text links */
  .nav-icon {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Mobile: smaller font */
    padding: 6px 8px; /* Mobile: smaller button padding */
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
  }
  
  /* Style for the home icon link */
  .home-icon img {
    width: 20px; /* Mobile: smaller icon */
    height: 20px;
    display: block; /* Removes extra space */
  }
  
  /* HOVER state (mouse is over it) */
  .nav-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgb(255, 132, 0);
    transform: scale(1.05);
  }
  
  /* ACTIVE state (this page is open) */
  /* This mirrors the hover state */
  .nav-icon.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgb(255, 89, 0);
    transform: scale(1.05);
  }
  
  
  /* --- PC/Desktop Styles --- */
  /* These rules apply ONLY to screens 768px wide or wider */
  
  @media (min-width: 768px) {
  
    .horizontal-nav {
      gap: 15px; /* PC: larger gap */
      padding: 12px 20px; /* PC: larger padding */
    }
  
    .nav-icon {
      font-size: 16px; /* PC: larger font */
      padding: 10px 16px; /* PC: larger button padding */
    }
  
    .home-icon img {
      width: 24px; /* PC: larger icon */
      height: 24px;
    }
  }
  
  .about-artist-image {
    max-width: 300px; 
    margin: 20px auto; 
}

.about-artist-image img {
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 8px;
    display: block; 
}

  /* ========================================
   1. COMMON HERO STYLES (for all 3 pages)
   ======================================== */

.page-hero {
    /* Put all your shared styles here */
    /* For example: */
    padding: 100px 20px;
    color: white;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;  
  }

    .hero-content { 
    position: relative; z-index: 2;  align-items: left; text-align: left;
    }
    .hero-content p {
        max-width: 500px; margin: 0 auto 2rem auto; font-size: 1.1rem; color: #f0f0f0; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.745); 
    }
  /* ========================================
   2. PAGE-SPECIFIC IMAGES (Mobile-First)
   ======================================== */

/* Default background for mobile on the "Portrait" page */
.page-hero.portrait-page-hero {
    background-image: url('images/portrait-banner-mobile.png');
    background-position: center;
  }
  
  /* Default background for mobile on the "Web" page */
  .page-hero.web-page-hero {
    background-image: url('images/banner.web.mob.webp');
    background-position: right top;
  }
  
  /* Default background for mobile on the "Design" page */
  .page-hero.design-page-hero {
    background-image: url('images/design-banner-mobile.png');
    background-position: center;
  }

  .page-hero.about-page-hero {
    background-image: url('images/banner.about.mob.webp');
    background-position: right top;
  }
  
  
  /* ========================================
     3. MEDIA QUERY FOR PC SCREENS
     (Overrides the mobile images on screens 
      768px and wider)
     ======================================== */
  
  @media (min-width: 768px) {
  
    .hero-content { 
        position: relative; z-index: 2; padding: 1rem;;
    }
    .hero-content p {
        max-width: 500px; margin: 0 auto 2rem auto; font-size: 1.1rem; color: #f0f0f0; 
    }
    /* PC background for the "Portrait" page */
    .page-hero.portrait-page-hero {
      background-image: url('images/banner.portrait.png');
      /* You can set a custom PC position if needed */
      /* background-position: top; */ 
    }
  
    /* PC background for the "Web" page */
    .page-hero.web-page-hero {
      background-image: url('images/banner.web.webp'); /* Your original image */
      background-position: right top; /* Your original position */
    }
  
    /* PC background for the "Design" page */
    .page-hero.design-page-hero {
      background-image: url('images/design-banner-pc.png');
      /* background-position: left center; */
    }

    .page-hero.about-page-hero {
      background-image: url('images/banner.about.webp');
      background-position: top right;
      /* background-position: left center; */
    }
  
  }
  