/*
Theme Name: Joshua Nimako
ThemeURI: https://joshuanimako.com
Author: JOSHUA NIMAKO
Author URI: https://joshuanimako.com
Description:  Joshua CUSTOM THEME
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joshua-nimako-theme
*/


















/* ==================== */
/* Global Styles */
/* ==================== */
:root {
  /* Font Sizes */
  --fs-24: 1.5rem; /* 24px */
  --fs-20: 1.25rem; /* 20px */
  --fs-18: 1.125rem; /* 18px */
  --fs-16: 1rem; /* 16px (base size) */
  --fs-14: 0.875rem; /* 14px */
  --fs-12: 0.75rem; /* 12px */
  --primary-color: hsl(0, 0%, 0%);
  --secondary-color: hsl(220, 90%, 50%);
  --background-color: hsl(220, 15%, 10%);
  --text-color: hsl(0, 0%, 100%);
  --text-light: hsl(0, 0%, 70%);
  --highlight-color: hsl(60, 100%, 95%);
  --cv-bg: hsl(0, 0%, 10%);
  --cv-text: hsl(0, 0%, 95%);
  --cv-hover: hsl(220, 90%, 50%);
  --footer-background: hsl(220, 90%, 50%);
  /* Component-Specific Variables */
:root {
--nav-height: 4rem;
--content-max-width: 1440px;
--transition-base: 250ms ease-in-out;
}

  /* Font Weights */
  --fw-bold: 700;
  --fw-regular: 400;

  /* ==================== */
/* Light Mode Styles */
/* ==================== */
[data-theme="light"] {
--primary-color: hsl(220, 90%, 50%); /* Keep contrast */
--secondary-color: hsl(220, 15%, 20%);
--background-color: hsl(0, 0%, 98%); /* Light background */
--text-color: hsl(0, 0%, 10%); /* Dark text */
--text-light: hsl(0, 0%, 40%); /* Slightly lighter text */
--highlight-color: hsl(220, 90%, 60%); /* Soft accent */
--cv-bg: hsl(0, 0%, 90%); /* Light background */
--cv-text: hsl(0, 0%, 15%); /* Darker text */
--cv-hover: hsl(220, 90%, 40%);
--footer-background: hsl(0, 0%, 92%);
}

  /* ==================== */
/* Dark Mode (Default) */
/* ==================== */
[data-theme="dark"] {
--primary-color: hsl(0, 0%, 0%);
--secondary-color: hsl(220, 90%, 50%);
--background-color: hsl(220, 15%, 10%);
--text-color: hsl(0, 0%, 100%);
--text-light: hsl(0, 0%, 70%);
--highlight-color: hsl(60, 100%, 95%);
--cv-bg: hsl(0, 0%, 10%);
--cv-text: hsl(0, 0%, 95%);
--cv-hover: hsl(220, 90%, 50%);
--footer-background: hsl(220, 90%, 50%);
}

  /* Spacing */
  --spacing-unit: 8px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto';
  hyphens: none;
}

html {
  transition: background-color 0.3s ease, color 0.3s ease;
    overscroll-behavior-y: none; /* Prevents scroll chaining on the vertical axis */
   display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-x: hidden;
}

h1 {
  font-family: 'Playfair Display';
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

body {
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.8;
  user-select: none; /* prevent text selection */
    /* hide the real cursor */
    min-height: 100vh;
}
a {
  font-family: 'Playfair Display';
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  cursor: pointer;
}

a:hover {
  color:hsl(220, 90%, 50%);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 4) 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
/* Sticky Note */

.sticky-note {
  width: 250px;
  background: hsl(60, 96%, 80%); /* Yellow sticky note color */
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  transform: rotate(-2deg); /* Slight tilt for a natural look */
  cursor: grab;
}

.sticky-note::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-note h6 {
  margin: 0;
  font-size: 20px;
}

.sticky-note p {
  margin: 10px 0 0;
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: transparent;
  color: hsl(220, 100%, 95%);
  border: 1px solid hsl(220, 100%, 95%);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0.5rem;
}

.btn:hover {
  background-color: hsl(220, 100%, 95%);
color: hsl(220, 10%, 10%);
}

/* Custom Cursor  */
#cursor-custom {
  position: absolute;
  top: -0.1px;  /* Just to keep it off-canvas initially */
  left: -0.1px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none; /* so it doesn’t block clicks */
  
  /* 
    Using a radial gradient or box-shadow 
    to simulate a glow. mix-blend-mode can 
    produce interesting "illumination" effects.
  */
  background: radial-gradient(
    circle,
    var(--highlight-color) 0%,
    transparent 70%
  );
  
  /* 
    This blend mode ensures it interacts 
    visually with the text behind it 
  */
  mix-blend-mode: screen;
  z-index: 1; /* text is by default above if not given a higher z-index */
  transition: transform 0.05s ease-out;
}





/* ==================== */
/* Header (Global) */
/* ==================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  color: hsl(0, 0%, 100%);
  margin-top: 2rem;
}

header .logo h1 {
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  color: var(--secondary-color);
}




/***************************************
* Overlay Menu
***************************************/


/* Menu toggle button (usually in header) */
.menu-toggle-btn {
background: none;
border: none;
font-size: var(--fs-16);
color: hsl(0, 0%, 100%);
cursor: pointer;
transition: color 0.3s ease;
margin-left: 0.5rem;
font-family: 'Playfair Display';
}

.menu-toggle-btn:hover {
color: hsl(220, 90%, 50%);
}

/* Overlay container: hidden off-screen by default */
.overlay-menu [aria-hidden="true"] {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw; 
height: 100vh;
background-color: black;
transition: transform 0.3s ease;
z-index: 9999; /* ensure overlay is on top */
overflow: hidden;/* just added */
flex-direction: column;
justify-content: center;
align-items: center;
}

/* When we add a class like .open, we slide it in */
.overlay-menu.open [aria-hidden="false"] {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

}

/* Close button in the overlay */
.close-menu-btn {
background: none;
border: none;
font-size: var(--fs-20);
color: hsl(0, 0%, 100%);
position: absolute;
top: calc(var(--spacing-unit) * 2);
right: calc(var(--spacing-unit) * 2);
cursor: pointer;
}

/* Overlay nav list */
.overlay-nav {
list-style: none;
text-align: center;
display: flex;
flex-direction: column;
gap: calc(var(--spacing-unit) * 3);
}

.overlay-nav li a {
font-size: var(--fs-20);
color: hsl(0, 0%, 100%);
font-weight: var(--fw-bold);
text-transform: uppercase; /* or your preferred style */
transition: color 0.3s ease;
}

.overlay-nav li a:hover {
color: var(--secondary-color);
}

/* ==================== */
/* Home Page (index.html) */
/* ==================== */
#hero {
  text-align: center;
  padding: calc(var(--spacing-unit) * 8) 0;
  color: hsl(0, 0%, 100%);
}

#hero h1 {
  font-size: 5rem;
  font-weight: var(--fw-bold);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

#hero p {
  font-size: var(--fs-18);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

#projects {
  background-color: var(--background-color);
}

#projects h2 {
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.project-card {
  background-color: hsl(0, 0%, 100%);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* CV Section Container */
.cv-section {
background-color: var(--cv-bg);
color: var(--cv-text);
padding: 2rem 0;
}

/* Personal info, summary, etc. */
.cv-personal, .cv-summary {
margin: 1rem auto;
line-height: 1.8;
font-size: var(--fs-16);
}

.cv-summary{
margin-bottom: 1rem;
}

.cv-personal p, .cv-summary p {
margin-bottom: 0.5rem;
line-height: 1.8
}

/* Summaries are always visible unless we decide otherwise in JS */
.summary-text {
margin-top: 0.5rem;
margin-bottom: 1rem; /* Add spacing between paragraphs */
text-align-last: left;
hyphens: none; 
}

/* Expanded content text */
#key-focus {
text-align: justify ; /* Justify the text */
line-height: 1.8; /* Adjust line height for better readability */
margin-bottom: 3rem; /* Add space below the section */
font-size: 1rem; /* Adjust font size as needed */
color: hsl(0, 0%, 100%); /* Text color for readability on a dark background */
max-width: 800px; /* Limit the width of the text for better readability */
}

#key-focus p {
margin-bottom: 1rem; /* Add spacing between paragraphs */
text-align-last: left;
hyphens: none; 
}


.cv-personal a {
color: var(--cv-text);
text-decoration: underline;
}

.cv-section h2 {
text-align: center;
font-size: var(--fs-20);
margin-bottom: 1.5rem;
}

/* Each CV row (experience item) */
.cv-row {
display: grid;
grid-template-columns: 1fr 2fr 1fr; 
align-items: center;
padding: 1rem;
border-bottom: 1px solid hsl(0, 0%, 20%);
transition: background-color 0.3s ease;
transition: grid-template-columns 0.5s ease; /* animate the columns */
position: relative;
}

/* On hover, highlight in red */
.cv-row:hover {
background-color: var(--cv-hover);
}

/* Adjust the text color on hover if needed (white on red) */
.cv-row:hover {
color: hsl(0, 0%, 100%);
}

/* Make year column typically smaller text, but you can adjust */
.cv-year {
font-size: var(--fs-16);
font-weight: 700;
}

/* Title + Role Info */
.cv-title h3 {
font-size: var(--fs-20);
margin-bottom: 0.25rem;
}

/* When expanded, collapse the first two columns to 0 width,
 letting the third column fill the entire row. */
 .cv-row.expanded {
  grid-template-columns: 0fr 0fr 1fr;
}

/* Hide the year/title content when expanded */
.cv-row.expanded .cv-year,
.cv-row.expanded .cv-title {
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.cv-summary-text{
text-align: justify; 
hyphens: none;
padding: 20px; 
line-height: 1.8; 
/* word-wrap: break-word; */
}


.cv-role {
font-size: var(--fs-16);
text-align: right; /* align to the right column */
line-height: 1.7
}

/* The 'role' column is always visible, but we’ll handle the text inside */
.cv-role {
transition: all 0.5s ease;
}

/* Initially hide the full text container */
.expandable-content {
display: none;
margin-top: 0.5rem;
}

.read-more-btn {
margin-top: 0.5rem;
background-color: transparent; /* match your theme or add a highlight color */
color: hsl(220, 100%, 95%);    /* example for a dark background site */
border: 1px solid hsl(220, 100%, 95%);
padding: 0.5rem 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}

.read-more-btn:hover {
background-color: hsl(220, 100%, 95%);
color: hsl(220, 10%, 10%);
}

h2.cvh2{
font-family: 'Playfair Display';
font-size: 3rem; 
}
/* CTA section styling */
section#cta {
padding: 1rem;
}

.CTAH2{
padding: 0.5rem;
}

.pcta{
padding: 0.5rem;
margin-bottom: 0.5rem;
}


/* ==================== */
/* About Page (about.html) */
/* ==================== */
#about-hero {
  text-align: center;
  padding: calc(var(--spacing-unit) * 6) 0;
  color: white;
}

#about-hero h1 {
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

#about-hero p {
  font-size: var(--fs-18);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

#values ul {
  list-style: none;
}

#values ul li {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.certificate {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  text-align: center;
  background: #f9f9f9;
}

.certificate img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ccc;
}

.certificate p {
  margin: 10px 0;
}

.certificate a {
  color: #0073e6;
  text-decoration: none;
}

.certificate a:hover {
  text-decoration: underline;
}

.skills-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.skill {
  background: #444;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}

.skill:hover {
  background: hsl(220, 90%, 50%);
  transform: scale(1.1);
}

.sub-skill {
  background: #555;
}


 /* HERO SECTION LAYOUT */
 .hero-section {
  display: flex;          /* place text + carousel side by side */
  align-items: flex-start; /* top-align them */
  gap: 2rem;              /* space between text and carousel */
  max-width: 1200px;      /* container limit */
  margin: 0 auto;         /* center horizontally */
  padding: 2rem 1rem;
}

/* TEXT COLUMN */
.about-content {
  flex: 1;                /* let text column grow if needed */
  min-width: 300px;       /* ensures it won't shrink below something */
}
.about-content h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.about-content p {
  line-height: 1.6;
}

/* CAROUSEL COLUMN */
.carousel-container {
  flex: 1;                /* also can grow/shrink */
  position: relative;
  overflow: hidden;       /* so slides won’t overflow */
  max-width: 600px;       /* optional limit if you want */
}

/* The track for slides */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%; /* each slide is full container width */
}

/* Each slide: ensure the container can adapt to content height */
.carousel-slide {
  min-width: 100%;        /* occupy full container width */
  display: flex;          /* center items if needed */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-image, 
.carousel-video {
  width: 100%;              /* let them fill the slide width */
  height: auto;             /* auto height => container adapts */
  object-fit: cover;        /* or “contain” if you prefer letterboxing */
  display: block;
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 4px;
}
.prev-btn {
  left: 0.5rem;
}
.next-btn {
  right: 0.5rem;
}




/* Books Section Styles */
.books-section {
padding: 2rem 1rem;
color: #fff;         /* text color */
}

.books-section h2 {
margin-bottom: 0.5rem;
font-size: 1.5rem;
}

.books-section p {
margin-bottom: 1.5rem;
font-size: 1rem;
line-height: 1.4;
}

/* Goodreads container override */
.goodreads-grid-container {
/* If you want the covers to scroll horizontally: */
overflow-x: auto;  /* horizontally scrollable if it overflows */
white-space: nowrap; 
padding: 1rem 0;
}

/* Remove the float from .gr_grid_book_container and display as inline-block */
.gr_grid_book_container {
float: none !important; /* override the default float from Goodreads */
display: inline-block;   /* or flex items if you prefer */
margin-right: 8px;       /* small gap between covers */
width: auto !important;  /* override the 39px fixed width */
height: auto !important; /* override the 60px fixed height */
overflow: hidden;
}

/* The book covers can be uniform in height, e.g. 75px: */
.gr_grid_book_container img {
max-height: 75px;
width: auto;
display: block;
}

.gr_grid_branding {
color: #aaa !important; 
float: none !important; /* remove float if you want it below the covers */
display: block;
margin-top: 1rem;
text-align: right;
}

/* Certificates Section */
#certificates {
padding: 2rem 1rem;
color: #fff;
}

/* Section heading and intro text */
#certificates h2 {
margin-bottom: 0.5rem;
font-size: 1.5rem;
}
#certificates .Cert-Intro {
margin-bottom: 1.5rem;
font-size: 1rem;
line-height: 1.4;
}

/* The flex container for all certificates */
.certificates-container {
display: flex;
flex-wrap: wrap; /* wrap onto multiple lines if needed */
gap: 1rem;       /* space between items */
}

/* Each individual certificate card */
.certificate {
background-color: #2a2a2a; /* a slightly lighter or darker background */
padding: 1rem;
border-radius: 6px; 
width: 200px; /* fixed width, or let it auto if you prefer */
text-align: center;
flex: 1 1 auto; /* or remove if you want a consistent width for all */
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* The certificate image */
.certificate img {
max-width: 100%;
height: auto;
display: block; 
margin: 0 auto 0.5rem auto; 
border-radius: 4px;
}

/* The link or certificate name */
.certificate p {
margin: 0;
font-size: 0.9rem;
}

.certificate p a {
color: hsl(0, 0%, 100%); /* highlight link color, for example */
text-decoration: none;
}

.certificate p a:hover {
text-decoration: underline;
color: hsl(220, 90%, 50%);
}

.certificate:hover {
transform: scale(1.02);
transition: transform 0.2s ease;
}



/* Basic container for the text + skill set */
#skills {
padding: 2rem 1rem;
color: #fff; 
background: #1f1f1f; /* or your site’s background */
}

#skills p {
margin-bottom: 1.5rem;
line-height: 1.4;
}

/* The container that holds all skill chips */
.skills-container {
display: flex;
flex-wrap: wrap; /* allows wrapping onto multiple lines */
gap: 0.75rem;    /* spacing between skill chips */
}

/* Style each skill as a “chip” */
.skill-details {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
background: #222;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
display: none;
}

.skill-details h2 {
margin-top: 0;
}

.skill-details button {
background: #0073e6;
border: none;
padding: 10px 20px;
color: white;
cursor: pointer;
margin-top: 20px;
border-radius: 5px;
}

.skill-details button:hover {
background: hsl(220, 90%, 50%);
}

.h2-skills {
margin-left: 10px;
display: flex;
align-content: center;
align-items: center;
justify-content: center;
flex-wrap: wrap;
flex-direction: column;
}

/* The sub-skill can have a subtle difference if you like */
.skill.sub-skill {
opacity: 0.9; 
}

/* The details modal box */
.skill-details {
display: none; /* hidden by default, your JS shows it on click */
background: #2a2a2a;
padding: 1rem;
border-radius: 6px;
margin-top: 2rem; /* or position absolute if you want an actual modal */
color: #fff;
box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.skill-details h2 {
margin-top: 0; 
margin-bottom: 0.5rem;
}
.skill-details p {
margin: 0.5rem 0;
}
.skill-details button {
background: #555;
color: #fff;
border: none;
padding: 0.5rem 0.75rem;
border-radius: 4px;
cursor: pointer;
}
.skill-details button:hover {
background: #666;
}


.skills-container {
display: flex;        /* or flex-wrap, or just inline-blocks */
flex-wrap: wrap;      /* so they go to new lines if needed */
gap: 1rem;            /* spacing between buttons */
justify-content: center;
padding: 1rem;
perspective: 800px;   /* container perspective for child tilts */
}

/* The skill button base style */
.skill{
background: #333;
color: #fff;
padding: 0.6rem 1.2rem;
border: none;
border-radius: 6px;
font-size: 1rem;
cursor: pointer;
display: inline-block;
font-weight: 600;
position: relative;
transition: 
  transform 0.2s ease,
  box-shadow 0.2s ease;
/* We'll apply 3D rotation with JS, so we keep transform style here. */
transform-style: preserve-3d;
}

/* On hover, add a bright “outline” glow or box-shadow */
.skill:hover {
box-shadow: 
  0 0 2px 1px hsl(220, 90%, 50%),
  0 0 3px 1px hsl(220, 90%, 50%) inset;
}

/* Optional: slightly lighten on hover */
.skill:hover {
background: hsl(0, 0%, 40%);
}


/* ==================== */
/* Contact Page (contact.html) */
/* ==================== */

.contact-page{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 7rem;
    margin-top: 7rem;
}

#contact-hero {
  text-align: center;
  color: hsl(0, 0%, 95%);
  display: flex;
  flex-direction: row; /* Default for larger screens */
  align-items: center;
  gap: 4rem;
  margin-bottom: 15rem;
}

#contact-hero h1 {
  font-size: 4rem;
}

#contact-form-section {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--cv-bg);
  margin: 1rem;
  padding: 0.5rem;

}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

#contactForm .form-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit));
}



#contactForm input,
#contactForm textarea {
  padding: calc(var(--spacing-unit));
  
}

#contactForm button {
  align-self: flex-start;
}

section#contact-info {
  display: none;
  
}

.contact-intro{
  padding: 1rem;
}

li{
list-style: none;
}


/* Initial styles for hidden elements */
#contact-info {
opacity: 0; /* Hidden by default */
height: 0;
overflow: hidden;
transition: opacity 0.3s ease, height 0.3s ease;
}

.sticky-note:hover .hidden-info {
display: none; 
}

/* Hover effect for the sticky note */
.sticky-note:hover {
background-color: #ffe066; /* Slightly darker yellow on hover */
}

.socials-card{
padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 20px auto;
  margin-bottom: 10rem;
  margin-top: 10rem;
}

.submit-btn {
background: none; /* Removes background */
border: none; /* Removes border */
color: hsl(0, 0%, 0%); /* Text color */
font-size: 1.5rem;
cursor: pointer; /* Makes it clear the button is clickable */
transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth hover effects */
outline: none; /* Removes focus outline */
position: relative; /* Ensures hover effects are relative to the text */
text-decoration: none; /* Removes underline */
font-family: 'Playfair Display';
color:hsl(220, 90%, 50%);
}

.submit-btn:hover {
transform: translateY(-3px); /* Adds a floating effect */
opacity: 0.8; /* Slight fade on hover */
}

.sticky-note:hover ,
.sticky-note:hover #contact-info {
opacity: 1; /* Reveal hidden elements */
height: auto; /* Adjust height to fit content */
overflow: visible;
}

.contact-page:hover #contact-info {
  
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 20px auto;
}

.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.contact-me{
font-family:'Playfair Display';
margin-bottom: 1rem;
font-size: 3rem;
}

body.modal-open {
  overflow: hidden;
}

.modal-content-contact{
  position: relative;
  background: hsl(0, 0%, 100%);
  color: hsl(0, 0%, 10%);
  padding: 2rem;
  max-width: 600px;
  max-height: 80%; /* Limit modal height */
  margin: 2rem auto;
  border: 1px solid hsl(0, 0%, 2%);
  overflow-y: auto; /* Make modal content scrollable */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling */
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

.checkbox-group {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

fieldset {
border: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

legend {
margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid hsl(0, 0%, 100%);
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  margin-bottom: 1rem;
  padding: 0.5rem 0.5rem;
}

input[type="text"],
input[type="email"],
select{
border-bottom: 1px solid hsl(0, 0%, 0%);
}

textarea{
background-color: hsl(0, 0%, 86%);
}

textarea ,::placeholder{
color: hsl(0, 0%, 0%);
font-family: 'Playfair Display';
}

body.modal-open {
  overflow: hidden;
}



@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}



/* ==================== */
/* Footer (Global) */
/* ==================== */
footer {
  background-color:hsl(220, 90%, 50%);
  text-align: center;
  padding: calc(var(--spacing-unit) * 3) 0;
  color: white;
  position: relative;

}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit));
  z-index: 1;
}

footer ul li a {
  color: white;
}

footer ul li a:hover {
  color: var(--secondary-color);
}

/* Bubbles styling */

/* The container that holds the "bubbles" */
.bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  background-color: hsl(220, 90%, 50%);
  filter: url("#blob"); /* Apply the goo effect from the SVG filter */
  z-index: -1;
}

/* Each individual bubble */
.bubble {
  position: absolute;
  left: var(--position, 50%);
  background-color: hsl(220, 90%, 50%);
  border-radius: 50%;
  transform: translate(-50%, 100%);
  animation:
    bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
    bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
}

/* Keyframes: bubble size & move up */
@keyframes bubble-size {
  0%, 75% {
    width: var(--size, 4rem);
    height: var(--size, 4rem);
  }
  100% {
    width: 0rem;
    height: 0rem;
  }
}
@keyframes bubble-move {
  0% {
    bottom: 0rem; /* start below the container */
  }
  100% {
    bottom: var(--distance, 10rem); /* end distance */
  }
}


/* ==================== */
/* Media Queries */
/* ==================== */
@media (max-width: 768px) {
  :root {
    --fs-24: 1.25rem; /* 20px */
    --fs-20: 1.125rem; /* 18px */
    --fs-18: 1rem; /* 16px */
    --fs-16: 0.875rem; /* 14px */
    --fs-14: 0.75rem; /* 12px */
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .overlay-nav li a {
    font-size: var(--fs-16);
  }
  .close-menu-btn {
    font-size: var(--fs-16);
  }
}

/* Sticky note media Query */

/* Small tablets and large phones in portrait mode (e.g., iPhone 12, iPad Mini) */
@media (max-width: 768px) {
.sticky-note {
  width: 200px;
  font-size: 14px;
  padding: 15px;
  transform: rotate(-1deg); /* Slightly adjust tilt for smaller screens */
}
}

/* Small phones (e.g., iPhone SE, iPhone 8) */
@media (max-width: 576px) {
.sticky-note {
  width: 180px;
  font-size: 12px;
  padding: 10px;
  transform: rotate(0); /* Remove tilt for very small screens */
}
}

/* Large tablets and smaller laptops (e.g., iPad Pro, MacBook Air) */
@media (min-width: 769px) and (max-width: 1024px) {
.sticky-note {
  width: 220px;
  font-size: 15px;
  padding: 18px;
}
}

/* High-resolution large screens (e.g., 4K monitors) */
@media (min-width: 1200px) {
.sticky-note {
  width: 300px;
  font-size: 18px;
  padding: 25px;
}
}


@media (max-width: 768px) {
.cv-row {
  grid-template-columns: 1fr; 
}
.cv-row.expanded {
  grid-template-columns: 1fr; /* No difference on expand at mobile, or design a new approach */
}
}

/* Responsive adjustments bubbles */
@media screen and (max-width: 767px) {
.content .container {
  grid-template-columns: repeat(2, 1fr);
}
.footer__title {
  font-size: 1.5rem;
}
}
@media screen and (max-width: 567px) {
.content .container {
  grid-template-columns: 1fr;
  row-gap: 3.5rem;
}
}

/* Media query for smaller screens for contact hero */
@media (max-width: 768px) {
#contact-hero {
    flex-direction: column; /* Switch to column on smaller screens */
    margin-bottom: 1rem;
    gap: 2rem;
    padding-top: 4rem;
    /* min-height: calc(100vh - 50px); Ensures content fills the viewable height minus footer height */
}
}

@media (max-width: 768px) {
.contact-footer {
  position: sticky; 
  bottom: 0; left: 0; right: 0;
}
}


@media (max-width: 768px) {
.contact-page {
  margin-top: 0px;
}
}


/* about hero  */
/* MEDIA QUERY for mobile: stack columns */
@media (max-width: 768px) {
.hero-section {
  flex-direction: column; /* stack text + carousel vertically */
}
.carousel-container {
  max-width: 100%; /* fill width on mobile */
}
}


/* Media Query for Mobile Screens */
@media (max-width: 768px) { 
h1#animated-heading {
  font-size: 2rem; /* Reduce size for mobile */
}
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  html, body {
      overflow-x: hidden;
  }
}

/* ==================== */
/* Projects Page */
/* ==================== */
#website-development,
#seo-experience,
#advertising-email-marketing,
#sales-experience {
margin-bottom: calc(var(--spacing-unit) * 6);
}

.Projects-intro {
display: flex
;
align-items: center;
flex-direction: column;
align-content: center;
justify-content: center;
padding: 1rem;
margin: 0.5rem;
}


/* Image Modal */
.image-modal {
display: none;
position: fixed;
z-index: 1000;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
}

.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 1200px;
}

.close-modal {
position: absolute;
top: 15px;
right: 35px;
color: hsl(0, 0%, 0%);
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
color: #bbb;
text-decoration: none;
}

.enlarge-btn {
position: absolute;
bottom: 10px;
right: 10px;
padding: 8px 16px;
background: rgba(0,0,0,0.7);
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s ease;
}

.enlarge-btn:hover {
background: rgba(0,0,0,0.9);
}

/* (Optional) Caption under the image */
#imgCaption {
text-align: center;
color: #fff;
margin-top: 0.5rem;
font-size: 1rem;
}

/* Container for all flip-cards */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}

/* Each flip-card */
.flip-card {
width: 100%;
perspective: 1000px; /* needed for 3D effect */
}
/* Inner wrapper that we rotate on hover */
.flip-card-inner {
position: relative;
width: 100%;
height: 280px; /* fixed card height or auto if you prefer */
transition: transform 0.6s;
transform-style: preserve-3d;
box-shadow: 0 10px 20px hsl(0, 0%, 2%);
border-radius: 10px;
background: hsl(0, 0%, 20%);
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3)
}

/* front side */
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden; /* hides the backside when front is visible */
border-radius: 8px;
overflow: hidden;
}
.flip-card-front {
background: hsl(0, 0%, 20%); 
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
transform: rotateY(0deg);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flip-card-front img {
max-width: 90%;
max-height: 90%;
object-fit: contain;
}
/* back side */
.flip-card-back {
background: hsl(0, 0%, 20%);
transform: rotateY(180deg);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
text-align: center;

}
.flip-card-back h3 {
margin-bottom: 0.5rem;
}
.flip-card-back p {
margin-bottom: 0.75rem;
line-height: 1.3;
}

/* Entire back is clickable: set pointer events, etc. */
.flip-card-back a {
display: inline-block;
background: hsl(220, 90%, 50%);
color: hsl(0, 0%, 100%);
text-decoration: none;
padding: 0.5rem 0.75rem;
border-radius: 4px;
transition: background 0.2s ease;
}
.flip-card-back a:hover {
background: hsl(220, 90%, 50%);
}


.flip-card:hover .flip-card-front {
transform: rotateY(15deg) rotateX(15deg);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth Transition for Box Shadows */
.flip-card,
.flip-card-inner {
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}