:root {
    --hero-image: url('../pictures/indexBG.png');
    /* Hero Section */
    /* use this */
    --about-image: url('../pictures/aboutBG.png');
    /* About Section */
    --portfolio-image: url('../pictures/portfolioBG.png');
    --contact-image: url('../pictures/contactBG.png');
    --nav-height: 72px;

}

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body,
html {
    height: 100%;
    margin: 0;
    background: #000;
    color: #fff;
}

/* Hero Section */
.site-hero {
    height: 100vh;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center right;
    position: relative;
    color: #fff;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0.20) 60%,
            rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

/* Glass Navbar */
.glass-navbar {
    height: var(--nav-height);
    width: 100%;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

/* Brand Logo */
.brand-logo {
    height: 100px;
    /* increased from 40px → 60px */
    max-width: none;
    /* prevents it from shrinking unnecessarily */
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}


/* Laptop Toggler Base Styles */
.laptop-toggler {
    border: none;
    outline: none;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    /* ensures consistent button height */
    width: 48px;
    /* makes it square-ish */
    cursor: pointer;
}

.laptop-icon {
    position: relative;
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    /* gives a more realistic 3D effect */
}

/* Base */
.laptop-icon .base {
    width: 100%;
    height: 6px;
    background: white;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
}

.laptop-icon .lid {
    border: none;
    width: 100%;
    height: 12px;
    background: white;
    border-radius: 2px 2px 0 0;
    position: absolute;
    top: 0;
    transform-origin: bottom center;
    transform: rotateX(150deg);
    transition:
        transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        box-shadow 0.4s ease-in-out,
        background 0.4s ease-in-out,
        opacity 0.3s ease-in-out;
    box-shadow: none;
    opacity: 0.8;
    /* slightly dim when closed */
}

/* When toggled (expanded) → lid opens like laptop */
.navbar-toggler[aria-expanded="true"] .lid {
    transform: rotateX(0deg);
    background: linear-gradient(to bottom, #ffffff, #dfe9ff);
    box-shadow: 0 0 12px rgba(38, 177, 231, 0.6), 0 0 24px rgba(78, 70, 229, 0.6);
    opacity: 1;
    /* screen fully visible */
}

/* Nav Links */
.nav-links .nav-link {
    color: #f5f5f5;
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 6px;
    opacity: 0.95;
    transition: all 0.2s ease;
}

.nav-links .nav-link:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.nav-link.active {
    box-shadow: 0 0 12px rgba(38, 177, 231, 0.6), 0 0 24px rgba(78, 70, 229, 0.6);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}


/* CTA Button */
.cta {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: white !important;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
    transition: all 0.2s ease;
}

.cta:hover {
    opacity: 0.9;
}

/* Hero Content */
.hero-content {
    z-index: 5;
    padding: 0 8%;
}

.hero-title {
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-sub {
    font-size: clamp(14px, 1.2vw, 20px);
    opacity: 0.9;
    margin: 0 0 20px 0;
}

.hero-cta a {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 600;
}

.btn-light {
    background: #ffffff;
    color: #333;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
    background: #f8f9fa;
    /* slightly off-white for subtle effect */
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* soft hover shadow */
}


.btn-primary {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #06b6d4, #4f46e5);
    /* reversed gradient for hover */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* === About Section Styling (Extends Hero Styles) === */

/* Main container for About Section */
.about-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--about-image) no-repeat center center / cover;
    color: #fff;
    overflow: hidden;
}

/* Overlay for darker, more readable text */
.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Hero Content inside About Section */
.about-hero .hero-content {
    z-index: 2;
    width: 100%;
    padding: 0 8%;
}

/* === Left Column (Profile + Name) === */
.about-hero .left-col {
    text-align: center;
}

@media (min-width: 768px) {
    .about-hero .left-col {
        text-align: left;
    }
}

/* Profile Image Styling */
.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
}

/* Title & Subtitle */
.about-hero .hero-title {
    color: #fff;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    margin-bottom: 15px;
}

.about-hero .hero-sub {
    font-size: clamp(16px, 1.3vw, 22px);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* === Right Column (Bio, Tools, Highlights, CTA) === */
.about-details {
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.7;
    color: #ddd;
    opacity: 0.85;
    margin-bottom: 20px;
}

.tools-tech {
    font-size: 0.95rem;
    color: #cfd8dc;
    margin-top: 10px;
    font-style: italic;
}

/* Key Highlights */
.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.about-highlights .highlight {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.about-highlights .highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Call-to-Action buttons */
.about-hero .hero-cta {
    margin-top: 25px;
    z-index: 2;
}

/* Footer note styling */
.about-hero .footer-note {
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.6;
    font-size: 12px;
}


/* Portfolio Item Hover Effect */
.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

#portfolio-preview h2,
#portfolio-preview p {
    color: #fff !important;
}

#portfolio-preview .card-text {
    color: #ffffff !important;
}

/* ================= Portfolio Section ================= */
.portfolio-hero {
    display: block;
    /* reset flex */
    width: 100%;
    min-height: 100vh;
    /* full viewport height if needed */
    background: #0f172a;
    /* matches portfolio section */
    color: #fff;
    position: relative;
    text-align: center;
    /* keep your text centered */
}

/* optional: keep inner container spacing */
.portfolio-hero section {
    width: 100%;
    display: block;
}



#portfolio {
    position: relative;
    background: #0f172a;
    /* fallback */
    color: #fff;
    overflow: hidden;
}

/* Background image */
#portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--portfolio-image) center center / cover no-repeat;
    z-index: 0;
}

/* Overlay layer */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    /* dark tint */
    backdrop-filter: blur(2px);
    /* optional subtle blur */
    z-index: 1;
}

/* Ensure content stays above overlay */
#portfolio .container {
    position: relative;
    z-index: 2;
}

#portfolio h2 {
    font-weight: 800;
    font-size: 2.25rem;
    color: #fff;
}

#portfolio p.text-muted {
    color: #94a3b8 !important;
    /* softer muted text */
    font-size: 0.95rem;
}

/* Portfolio Card */
.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    /* glass effect */
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Thumbnail image */
.portfolio-item img {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Card Body */
.portfolio-item .card-body {
    padding: 1.2rem;
}

.portfolio-item .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.portfolio-item .card-text {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Tech stack note */
.portfolio-item .text-muted {
    font-size: 0.8rem;
    color: #94a3b8 !important;
}

/* Buttons */
.card-footer-button .btn {
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card-footer-button .btn-primary {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border: none;
}

.card-footer-button .btn-primary:hover {
    background: linear-gradient(90deg, #4338ca, #0891b2);
    transform: scale(1.05);
}

/* Badge (for private projects) */
.card-footer-button .badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: default;
    box-shadow: none;
    opacity: 0.6;
}

/* ========== Skills Section ========== */
#skills {
    background: #0f172a;
    /* dark backdrop */
    color: #fff;
}

#skills h2 {
    font-weight: 800;
    font-size: 2.25rem;
    color: #fff;
}

#skills p.text-muted {
    color: #94a3b8 !important;
    font-size: 0.95rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* Progress bar container */
.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.3rem;
}

/* Progress fill */
.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 8px;
    transition: width 1.5s ease-in-out;
    /* animation */
}


.percent {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ===== Modals (Dark Glassy Theme) ===== */
.modal-content {
    background: rgba(15, 23, 42, 0.95);
    /* dark navy glass */
    color: #fff;
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal header */
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.btn-close:hover {
    opacity: 1;
}


/* Animate in */
  .btn-close.animate-in {
    animation: fadeScaleIn 0.5s ease forwards;
  }

  @keyframes fadeScaleIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  /* Animate out */
  .btn-close.animate-out {
    animation: fadeScaleOut 0.5s ease forwards;
  }

  @keyframes fadeScaleOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.5); opacity: 0; }
  }


/* Modal body text */
.modal-body p,
.modal-body li {
    color: #cbd5e1;
    /* soft gray */
}

.modal-body strong {
    color: #38bdf8;
    /* cyan accent */
}

/* Modal footer */
.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn-primary {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border: none;
    font-weight: 600;
    border-radius: 8px;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(90deg, #4338ca, #0891b2);
    transform: scale(1.05);
}

.modal-footer .badge {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}


.modal-body img {
    border-radius: 0.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.modal-body img:hover {
    transform: scale(1.03);
}

/* Smooth modal animation */
.modal.fade .modal-dialog {
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1);
    /* smooth spring-like */
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}


/* ================= Contact Hero ================= */
.contact-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--contact-image) no-repeat center center / cover;
    color: #fff;
    overflow: hidden;
}

.contact-hero .contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* Keeps text readable */
  z-index: 1;
}

.contact-hero .hero-content {
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 0 8%;
}

.contact-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-hero .hero-sub {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* CTA Buttons */
.btn-gmail {
  background-color: #D14836;
  color: #fff;
}
.btn-gmail:hover {
  background-color: #b23121;
  color: #fff;
}

.btn-linkedin {
  background-color: #0077B5;
  color: #fff;
}
.btn-linkedin:hover {
  background-color: #005582;
  color: #fff;
}

.btn-facebook {
  background-color: #1877F2;
  color: #fff;
}
.btn-facebook:hover {
  background-color: #145dbf;
  color: #fff;
}

/* ================= Why Work With Me ================= */
.why-me {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.why-me h2 {
  font-size: 2.25rem;
  font-weight: 600;
}

.why-me p.lead {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}




/* ================= Contact Form ================= */
/* .contact-form-section {
  position: relative;
  z-index: 2;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.contact-form-section .container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  max-width: 800px;
}

.contact-form-section h2 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contact-form-section .form-control {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.contact-form-section .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form-section .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #66b3ff;
  box-shadow: none;
  color: #fff;
}

/* Send button */
.contact-form-section button {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  border: none;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease;
}

.contact-form-section button:hover {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  transform: translateY(-2px);
} */

/* ================= Location Section ================= */
.contact-location {
  margin-top: 4rem;
  color: #fff; /* ensures default text is white */
}

.contact-location h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #fff; /* explicitly set white */
}

.contact-location p {
  max-width: 700px;
  margin: 0 auto;
  color: #fff; /* explicitly set white */
}


/* ================= Footer Note ================= */
.footer-note {
  z-index: 2;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
}



/* Footer */
.footer-bottom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    /* Safari support */
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    font-size: 0.95rem;
    letter-spacing: 0.3px;

    padding: 0 !important;
}

.footer-note {
    position: absolute;
    right: 20px;
    bottom: 18px;
    opacity: 0.6;
    font-size: 12px;
}

#contact-footer-note {
    right: 20px;
    bottom: 18px;
    opacity: 0.6;
    font-size: 12px; /* smaller font size */
    margin-right: 30px;
}


/* Responsive Tweaks */
@media (max-width: 991.98px) {
    #mainNavbar {
        backdrop-filter: blur(45px) saturate(200%);
        /* max blur + higher saturation */
        -webkit-backdrop-filter: blur(45px) saturate(200%);
        background: rgba(10, 10, 10, 0.85);
        /* darker, less transparent */
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding: 18px 0;
        text-align: center;
        width: 100%;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        /* deeper glass shadow */
    }

    /* Scale logo down for tablets */
    .brand-logo {
        height: 55px;
    }

    .nav-links .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        font-weight: 500;
        color: #fff;
    }

    .cta {
        margin-top: 16px;
    }
}


@media (min-width: 320px) and (max-width: 576px) {

    /* Further scale logo down for small phones */
    .brand-logo {
        height: 40px;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding: 12px 10px;
    }

    .portfolio-item {
        margin-left: 20px;
        margin-right: 20px;
    }

    .profile-img {
        top: 20px !important;
    }
}