/* 
 *  Global Resets & Styling
 *  Defines reusable custom properties (variables) and smooth-scrolling baseline.
 */
:root {
  --main-color-light: #de9eb5; /* Light slightly dark pink */
  --main-color-dark: #8B0000; /* Dark red */
  --main-color-hover: #D2B48C; /* Light tan */
  --nav-bg: #FFFFFF; /* White */
  --nav-bg-hover: #8B0000; /* Dark red */
  --vintage-text-shadow-color: rgba(139, 0, 0, 0.4); /* Dark red with transparency for shadow */
  --nav-height: 60px; /* New variable for navigation bar height */
}

/* 
 *  Font face
 *  Loads a custom font
 */
@font-face {
  font-family: CUR;
  src: url('cur.ttf') format('truetype');
  font-weight:lighter;
}
@font-face {
  font-family: SUB;
  src: url('MAIN.otf') format('opentype');
  font-weight: normal;
}
@font-face {
  font-family: MAIN;
  src: url('birds.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: AMIGH;
  src: url('amigh.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: CIN;
  src: url('cinema sunday demo font.otf') format('opentype');
  font-weight: normal;
}
@font-face {
  font-family: bold;
  src: url('theboldfont.ttf') format('opentype');
  font-weight: normal;
}

/* 
 *  Apply custom font to the entire body of the website
 */
body {
  
  margin: 0;
  background-color: rgb(133, 155, 135);
  padding-top: var(--nav-height); /* Use the new variable for padding */
  overflow-x: hidden;
}

h1 {
  font-family: CIN, sans-serif; /* Use MAIN font */
  color: rgb(77, 103, 75);
  text-align: center;
  margin: 0 auto;
}

h3 {
  font-family: 'Times New Roman', Times, serif;
  color: #ffffff;
  text-align: right;
}

img {
  border-color: white;
  border-width: 10px;
  border-radius: 10px;
  border-style: double;
}

p {
  color: #ffffff;
  font-family: SUB;
  text-align: left;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight:100;
}

p:hover {
  transform:scale(1.1);
}

/*
 *  Navigation & Dropdown styles from the motion css
 */
ul {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0px;
  
}
/* 
 *  Nav bar styling
 */
nav {
  background-color: rgb(225, 181, 199);
  padding: 0px;
  margin-top: 0;
  border-radius: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  
}

/* 
 *  Styling for all main navigation links
 */
nav > ul > li > a {
 
  color: rgb(171, 34, 71); /* Default color for all links */
  text-decoration: wavy;
  display: block;
  text-shadow: 1px 1px 2px rgb(255, 255, 255);
  padding: 10px; 
}

/* 
 *  Hover effect for specific links ("About me!" and "Projects")
 */
.about a,
.projects > a {
  transition: color 0.4s ease; /* Add transition for smooth color change */
}

.about a:hover,
.projects > a:hover {
  color: rgb(255, 255, 255); /* Apply hover color */
  background-color: transparent; /* Ensure no background color on hover */
}

/* 
 *  Dropdown parent container
 */
.dropdown {
  position: relative;
}

/* 
 *  Dropdown menu content initially hidden
 */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: rgb(247, 198, 210);
  box-shadow: 0 8px 16px 0 rgba(255, 255, 255, 0.2);
  z-index: 1;
  border-radius: 10px;
   font-family: CIN;
}

/* 
 *  Dropdown link styling
 */
.dropdown-content a {
  color: rgb(231, 130, 160);
  /* Use padding for internal spacing */
  padding: 12px 16px;
  text-align: left;
  display: block; /* Ensure the link fills its container horizontally */
  /* Add margin to create space for the hover effect */
  margin: 5px 10px; /* Adjust margin as needed */
  text-shadow: none; /* Remove text shadow for dropdown links */
  transition: background-color 0.3s, padding 0.3s; /* Smooth transition */
  font-family: CIN;
}

/* 
 *  Dropdown link hover effect
 *  Control the size of the hover background with padding
 */
.dropdown-content a:hover {
  background-color: #943d57;
  color: white;
  border-radius: 10px;
  /* Reset padding on hover to keep the size consistent with the container */
  padding: 12px 16px;
}

/* 
 *  Show the dropdown menu on hover
 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 
 *  Styling for h4 elements
 */
h4 {
  color: white;
  transition: color 0.4s ease;
}
h4:hover{
color: rgb(186, 63, 113);
}

/*
 *  New CSS for positioning specific list items
 */
.about a,
.projects a {
  padding-top: 20px; /* Adjust this value as needed to push the links down */
  font-family: bold;
}

.email {
  display: flex;
  align-items: center; 
  font-family: AMIGH;
}
.email a {
  font-family: AMIGH, sans-serif;
  color: white;
  text-decoration: none;
  transition: color 0.4s ease;
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
}

.FGR{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10%;
  padding: 30px;
  justify-content: center;
  background-image: url(FGRBG.jpg);
  background-size: cover;
}
.FGR > div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.CL{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10%;
  padding: 20px;
  justify-content: center;
  background-image: url(CLB.jpg);
  background-size: cover;
}
.CL > div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.HCA{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10%;
  padding: 20px;
  justify-content: center;
  background-image: url(HCABG2.jpg);
  background-size: cover;
}
.HCA > div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.FGRT{
  background-image: url('FGRB.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 30px;
  border-radius: 10px;
  border: 5px solid rgb(93, 91, 120);
  border-style:double;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
}
.CLT{
  background-image: url('CLB.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 30px;
  border-radius: 10px;
}
.HCAT {
  background-image: url('HCAB.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 30px;
  border-radius: 10px; 
  border: 5px solid rgb(77, 103, 75);
  border-style:double;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
}

/* Make all sections relative for positioning */
section {
  position: relative;
}
/* --- Mobile Adjustments for New Sections --- */
@media (max-width: 768px) {

  /* Stack sections vertically */
  .FGR,
  .CL,
  .HCA {
    flex-direction: column;
    gap: 5%; /* Reduce gap for smaller screens */
    padding: 15px; /* Reduce padding */
    justify-content: center;
    align-items: center;
  }

  /* Adjust inner div alignment */
  .FGR > div,
  .CL > div,
  .HCA > div {
    align-items: center;
  }

  /* Scale cards and adjust spacing */
  .FGRT,
  .CLT,
  .HCAT {
    width: 90%; /* Make cards take most of the screen width */
    padding: 20px; /* Reduce padding */
    border-width: 3px; /* Thinner borders */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Reduce shadow */
    margin-bottom: 20px; /* Space between stacked cards */
  }

  /* Text scaling inside cards */
  .FGRT p,
  .CLT p,
  .HCAT p {
    font-size: 0.8rem; /* Slightly smaller text */
  }

  /* Adjust background image scaling */
  .FGR, .CL, .HCA, .FGRT, .CLT, .HCAT {
    background-size: cover;
    background-position: center;
  }

}
.dropdown-contacts{
  padding-top: 20px; /* Adjust this value as needed to push the links down */
  font-family: bold;
}
.back{
   padding-top: 20px; /* Adjust this value as needed to push the links down */
  font-family: bold;
}