/*GENERAL*/

@font-face {
    font-family: 'Gambarino';
    src: url('./fonts/Gambarino-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('./fonts/Gambarino-Regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('./fonts/Gambarino-Regular.woff') format('woff'); /* Modern Browsers */
    font-weight: normal;
    font-style: normal;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding and border in element dimensions */
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden; /* Hide horizontal overflow */
    width: 100%; /* Ensure the body takes the full width of the viewport */
    max-width: 100%; /* Prevent the body from exceeding the viewport width */
}


body {
  background-color: #FBF9F5; 
  font-family: 'Gambarino', serif;
}

html{
    -webkit-text-size-adjust: 100%; /* Disable text inflation on iOS Safari */
    text-size-adjust: 100%; /* Standard property for future compatibility */
    scroll-behavior: smooth;
    font-size: 20px; /* Base font size */
    
}

/* Make images and embedded content responsive */
img, iframe, video, canvas {
    max-width: 100%; /* Prevent these elements from exceeding the viewport width */
    height: auto; /* Maintain aspect ratio */
}


h1 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 0.5em; /* Adds space below the heading */
}

h2 {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 0.5rem;
    /* margin-top: 0.5rem; */ /* Adds space below the heading */
}

h3 {
    font-size: 1.125rem; /* 18px */
    color: #B69763;
    margin-top: 0.5rem;
    margin-bottom: 0.5em; /* Adds space below the heading */
}

.custom-text {
    font-size: 1.75rem;
    line-height: 1.2;
}

/* Hero Text Animation Styles */
.custom-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.custom-text .space {
    display: inline-block;
    width: 0.25em;
}

.custom-text .word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.01em; /* Very small margin to ensure proper spacing */
}

.line-wrapper {
    display: block;
    margin-bottom: -0.7em;
}


h1, h2, p, .custom-text {
    color: #4D3701;
    font-weight: 100;
}
/* TRANSITION*/
a, .btn{
    transition: all 300ms ease;
}

/* DESKTOP */
nav, nav-links{
    display: flex;
}

nav{
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    padding: 0px 14px;
    margin: 50px auto;
    max-width: 1200px;
}

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

.nav-links li{
    display: inline-block;
    margin-right: 20px; 
}

a {
    color: #42330F;
    text-decoration: none;
    text-decoration: white;
}

a:hover{
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo{
    font-size: 2rem;
    color:#B69763
}

.logo:hover{
 cursor: default;
}


/* HAMBURGER MENU */
#hamburger-nav{
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.hamburger-icon span{
    display: block;
    width: 100%;
    height: 2px;
    background-color:#42330F; 
    transition: all 0.3s ease-in-out;
    margin: 2.5px 0;
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FBF9F5;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color:#42330F; 
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-icon span:first-child{
    transform: none;
}

.hamburger-icon span:first-child{
    opacity: 1;
}

.hamburger-icon span:first-child{
    transform: none;
}

/* SECTIONS GENERAL*/
section{
    margin: 50px auto; /* Adjusts spacing between sections */
    padding: 0px 14px; /* Adds inner space inside each section */
    max-width: auto; /* Optional: Keeps content centered */

}

/*HERO SCETION*/
#work {
    margin-top: 200px;
    max-width: 1200px;
}

.showreel iframe {
    width: 100%;
    height: 400px;
    background: #ccc; /* Placeholder */
}

.showreel {
    margin-bottom: 0px;
    padding: 0px;
}

.about {
    background-color: #EDECE5; /* Light background color from the screenshot */
    padding: 60px 0; /* Keep vertical padding for inner spacing */
    margin: 0; /* Override the general section margin to zero */
    width: 100%; /* Ensure the section takes the full width */
}

.about-container {
    max-width: 1200px; /* Adjust based on your design; common for desktop */
    margin: 0 auto; /* Center the container */
    padding: 0 14px;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    flex-direction: column; /* Stack children vertically */
    gap: 40px; /* Gutter between elements (matches the 20px gutter) */
}

/* Heading section (right-aligned) */
.about-heading {
    flex: 1; /* Take up remaining space */
    text-align: right; /* Right-align the heading */
}

/* Section number above the heading */
.section-number, .item-label {
    display: block; /* Make it a block to appear above the heading */
    font-size: 1rem;
    color: #B19B6E; /* Match the color from the screenshot */
    margin-bottom: 8px;
}

/* Heading styles */
.about-heading h1 {
    font-size: 3rem; 
    color: #A69779; 
    line-height: 1.2;
    margin: 0;
}

/* Content section (left-aligned) */
.about-content {
    text-align: left; /* Left-align the content */
    max-width: calc((100% / 6) * 4 + (20px * 3)); /* Span 4 out of 6 columns, including 3 gutters */
}

/* Subheading (Process, Approach) */
.subheading {
    font-size: 1rem;
    color:#B19B6E; /* Match the color */
    margin-bottom: 8px;
}

.description {
    margin-bottom: 16px;
}


#socials_container {
    display: flex;
    justify-content: left;
    margin-top: 2.4rem;
    gap: 1.3rem;
    position: relative; /* Ensure container can contain absolutely positioned children */
}

/* ICONS */
.icon {
    cursor: pointer;
    height: 2rem;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1); /* Slightly enlarge icons on hover */
}

/* Wrapper for the email icon and tooltip */
.icon-container {
    position: relative; /* So we can position the tooltip relative to this container */
    display: inline-block;
  }
  
  /* Style for the tooltip text */
  .tooltip-text {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: -30px; /* Position below the icon */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background-color: #9A865D; /* tooltip background */
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap; /* Prevent text wrapping */
    z-index: 10; /* Ensure it appears above other elements */
  }
  
  /* Show the tooltip on hover */
  .icon-container:hover .tooltip-text {
    display: block; /* Show the tooltip when hovering over the container */
  }
  



/* General Styling for featured projects*/
.featured-projects {
    max-width: 1200px;
    margin: 60px auto 50px; /* Top: 60px, Left/Right: auto, Bottom: 50px */
    font-family: 'Gambarino', serif;
}

/* Header Section */
.section-header-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.work-heading h1 {
    font-size: 3rem; 
    color: #A69779; 
    line-height: 1.2;
    margin: 0;
    text-align: left; /* Ensure left alignment */
}


/* Button Styling */
.button_color_gold {
    background-color: #9A865D;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 2px;
    font-family: 'Gambarino', serif; /* Apply Gambarino */
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button_color_gold:hover {
    background-color: #6D5628;
}

/* Grid Container */
.cards_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 14px;
    margin: 50px 0;
}

/* Project Card Styling */
.project-card {
    position: relative; /* Position overlay and text absolutely within the card */
    overflow: hidden;
    border-radius: 4px;
}

.project-card img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    position: relative;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 60% opacity dark overlay */
    opacity: 0; /* Hidden by default */
}

.card-text {
    position: absolute;
    left: 10px;
    bottom: 20px; /* Position at the bottom with some padding */
    right: 20px; /* Align to the right with padding */
    color: white;
    text-align: right;
    opacity: 0; /* Hidden by default */
    padding: 8px;
}

.card-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.card-year {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 100;
    margin: 0;
    line-height: 1.2;
    color: #F9F7F1;
}

.card-label,
.card-year,
.card-title {
    transform: translateY(10px); /* Start 10px below for slide-up animation */
}


/* TOOLS SECTION */
.tools-section {
    margin: 0; /* Override the general section margin */
    padding: 50px 0; /* Less padding than the about section */
    background-color: #EDECE5; /* Full-width background, matching the about section */
    width: 100%;
}

.tools-section .about-container {
    text-align: center; /* Center the content */
}

.tool-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.tool-icon {
    width: 40px; /* Adjust based on your design */
    height: auto;
}


/* service section */
.about-service {
    margin: 60px auto 50px; /* Top: 60px, Left/Right: auto, Bottom: 50px */
}
section.about-service {
    padding: 0; /* Change this to your desired padding */
}

.service-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left; /* Left-align the content */
    max-width: calc((100% / 6) * 4 + (20px * 3)); /* Span 4 out of 6 columns, including 3 gutters */
    
}


/* Enhanced Service Section Styles */

.about-list-item {
    width: 100%;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(182, 151, 99, 0.5);
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease;
}

.about-list-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: transparent;
    cursor: pointer;
    padding: 25px 0;
    position: relative;
    transition: all 0.3s ease;
}

.item-header h1 {
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.item-label {
    display: inline-block;
    font-size: 1rem;
    color: #B19B6E;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.plus-icon {
    font-size: 1.5rem;
    color: #B69763;
    font-weight: 300;
    margin-left: auto;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 22px;
}

.item-description {
    overflow: hidden;
    padding: 0 15px 0 44px;
    background-color: transparent;
    will-change: height, opacity;
}

.item-description p {
    margin: 0;
    opacity: 1;
    line-height: 1.6;
    color: #4D3701;
}

/* Hover effects for better user feedback */
.item-header:hover h1 {
    color: #B69763;
}

.item-header:hover .plus-icon {
    transform: scale(1.1);
}



/* Notes section styling */
.notes {
    background-color: #EDECE5; 
    padding: 50px 0 60px 0;
    margin: 60px auto 50px; /* Top: 60px, Left/Right: auto, Bottom: 50px */
}


.notes-header-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 8px;
    max-width: 1200px;
}


.cards_3_array {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Spacing between cards */
}

/* Individual Note Containers */
.notes_container {
    flex: 1; /* Makes all cards equal width */
    max-width: calc((100% / 3) - (40px / 3)); /* 3 cards, accounting for 2 gutters */
    text-align: left;
    flex-direction: column;
    overflow: hidden; /* Important for containing scaled content */
    border-radius: 4px; /* Apply border radius to the container */
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
}

/* Note Card Image */
.note-card {
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 2:3 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.note-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-text {
    padding: 15px 20px 20px;
    flex-grow: 1; /* Allow text area to grow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 0 0 4px 4px;
}
/* Remove any margin between image and text container */

.note-card, .note-text {
    margin-bottom: -10px;
}
/* Note Title */
.notes_container h3 {
    font-size: 1rem;
    margin-top: 10px;
    color: #4D3701;
}

.notes_container h2 {
    font-size: 1.5rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* Background color classes */
.orange-bg {
    background-color: #E78E63;
}

.green-bg {
    background-color: #B4B275;
}

.blue-bg {
    background-color: #A9B7C0;
}

/* Initial state for fade-in animation */
.notes_container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover state for scaling */
.notes_container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.notes_container:hover .note-card img {
    transform: scale(1.05);
}

/* Image transition */
.note-card img {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

/* footer style */
.footer {
    padding: 0px 14px;
    margin: 100px auto 40px auto;
    text-align: center;
    color: #8C6E44;
    max-width: 1200px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* max-width: 80vw; */
    margin: 0;
    position: relative;
    /* flex-wrap: wrap; */
}

.footer-email {
    font-size: clamp(2rem, 12vw, 8rem);
    color: #B69763;
}

.back-to-top {
    font-size: 1rem;
    color: #8C6E44;
    position: fixed; /* Stays fixed in viewport */
    bottom: 20px; /* Distance from bottom */
    right: 20px; /* Distance from right */
    background-color: #FBF9F5; /* Background color */
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); */
}

.back-to-top {
    border: 1px solid #8C6E44;
}

.back-to-top:hover {
    background-color: #8C6E44;
    color: white;
    text-decoration: none;
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(182, 151, 99, 0.5); ;
    margin: 20px 0;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 40px; /* Adjust the gap between columns */
    max-width: 40vw;
    margin: 0;
    text-align: left;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-column {
    flex: 1; /* Each column takes equal space */
    min-width: 100px; /* Minimum width for each column */
    max-width: 300px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 5px;
}

.footer-column a {
    text-decoration: none;
    color: #42330F;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
}

