/* Font Link */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
body{
    font-family: Roboto;
    margin: 0;
    height: 100vh;
    color: white;
    /* Gradient: Transparent Blue to Black */
    background: linear-gradient(to bottom, #01315f, #000000);
    
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Style the header with a grey background and some padding */
.header {
  overflow: hidden;
  background-color: #f1f1f1;
  padding: 20px 10px;
  border-bottom-left-radius: 20px ;
  border-bottom-right-radius: 20px ;
}

/* Style the header links */
.header a {
  float: left;
  color: black;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
  border-radius: 4px;
}

/* Style the logo link */
.header a.logo {
  font-size: 25px;
  font-weight: bold;
}

/* Change the background color on mouse-over */
.header a:hover {
  background-color: #ddd;
  color: black;
}

/* Style the active/current link*/
.header a.active {
  background-color: dodgerblue;
  color: white;
}

/* Float the link section to the right */
.header-right {
  float: right;
}

/* --- UPDATED RESPONSIVE NAV --- */
/* Add media queries for responsiveness - when the screen is 768px wide or less */
@media screen and (max-width: 768px) {
  .header {
      padding-bottom: 20px; /* Add room at bottom */
  }
  .header a {
    float: none;
    display: block;
    text-align: left;
    width: 100%;       /* Make links fill the width */
    box-sizing: border-box;
  }
  .header-right {
    float: none;
    margin-top: 10px; 
  }
}

.bodyBG{
    background-color: #f1f1f1;
    margin: 20px;
    border-radius: 20px;
    padding: 20px;
}

/* --- Glassmorphism Tech Stack --- */

.tech-stack-section {
    padding: 50px;
    text-align: center;
    color: white;
    margin-top: 50px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: white;
    display: table;       
    margin: 0 auto 40px;  
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 10px auto 0;
}

.tech-grid {
    display: grid;
    /* Responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-card {
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    border-radius: 15px;
    padding: 25px 15px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #aebfd3; /* Soft blue-grey */
    transition: color 0.3s ease;
}

.tech-card h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Hover Effects */
.tech-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-card:hover i {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}


/* --- FOOTER STYLES --- */
.site-footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding-top: 50px;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: dodgerblue; /* Matches Header Active Link */
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: dodgerblue;
    padding-left: 5px;
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: dodgerblue;
    transform: translateY(-3px);
}

.email-text {
    margin-top: 15px;
    font-weight: bold;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.8rem;
    color: #888;
}

/* Mobile Responsive */
@media screen and (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Photo Grid Home Page */
.masonry-grid {
  column-count: 3; /* Default: 3 columns */
  column-gap: 1rem;
  margin: 50px;
}

.item {
  break-inside: avoid; /* Prevents images from being sliced between columns */
  margin-bottom: 1rem;
}

.item img {
  width: 100%;
  border-radius: 8px;
  display: block; /* Removes tiny gap under images */
}

/* Responsive adjustments for Grid */
@media (max-width: 800px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-grid {
    column-count: 1;
  }
}