/* ==========================================================================
   AI & Design
   Stylesheet: cherrylportfolio.css
   Code by Cherryl Susara
   ========================================================================== */

/* Page */

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

    body, html {
      height: 100%;
      background-color: #fff;
      scroll-behavior: smooth;
      overflow-y: scroll;
    }


 h1, h2, h3 {
            font-family: 'Playfair Display', serif;
            color: #33333e);
        }

/* Hero Section*/
.hero-section {
    position: relative; /* Container for absolute positioning of video/content */
    height: 100vh; /* Sets height to 100% of the viewport height (above the fold) */
    width: 100vw;
    overflow: hidden; /* Clips anything outside the container */
    display: flex; 
    justify-content: center;
    align-items: center;
}

/* Video Background*/
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Ensures the video always covers the container while maintaining aspect ratio */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    
    z-index: 1; 
    object-fit: cover; 
}

/* Style and position the content overlay */
.hero-content {
    position: relative; 
    z-index: 10; /* Puts the text *above* the video */
    color: white; 
    text-align: center;
    padding: 20px;

    /* background-color: rgba(0, 0, 0, 0.3); */
}


/* Headline/Above Fold */

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  /*color: #540FE9;*/
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,2.5);
  letter-spacing: 0.02em;
  line-height: 1.2;
 }

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: white;
  /*color: #16174f;*/
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 6px rgba(0,0,0,2.5);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: white;
  font-family: proxima-nova, sans serif;
  }
  
  
  
/* Hero Text */
  
  
  .cta-button {
  margin-top: 35px;
            display: inline-block;
            background-color: #FFFFFF;
            color: #007AFF;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 8px 20px rgba(0, 123, 255, 3);
            font-family: proxima-nova, sans-serif;
        }

        .cta-button:hover {
            background-color: #ffffff;
            color: #007AFF;
            border: 3px solid #007AFF;
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 123, 255, 2.5);
            font-family: proxima-nova, sans-serif;
        }
  
  
  /* --- Sticky Nav Over Video (Right-Aligned) --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8); /* translucent white over video */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  box-sizing: border-box;
  overflow: hidden;
}



.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}



 /* --- Logo --- */
.logo {
  font-family: 'Playfair Display', serif; /* headline font */
  font-size: 1.4rem;
  font-weight: 600;
  color: #16174f;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;      /* prevents shrinking */
  margin-right: 2rem;  /* ensures it stays left */
 
  
  
}


.logo a {
  font-family: 'Playfair Display', serif; /* headline font */
  font-size: 1.4rem;
  font-weight: 600;
  color: #16174f;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0; /* ensures logo doesn't shrink */
  flex-shrink: 0;      /* prevents shrinking */
  margin-right: 2rem;  /* ensures it stays left */
   
  
  
 
}










/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links a {
  text-decoration: none;
  color: #16174f;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover{
background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: #007AFF;
background: linear-gradient(135deg, #dceaff, #77a7ff);
  }
.nav-links a.active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-bottom: 2px solid #0A84FF;
  padding-bottom: 2px;
  color: #0A84FF;
}



/* --- Responsive Layout --- */
@media (max-width: 768px) {
  .top-nav {
   flex-direction: column;
   align-items: flex-start;
    padding: 1rem 1.5rem;
    font-size: 14px;
    }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 24px;
         }
     
    .logo a {
    font-size: 1rem;
    padding: 16px;
}
   
.logo:  {
font-size: 1rem;
padding: 48px
}
     
}





  /* ---  CONTENT GRID SECTION --- */
        .content-grid-section {
            padding: 80px 20px; 
            background-color: white; /* Clean white background */
            text-align: center;
            position: relative;
            z-index: 1; 
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1); 
        }
        
        .content-grid-section h2 {
            font-size: 3rem;
            margin-bottom: 60px; /* More space below heading */
            color: 16174f;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
            gap: 30px; 
            max-width: 1200px;
            margin: 0 auto;
        }

        .article-box {
            background-color: white;
            border: 1px solid var(--grid-border);
            text-align: left;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            color: var(--text-dark);
            display: flex;
            flex-direction: column;
            border-radius: 8px; /* Slightly rounded corners */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
        }

        .article-box:hover {
            transform: translateY(-8px); /* Lift effect */
            box-shadow: 0 15px 30px var(--hover-shadow); /* More pronounced shadow */
        }

        .article-box-image {
            width: 100%;
            height: 280px; /* Slightly taller images for impact */
            object-fit: cover;
            display: block;
            border-bottom: 1px solid var(--grid-border); /* Subtle separator */
        }

        .article-box-content {
            padding: 25px; /* More padding */
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Pushes date to bottom if needed */
        }

        .article-box-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem; /* Larger title */
            font-weight: 700;
            color: var(--secondary-color); /* Darker, more impactful title */
            margin-top: 0;
            margin-bottom: 15px;
            line-height: 1.3;
        }
        
        .article-box-description {
            font-size: 1.05rem;
            font-family: proxima-nova, sans-serif;
            color: #555;
            margin-bottom: 20px;
            flex-grow: 1; /* Allows description to take available space */
        }

        .article-box-name {
            font-size: 0.9rem;
            color: #777;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-family: proxima-nova, sans-serif;
            
        }

        /* --- Responsive Adjustments --- */
        @media (max-width: 1024px) {
            .hero-content h1 { font-size: 3.5rem; }
            .hero-content p { font-size: 1.4rem; }
            .content-grid-section h2 { font-size: 2.5rem; }
            .article-box-title { font-size: 1.6rem; }
        }

        @media (max-width: 768px) {
            .hero-section { height: 75vh; } /* Adjust height for smaller screens */
            .hero-content h1 { font-size: 2.8rem; }
            .hero-content p { font-size: 1.2rem; }
            .cta-button { padding: 12px 30px; font-size: 1rem; }
            .content-grid-section { padding: 50px 15px; }
            .content-grid-section h2 { font-size: 2rem; margin-bottom: 40px; }
            .grid-container { gap: 20px; }
            .article-box-image { height: 220px; }
            .article-box-title { font-size: 1.4rem; }
            .article-box-content { padding: 20px; }
        }

        @media (max-width: 480px) {
            .hero-section { height: 100vh; }
            .hero-content h1 { font-size: 2rem; }
            .hero-content p { font-size: 1rem; }
            .cta-button { padding: 10px 25px; font-size: 0.9rem; }
            .content-grid-section h2 { font-size: 1.8rem; }
            .article-box-image { height: 180px; }
            .article-box-title { font-size: 1.2rem; }
        }





 /* --- Submenu--- */
    /* Submenu container */
.submenu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; /* spacing between items */
  background: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-top: 64px;
  font-family: 'Proxima Nova', sans-serif;
  z-index: 1200;
}

/* Individual submenu items */
.submenu-item {
  text-decoration: none;
  color: #16174f;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 2px;
  transition: color 0.2s ease;
  
}

/* Submenu links */
.submenu-item a {
  text-decoration: none;
  color: inherit;
  font-family: 'Proxima Nova', sans-serif;
  font-size: 1rem;
  transition: color 0.2s ease;
  padding: 0.2rem 0.2rem;
  display: inline-block;
  color: #16174f;
}

/* Hover effect */
.submenu-item a:hover {
  color: var(--accent-color, #007AFF);
  border-bottom: 2px, solid, #007AFF);
  background: #e2e2e2;
}

/* Active item underline */
.submenu-item span {
  font-size: .95rem;
  text-align: center;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  display: inline-block;
  padding-bottom: 2px;
}
/* Hover effect */
.submenu-item:hover span,
.submenu-item.active span {
  color: var(--accent-color, #007AFF);
  border-bottom: 2px, solid var(--accent color, #007AFF);
   
}

/* Active item underline */
.submenu-item a.active span {
  color: var(--accent-color, #007AFF);
  border-bottom: 2px, solid, #007AFF);
}

.submenu-item span::after
 {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent-color, #007AFF);
  margin-top: 4px;
  transition: width 0.3s ease;
} 
.submenu-item:hover span::after,
.submenu-item.active span::after {
width: 100%;}

.submenu-item a:hover {
  transform: translateY(-2px);
} 







    /* --- Hero Section --- */

/* Desktop / Default */
.hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 75vh;
  width: 100%;
  
}

.hero-text {
display: block;
  flex: 1 1 50%;
  padding: 5rem 4rem;
  color: #16174f;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 1080px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-text, .hero-image {
    flex: 1 1 100%;
    padding: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 90%;
  }

  .submenu {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
   
     }
}
@media (max-width: 768px) {
.submenu {
padding-top: 86px;
flex-direction: column;
min-height: auto;
z-index: 1200;
top: 64px;
}
}


    /* --- Content Section --- */
    section {
      max-width: 900px;
      margin: 4rem auto;
      padding: 0 2rem;
    }

    section h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      color: #16174f;
      margin-top: 3rem;
      margin-bottom: 1rem;
      line-height: 1.3;
    }

    ul {
      list-style: none;
      padding: 0;
      font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #16174f;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
      
    }

    ul li::before {
      content: "• ";
      font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #16174f;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
    }

    /* --- Image Container --- */
    .image-container {
      margin: 2.5rem 0;
      text-align: center;
    }

    .image-container img {
      width: 100%;
      max-width: 900px;
      border-radius: 4px;
     /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); */
    }

    .image-caption {
      font-size: 0.9rem;
      color: #777;
      margin-top: 0.5rem;
      font-style: italic;
    }

    p {
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #16174f;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}
    
    /* --- CTA --- */
    /* --- CTA --- */
    .click {
      text-align: center;
      margin: 3rem 0;
         }

    .click a {
      display: inline-block;
      background: #0A84FF;
      color: white;
      text-decoration: none;
      padding: 1rem 2.2rem;
      border-radius: 50px;
      font-weight: 600;
      transition: background 0.3s ease;
      font-family: proxima-nova, sans-serif;
    }

    .click a:hover {
      background-color: #007AFF;
      font-family: proxima-nova, sans-serif;
    }


    
    
    
    
    
footer {
      text-align: center;
      padding: 2rem;
      font-size: 0.9rem;
      color: #777;
      border-top: 1px solid var(--border-color);
    }

    @media (max-width: 768px) {
      .hero {
        flex-direction: column;
      }
      .hero-text, .hero-image {
        flex: 1 1 100%;
        padding: 2rem;
      }
      .submenu {
        flex-wrap: wrap;
        gap: 1rem;
      }
    }



