@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/* CSS Document */
html {
	overflow-x: hidden;
	max-width: 100%;
}

body {
    font-family: "Red Hat Display", serif;
    background-color: #d9eff8;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
}

main {
    min-height: 650px;
    width: 100%;
    overflow-x: hidden;
}

h1 {
    font-size: 30px;
    font-weight: 800;
}

h3 {
    font-weight: 800;
}

p {
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/*==================
NAV
===================*/

/* Tightened Navigation Objects */
.nav {
    display: flex;
    width: 100%;
    height: 60px; /* Reduced height */
    margin-top: 0;
    margin-bottom: 20px;
    background-color: white;
    align-items: center; /* Center items vertically */
    padding: 0 15px;
    box-sizing: border-box;
}

.nav img {
    width: 180px;
    height: auto;
    margin: 0;
}

.nav a {
	align-self: right;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: 12px; /* Tight spacing between nav items */
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.link {
    display: inline-block;
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.navlink {
    margin: 0; /* Remove all margins */
    padding: 0 5px; /* Small horizontal padding */
    font-size: 20px;
    font-weight: 800;
    display: inline-block;
    height: 100%;
    line-height: 60px; /* Match the nav height */
}

/* Mobile styling */
@media (max-width: 768px) {
    .nav {
        height: auto;
        padding: 10px 0;
        flex-direction: column;
    }
    
    .nav img {
        margin-bottom: 8px;
    }
    
    .nav-links {
        justify-content: center;
        gap: 8px;
    }
    
    .navlink {
        font-size: 16px;
        line-height: normal;
        padding: 5px;
    }
}
/*==================
ABOUT
===================*/
.about-section {
    padding: 60px 0;
    width: 100%;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    width: 100%;
}

.about-text {
    width: 100%;
}

.about-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #222;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.bio {
    margin-bottom: 30px;
}

.bio p {
    color: #444;
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
}

.skills {
    margin-bottom: 30px;
}

.skills h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background-color: #0099cc;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: #0077aa;
    cursor: default;
}

/* Mobile about section */
@media (max-width: 768px) 
    .about-section {
        padding: 40px 0;
    }

/*==================
CONTACT US
===================*/

.contact {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact h1 {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-style: italic;
    font-family: Arial, sans-serif;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #5bb9e1;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #26a9e0;
}

/* Mobile contact form */
@media (max-width: 768px) {
    .contact {
        margin: 30px 15px;
        padding: 15px;
        width: calc(100% - 30px);
    }
}

/* Main content */
.portfolio-section {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    padding: 0 5%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 450px);
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
}

/* Mobile portfolio grid */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Card styles */
.card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d9eff8;
    margin: 0;
    padding: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    margin: 0;
    padding: 0;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    margin: 0;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.card:hover .card-description {
    max-height: 100px;
    opacity: 1;
}

/* Touch device support for card descriptions */
@media (hover: none) {
    .card-description {
        max-height: 100px;
        opacity: 1;
    }
    
    .card-overlay {
        opacity: 1;
    }
}

.card-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.card-link:hover {
    border-color: white;
}

/* Mobile card styling */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-overlay {
        padding: 1.5rem;
    }
}

/*Project Cards*/
/* Container for project introductions */
.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Project introduction section */
.project-intro {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Project card grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Individual project card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Project card image container */
.project-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

/* Main project container */
.projectdiv {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Portfolio section styling */
.portfolio-section {
  margin-bottom: 60px;
}

/* Section title styling */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Main project container */
.projectdiv {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Portfolio section styling */
.portfolio-section {
  margin-bottom: 60px;
}

/* Section title styling */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Project introduction text */
.pintro {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  padding: 0 15px;
  box-sizing: border-box;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Portfolio grid layout - adjusted for bigger images */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default: 2 columns */
  gap: 40px; /* Gap for desktop/tablet */
  margin-bottom: 40px;
}

/* Individual project card - increased height */
.pcard {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;  /* Increased from 300px */
  margin: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Project card image container */
.pcard-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d9eff8;
  margin: 0;
  padding: 0;
}

.pcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  margin: 0;
  padding: 0;
}

.pcard:hover .pcard-image img {
  transform: scale(1.05);
}

/* Project card overlay with gradient */
.pcard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;  /* Slightly increased padding */
  color: white;
  opacity: 0.2;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  margin: 0;
}

.pcard:hover .pcard-overlay {
  opacity: 1;
}

/* Project card title */
.pcard-title {
  font-size: 1.6rem;  /* Slightly larger title */
  margin-bottom: 0.7rem;
  font-weight: 600;
}

/* Project card description */
.pcard-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  font-size: 1rem;  /* Slightly larger text */
  line-height: 1.5;
}

.pcard:hover .pcard-description {
  max-height: 200px;  /* Increased to accommodate more text */
  opacity: 1;
}

/* Project end section */
.pend {
  display: inline-block; /* Allows setting padding/margin correctly */
    padding: 10px 20px; /* Vertical and horizontal padding */
    font-size: 1rem;    /* Adjust font size as needed (16px default) */
    font-weight: 600;   /* Slightly bolder text */
    line-height: 1.5;   /* Spacing between lines if text wraps */

    /* Appearance */
    background-color: #007bff; /* A standard blue background */
    color: white;             /* White text color */
    border: none;             /* Remove default border */
    border-radius: 5px;       /* Slightly rounded corners */
    text-align: center;       /* Center text inside */
    text-decoration: none;    /* Remove underline if it's an <a> tag */
    cursor: pointer;          /* Indicate it's clickable */

    /* Effects */
    transition: background-color 0.2s ease-in-out, /* Smooth transition for hover */
                box-shadow 0.2s ease-in-out,       /* Smooth transition for focus */
                transform 0.1s ease;             /* Smooth transition for active */
}

.pend:hover {
    background-color: #0056b3; /* Darken background on hover */
}

/* Support for touch devices */
@media (hover: none) {
  .pcard-overlay {
    opacity: 0.8;
  }
  
  .pcard-description {
    max-height: 200px;
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
  }
  
  .pcard {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .pcard {
    height: 320px;
  }
  
  .pcard-title {
    font-size: 1.4rem;
  }
  
  .pend {
    margin: 10px 15px 25px 15px;
  }
}

/* For smaller screens */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .pcard {
    height: 280px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .pintro {
    font-size: 1rem;
  }
}
/*==================
FOOTER
===================*/
.footer {
    display: flex;
    /* flex-direction: column; <-- Removed unless you plan other stacked elements */
    justify-content: flex-start; /* Align items to the start (left) */
    align-items: center; /* Vertically center items */
    padding: 25px 50px; /* Adjusted padding */
    width: 100%;
    /* height: 250px; <-- Avoid fixed height, let content determine it */
    min-height: 80px; /* Optional: Set a minimum height */
    background-color: black;
    box-sizing: border-box;
    margin: 0;
}

.footer {
    display: flex;
    flex-direction: column;    /* Stack children vertically */
    justify-content: space-between; /* Pushes first item (icons) to top, last item (credit) to bottom */
    align-items: center;       /* Center children horizontally */
    height: 300px;             /* *** Fixed height as requested *** */
    background-color: black;
    box-sizing: border-box;
    padding: 30px 50px;        /* Add padding (top/bottom controls space from edge) */
    width: 100%;
    margin: 0;
}

.footertxt {
    display: flex;            /* Keep icons side-by-side */
    align-items: center;
    gap: 25px;               /* Adjust space between icons */
    /* Icons will be centered horizontally due to align-items: center on .footer */
}

.footertxt img {
    display: block;
    width: 32px;
    height: 32px;
}

.footertxt a:hover img {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-credit {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;               /* Remove default margins */
    text-align: center;      /* Ensure text is centered */
    width: 100%;             /* Helps ensure centering is relative to full footer width */
    /* This element will be pushed to the bottom by justify-content: space-between */
}

/* Mobile Adjustments (Optional - layout might be okay) */
@media (max-width: 768px) {
    .footer {
        padding: 25px 20px;   /* Adjust padding for smaller screens */
        /* Height remains 300px unless overridden */
    }
    .footertxt {
        gap: 20px;           /* Maybe smaller gap */
    }
    .footer-credit {
        font-size: 0.85rem;  /* Slightly smaller text */
    }
}