
/* Main CSS file for Yuliia Alieksieieva's Portfolio Website

  Description:
  This file controls the layout, colors, fonts, buttons, navigation bar, 
  gallery carousel, lightbox, and overall appearance of the portfolio site.
  Each section is commented for easy understanding.

  Author: Yuliia Alieksieieva
  Date: April 2025 
*/

/* == Font Setup: Adds custom fonts for the website == */
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* === Global Styles === */
/* Sets padding and margin for main content area */
main {
  scroll-margin-top: 90px;
  padding: 0;
  margin: 0;
}

/* Sets a fixed size for the whole website and hides horizontal scroll */
html,
body {
 
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Removes default margin/padding from nav, header, and footer */
nav, header, footer {
  margin: 0;
  padding: 0;
}

header,
footer {
  margin: 0;
  padding: 0;
}

/* Base body settings: background, font, and box sizing */
body {
  background-color: #efeeea;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  padding: 0 20px;
  margin: 0;

  box-sizing: border-box;
}

/* Headings styling for titles */
h1 {
  font-size: 60px;
  font-weight: bold;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Sets text and list font size and line spacing */
p,
li {
  font-size: 16px;
  line-height: 1.6;
}

/* === Navigation Bar Styling === */
.navbar {
  background-color: #fe7743;
  width: 100%;
  min-height: 80px;
  border-bottom: 1px solid transparent;
  
}
.nav-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  
}
.nav-container ul {
  list-style-type: none;
  display: flex;
  gap: 60px;
  margin: 0;
  padding: 0;
  
}

.nav-container a {
  font-size: 18px;
  padding: 10px 20px;
  text-decoration: none; /* This removes the underline */
  color: #e6e6e2; 
  border-radius: 6px; /* Adds rounded corners for hover background */
  font-weight: bold;
  transition: background-color 0.3s ease; /* Smooth transition */
}


/* Navigation link hover effect */
.nav-container a:hover {
  background-color: #e6e6e2;
  color: #fe7743;
}

/* Special hover effect for 'Contact' button in navbar */
.nav-container .contact-link:hover {
  background-color: #e6e6e2;
  color: #fe7743;
  border-radius: 6px;
}


/* === Hero Section (Homepage Top Banner) === */
#home {
  padding-top: 60px;
  padding: 0px 20px;
  background: url(images/background.png) no-repeat center center/cover;
  min-height: 100vh; /* full screen height */
  display: flex;
  align-items: center;
}

/* Styling for text in hero section */
.top-text h2,
.top-text p,
.hero-text h1,
.hero-text p {
  padding-left: 20px;
  color: #e6e6e2;
  margin: 0;
}

.top-text h2 {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: 700; /* Poppins Bold */
  letter-spacing: 1px;
  padding-top: 300px;
}

.top-text p {
  padding-top: 0px;
  font-size: 1rem;
  font-weight: 400; /* Poppins Regular */
  letter-spacing: 0.5px;
  
}

.hero-text {
  padding-bottom: 30px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90%; /* Use most of hero height */
}

.hero-text h1 {

  padding-left: 20px;
  font-size: 2.5rem;
}

.hero-text p {
 
  padding-left: 20px;
  font-size: 1.2rem;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Contact button inabout sections */
.contact-btn {
  font-size: 18px;
  font-weight: bold;
}

/* === About Section Styling === */
.about-header {
  text-align: center;
  max-width: 800px;
  margin: 10px auto 10px auto; 
  padding-top: 0;
}

.about-header h2 {
  font-size: 2rem;
  color: #273f4f;
  margin-bottom: 10px;
}

/* Adds an orange underline below the About section title */
.about-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #fe7743;
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-header p {
  font-size: 1.1rem;
  color: #273f4f;
  line-height: 1.6;
  margin-top: 10px;
}

/* About section background and spacing */
#about {
  background-color: #e6e6e2;
  padding: 20px 0 70px 0;
}

.about-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Lays out photo and carousel side by side */
.about-section-grid {
  margin: 0 auto;
  padding: 0; 
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
  background-color: #e6e6e2;
  box-sizing: border-box;
}

/* === Photo & Contact Button Column === */
.photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Profile photo appearance */
.profile-pic {
  margin-top: 55px;
  margin-left: 10px;
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Contact button styling */
.contact-btn {
  background-color: #fe7743;
  color: #e6e6e2;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Contact button hover color */
.contact-btn:hover {
  background-color: #e8612b;
}


/* === Card Carousel (skills/education cards) === */
.card-carousel-wrapper {
  width: 700px;
  max-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px; 
}

/* Scrollable area for cards */
.card-carousel {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 70%;
  height: 100%;
}

/* Each card inside the carousel */
.about-card {
  flex: 0 0 100%;
  margin: 0 5%;
  scroll-snap-align: center;
  background: #273f4f;
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(63, 60, 60, 0.08);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.about-card h3 {
  color: #efeeea;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
}
.about-card ul {
  color: #efeeea;
  padding-left: 20px;
  margin: 0;
}
.about-card li {
  color: #efeeea;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* === Arrows for carousel navigation === */
.arrow {
  background-color: #fe7743;
  color: #e6e6e2;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.arrow.left {
  left: -50px;
}
.arrow.right {
  right: -50px; 
}
.arrow:hover {
  background-color: #e8612b;
}

/* Hide scrollbars in carousel */
.card-carousel::-webkit-scrollbar {
  display: none;
}
.card-carousel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* === Portfolio Section (Image Gallery) === */
#portfolio{
  background:#e6e6e2;
  color: #273f4f;
  padding: 15px 20px;     
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

/* Portfolio header title and underline */
.portfolio-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.portfolio-header h2 {
  font-size: 2rem;
  color: #273f4f;
  margin-bottom: 10px;
  position: relative;
}

/* Orange underline under Portfolio title */
.portfolio-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #fe7743;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.portfolio-header p {
  font-size: 1.1rem;
  color: #273f4f;
  line-height: 1.6;
  margin-top: 10px;
}

/* Gallery carousel layout */
.carousel-wrapper {
  max-width:1024px;
  margin-top: -30px;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
}

/* Gallery images carousel (row of images) */
.carousel {
  padding: 20px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: scroll;               
  scrollbar-width: none;            
  -ms-overflow-style: none;        
}
.carousel::-webkit-scrollbar { 
  display: none;
}

/* Each image in the gallery */
.carousel img {
  flex-shrink: 0;
  width: 105%;
  max-height: 500px;
  object-fit: contain;
  scroll-snap-align: center;
  cursor: pointer;
  border-radius: 12px;
}

/* Carousel arrows (left and right) */
.arrow {
  background-color: #fe7743;
  color: #e6e6e2;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0.9;
  z-index: 10;
}

.arrow:hover {
  opacity: 1;
}

.arrow.left {
  position: absolute;
  left: -4px;
}

.arrow.right {
  position: absolute;
  right: -9px;
}

/* === Lightbox for enlarged images === */
#lightbox {
  display: none;
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

/* Enlarged image style inside lightbox */
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* === Links Page Section === */
/* Style for header in links page */
.links-header h2 {
  margin-bottom: 0;
 
}

#links {
  max-width: 1024px;
  margin: 0 auto 40px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: #e6e6e2;
}

.page-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 auto;
  background-color:#e6e6e2;
}

/* Each resource (link) card styling */
.resource-card {
  margin-top: 0;
  background-color: #273f4f;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0px auto;
  text-align: center;
}

/* Headings for each resource card */
.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #e6e6e2;
}

/* Paragraph text in resource card */
.resource-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e6e6e2;
  text-align: center;
}

/* Image inside resource card */
.resource-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Button to visit external resource */
.resource-link-btn {
  padding: 12px 24px;
  background-color: #fe7743;
  color: #e6e6e2;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}
.resource-link-btn:hover {
  background-color: #e8612b;
}

/* === Section Background & Layout for links === */

#links {
  background: #e6e6e2; 
  padding: 20px 20px;

}

/* === Links Header Styling === */
.links-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 0 auto;
  padding-bottom: 0;
}

.links-header h2 {
  font-size: 2rem;
  margin-bottom: 0px;
  color: #273f4f;
  position: relative;
}

/* underline header effect */
.links-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #fe7743;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.links-header p {
  font-size: 1.1rem;
  color: #273f4f;
  line-height: 1.6;
  margin-top: 10px;
}

/* Extra spacing between cards */
.resource-card {
  background-color: #273f4f;
  margin-bottom: 40px;

}

/* === Footer Section Styling === */
footer {
  background-color: #fe7743;
  color: #e6e6e2;
  padding: 30px 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* Centers footer content */
.footer-container {
  max-width: 1024px;
  margin: 0 auto;
}

/* Footer navigation (horizontal) */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* Footer navigation link style */
.footer-nav a {
  color: #e6e6e2;
  text-decoration: none;
  font-weight: bold;
}

/* === Page wrapper ===
Main layout container for the contact form  */
.contact-page {
  max-width: 600px; /* Limit width on large screens */
  margin: 40px auto; /* Center it vertically and horizontally */
  background-color: #273f4f;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  max-height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-header {
  
  background: #e6e6e2;
  text-align: center;
  max-width: 1024px;
  margin: 0 auto 30px auto;
  padding:  8px;
  border-radius: 10px;

}

.contact-header h2 {

  font-size: 2rem;
  color: #273f4f;
  margin-bottom: 10px;
  position: relative;
}

.contact-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #fe7743;
  margin: 10px auto 0;
  border-radius: 2px;
}

.contact-header p {
  font-size: 1.1rem;
  color: #273f4f;
  line-height: 1.6;
  margin-top: 10px;
}
.contact-bg {
  background:#e6e6e2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}


/* === Form Labels === */
label {
  display: block; /* Each label on a new line */
  margin-top: 20px;
  font-weight: bold;
  font-size: 16px;
  color: #e6e6e2;
}

/* === Input Fields & Textarea === */
input,
textarea {
  font-size: 16px;
  width: 100%; /* Full width input boxes */
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #273f4f;
  color: #273f4f;
}

/* === Submit Button === */
.submit-btn {
  font-size: 18px;
  background-color: #fe7743;
  color: #e6e6e2;
  border: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 30px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #e8612b;
}

/* === Success Message Section === */
/* Hidden be default, shown after form is submited */
.thankyou-header {
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #e6e6e2;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.thankyou-header h2 {
  font-size: 2rem;
  color: #273f4f;
  margin-bottom: 10px;
  position: relative;
}

.thankyou-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #fe7743;
  margin: 10px auto 0;
  border-radius: 2px;
}

.thankyou-header p {
  font-size: 1.1rem;
  color:#273f4f;
  line-height: 1.6;
  margin-top: 10px;
}


/* === Home Button (Back to Main Page) === */
#returnButton {
  font-size: 18px;
  background-color: #fe7743;
  color: #e6e6e2;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
}

