/* =================================================================
    Global & Page Transition Styles
    ================================================================= */
html {
     scroll-behavior: smooth;
}
body {
     font-family: 'Inter', sans-serif;
     background-color: #000;
     color: #fff;
     margin: 0;
     opacity: 1; /* Set to 1 for initial load */
     transition: opacity 0.5s ease-in-out;
     position: relative;
     overflow-x: hidden;
}
.portfolio-page::before {
     content: '';
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     background-image: url('images/bg.jpg');
     background-size: cover;
     background-position: center center;
     background-attachment: fixed;
}
/* =================================================================
    Portfolio Pages: General Styles
    ================================================================= */
.page-header {
     padding: 1.5rem 3rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: fixed;
     top: 0;
     width: 100%;
     z-index: 20;
     transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
     box-sizing: border-box;
}
.page-header.scrolled {
     background-color: rgba(10, 10, 10, 0.7);
     backdrop-filter: blur(10px);
     padding: 1rem 3rem;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.header-logo img {
     height: 2rem;
     width: auto;
     transition: height 0.3s ease;
}
.page-header.scrolled .header-logo img {
     height: 1.75rem;
}
.main-nav {
     display: none;
}
@media (min-width: 768px) {
     .main-nav {
          display: flex;
          align-items: center;
          gap: 2rem;
     }
}
.nav-link {
     font-weight: 700;
     text-decoration: none;
     color: #ccc;
     letter-spacing: 0.05em;
     font-size: 0.875rem;
     transition: color 0.3s ease;
}
.nav-link:hover {
     color: white;
}
.hero-section {
     height: 100vh;
     display: flex;
     align-items: center;
     position: relative;
     overflow: hidden;
     background-color: #000;
     background-size: cover;
     background-position: center;
     justify-content: space-between;
     padding: 0 6rem;
}
.hero-section::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
}
.hero-section.gallery::before {
     background: linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 70%);
}
.hero-content,
.hero-about {
     position: relative;
     z-index: 2;
     color: white;
     width: 45%;
}
.hero-heading {
     font-size: 4rem;
     font-weight: 900;
     letter-spacing: -0.05em;
     line-height: 0.9;
}
.content-wrapper {
     padding: 5rem 1.5rem;
     position: relative;
     background-color: transparent;
     z-index: 5;
}
.content-container {
     max-width: 80rem;
     margin: auto;
     position: relative;
     z-index: 2;
}
.section-title {
     font-size: 2.25rem;
     font-weight: 900;
     margin-bottom: 3rem;
     text-align: center;
}
/* Scroll Animation */
.scroll-animate {
     opacity: 0;
     transform: translateY(40px);
     transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
     opacity: 1;
     transform: translateY(0);
}
/* Footer */
.main-footer {
     background-color: #000;
     padding: 3rem 1.5rem;
     color: #6b7280;
     position: relative;
     z-index: 5;
}
.footer-container {
     max-width: 80rem;
     margin: auto;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 1.5rem;
}
.footer-logo img {
     height: 1.75rem;
     filter: grayscale(1) brightness(2);
}
.social-links {
     display: flex;
     gap: 1.5rem;
}
.social-links a {
     color: #6b7280;
     transition: color 0.3s ease;
}
.social-links a:hover {
     color: white;
}
.copyright {
     font-size: 0.875rem;
     text-align: center;
}
/* =================================================================
    Portfolio Specifics, Grids & Glassmorphism & Video
    ================================================================= */
.hero-section.gallery .hero-content {
     text-align: right;
}
.hero-section.gallery .hero-about {
     text-align: left;
     font-size: 1.1rem;
     line-height: 1.7;
     color: #d1d5db;
}
.hero-about {
     text-align: left;
}
.hero-greeting {
     font-family: 'Dancing Script', cursive;
     display: block;
     text-align: left;
     font-size: 3rem;
     font-weight: 400;
}
.hero-name {
     font-family: 'Inter', sans-serif;
     font-size: 2.5rem;
     font-weight: 700;
     margin-bottom: 1rem;
     line-height: 1.2;
}
.hero-bio {
     font-family: 'Inter', sans-serif;
     font-size: 1.1rem;
     line-height: 1.7;
     color: #d1d5db;
}
.project-grid,
.video-grid {
     display: grid;
     grid-template-columns: repeat(1, 1fr);
     gap: 2rem;
}
.gallery-grid {
     columns: 2;
     gap: 1rem;
}
@media (min-width: 768px) {
     .project-grid,
     .video-grid {
          grid-template-columns: repeat(2, 1fr);
     }
     .gallery-grid {
          columns: 3;
     }
}
@media (min-width: 1024px) {
     .project-grid,
     .video-grid {
          grid-template-columns: repeat(3, 1fr);
     }
     .gallery-grid {
          columns: 4;
     }
}
.project-card,
.video-card {
     background-color: rgba(26, 26, 26, 0.5);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 0.75rem;
     overflow: hidden;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover,
.video-card:hover {
     transform: translateY(-5px) !important;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.project-img {
     width: 100%;
     height: 12rem;
     object-fit: cover;
}
.card-content {
     padding: 1.5rem;
}
.card-title {
     font-size: 1.25rem;
     font-weight: 700;
     color: #fff;
}
.card-text {
     color: #9ca3af;
     margin-bottom: 1rem;
}
.tag-container {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
}
.tag {
     background-color: rgba(51, 51, 51, 0.7);
     font-size: 0.75rem;
     font-weight: 600;
     padding: 0.25rem 0.6rem;
     border-radius: 9999px;
     color: #ccc;
}
.gallery-item {
     margin-bottom: 1rem;
     break-inside: avoid;
     border-radius: 0.5rem;
     overflow: hidden;
     transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item img {
     width: 100%;
     height: auto;
     display: block;
}
.gallery-item:hover {
     transform: scale(1.03) !important;
     filter: brightness(1.2);
}
/* =================================================================
    Video & Albums Section
    ================================================================= */
.video-section-wrapper {
     padding: 6rem 0;
}
.show-more-container {
     text-align: center;
     margin-top: 2rem;
}
.button-secondary {
     background-color: transparent;
     border: 2px solid #6b7280;
     color: #6b7280;
     padding: 0.75rem 2rem;
     border-radius: 9999px;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
}
.button-secondary:hover {
     background-color: #6b7280;
     color: white;
}
#album-grid > a {
     display: none;
}
#album-grid > a:nth-child(-n+6) {
     display: block;
}
#album-grid.show-all > a {
     display: block;
}
.video-embed {
     position: relative;
     width: 100%;
     padding-top: 56.25%; /* 16:9 Aspect Ratio */
     border-radius: 0.75rem;
     overflow: hidden;
}
.video-embed iframe {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     border: 0;
}
.video-card blockquote {
    min-height: 400px; /* Adjust as needed */
}


/* =================================================================
    Contact Form
    ================================================================= */
.contact-section-wrapper {
     padding: 6rem 0;
}
.contact-section {
     background-color: rgba(26, 26, 26, 0.5);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 0.75rem;
     padding: 4rem 1rem;
}
.contact-details {
     text-align: center;
     margin-bottom: 2rem;
     color: #d1d5db;
}
.contact-item {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.75rem;
     margin-bottom: 1rem;
     font-size: 1.1rem;
     text-decoration: none;
     color: #d1d5db;
     transition: color 0.3s ease;
}
.contact-item a:hover {
     color: white;
}
.contact-item svg {
     width: 24px;
     height: 24px;
}
.contact-socials {
     display: flex;
     justify-content: center;
     gap: 1.5rem;
     margin-top: 1.5rem;
}
.contact-socials a {
     color: #9ca3af;
     transition: color 0.3s ease, transform 0.3s ease;
}
.contact-socials a:hover {
     color: white;
     transform: scale(1.1);
}
.contact-form {
     max-width: 36rem;
     margin: auto;
}
.form-group {
     margin-bottom: 1rem;
}
.form-label {
     display: block;
     color: #9ca3af;
     margin-bottom: 0.5rem;
}
.form-input {
     width: 100%;
     background-color: rgba(10, 10, 10, 0.7);
     border: 1px solid #333;
     border-radius: 0.5rem;
     padding: 0.75rem;
     color: white;
     transition: border-color 0.3s, box-shadow 0.3s;
     box-sizing: border-box;
}
.form-input:focus {
     outline: none;
     border-color: #fff;
     box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.button-primary {
     background-color: #fff;
     color: #000;
     font-weight: 700;
     padding: 0.75rem 2rem;
     border-radius: 0.5rem;
     transition: all 0.3s;
     border: none;
     cursor: pointer;
}
.button-primary:hover {
     background-color: #ccc;
}
.text-center {
     text-align: center;
}
/* =================================================================
    Responsive Overrides
    ================================================================= */
@media (max-width: 768px) {
     .page-header {
          padding: 1rem 1.5rem;
     }
     .page-header.scrolled {
          padding: 0.75rem 1.5rem;
     }
     .header-logo img {
          height: 1.75rem;
     }
     .hero-section {
          flex-direction: column-reverse; /* To match hero-about coming first on mobile */
          justify-content: center;
          gap: 2rem;
          padding: 0 1.5rem;
          text-align: center;
     }
     .hero-section.gallery::before {
          background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
     }
     .hero-content,
     .hero-about {
          width: 100%;
          text-align: center !important;
     }
     .hero-heading {
          font-size: 2.5rem;
          margin-bottom: 0;
     }
     .hero-about {
          font-size: 1rem;
     }
    .hero-greeting,
     .hero-name,
     .hero-bio {
          text-align: center;
     }
}
@media (max-width: 999px) {
     .hero-name {
          font-size: 2rem;
     }
     .hero-greeting {
          font-size: 2.5rem; /* Adjusted for better visibility */
     }
}