/* ==============================================
   GOOGLE FONTS
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ==============================================
   GLOBAL RESET & BASE STYLES
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 84px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f2f8f5 !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(52, 211, 153, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(31, 122, 77, 0.06) 0%, transparent 50%);
    color: #1a2e24;
    font-weight: 400;
    letter-spacing: 0.01em;
    min-height: 100vh;
    position: relative;
    padding-top: 76px !important;
    overflow-x: hidden;
}

/* Faint blueprint grid + ambient green glow behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(31, 122, 77, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 122, 77, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: -10%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(52, 211, 153, 0.10), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

/* ==============================================
   CONTAINER
   ============================================== */
.container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ==============================================
   TYPOGRAPHY - BOLD TEXT
   ============================================== */
p,
span,
li,
.card-text,
.lead,
.small,
.nav-link,
.btn,
.text-muted {
    font-weight: 600 !important;
}

/* Headings - Extra Bold */
h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
.card-title,
.display-5,
.display-6 {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: #0d2b1e;
}

/* ==============================================
   GRADIENT HIGHLIGHT FOR HEADINGS
   ============================================== */
.display-6,
h1.fw-bold.display-6 {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800 !important;
}

/* Technical Skills Section Heading Highlight */
.text-muted[style*="color:black"] {
    background: linear-gradient(135deg, #0f172a, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    font-weight: 800 !important;
}

/* Eyebrow labels */
span.text-muted {
    display: inline-block;
    font-family: 'Google Sans', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #34d399 !important;
    margin-bottom: 0.5rem;
}

/* ==============================================
   NAVBAR - FIXED WITH NO BACKGROUND (FULLY TRANSPARENT)
   ============================================== */
.navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 12px 0;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* Navbar Brand / Logo */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0d2b1e !important;
}

/* Navbar Links Container */
.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #1a2e24 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1.2rem;
    border-radius: 50px !important;
    background: rgba(52, 211, 153, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(52, 211, 153, 0.15);
    margin-top: 5px;
}

/* Shake Animation */
@keyframes shake {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-3px) rotate(-1deg);
    }
    50% {
        transform: translateX(3px) rotate(1deg);
    }
    75% {
        transform: translateX(-2px) rotate(-0.5deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Navbar Link Hover - Shake + Pop Up Effect */
.navbar-nav .nav-link:hover {
    color: #1f7a4d !important;
    transform: translateY(-2px);
    background: rgba(52, 211, 153, 0.2) !important;
    border-color: rgba(52, 211, 153, 0.3);
    animation: shake 0.4s ease-in-out;
}

/* Active Link Styling */
.navbar-nav .nav-link.active {
    color: #1f7a4d !important;
    font-weight: 700 !important;
    background: rgba(52, 211, 153, 0.25) !important;
    border-color: rgba(52, 211, 153, 0.35);
}

/* Navbar Toggler Button - Round Shape */
.navbar-toggler {
    background: rgba(52, 211, 153, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(52, 211, 153, 0.15) !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    padding: 8px 16px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(52, 211, 153, 0.2) !important;
    transform: scale(1.02);
    animation: shake 0.4s ease-in-out;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==============================================
   MOBILE NAVBAR STYLES (Collapsed Menu)
   ============================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 16px;
        margin-top: 12px;
        padding: 12px;
        border: none !important;
        box-shadow: none !important;
    }

    .navbar-nav {
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 10px 20px;
        font-size: 1rem;
        border-radius: 50px !important;
        transition: all 0.3s ease;
        background: rgba(52, 211, 153, 0.12) !important;
        border: 1px solid rgba(52, 211, 153, 0.15);
        margin-top: 5px;
    }

    .navbar-nav .nav-link:hover {
        transform: translateX(5px);
        background: rgba(52, 211, 153, 0.2) !important;
        animation: shake 0.4s ease-in-out;
    }

    .navbar-nav .nav-link.active {
        background: rgba(52, 211, 153, 0.25) !important;
        color: #1f7a4d !important;
    }
}

/* ==============================================
   IMAGE BORDER RADIUS
   ============================================== */
img,
.img-fluid,
.rounded-circle,
.ratio img,
.card img {
    border-radius: 16px !important;
}

/* Profile Image - Perfect Circle */
.rounded-circle {
    border-radius: 50% !important;
    border: 3px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* ==============================================
   CARD STYLES WITH BETTER HOVER
   ============================================== */
.card {
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52, 211, 153, 0.18) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Card Hover - Pop Up Effect */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Ratio 16:9 Border Radius */
.ratio-16x9 {
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden;
}

.card-body.bg-dark {
    background: rgba(13, 24, 18, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==============================================
   SKILL CARDS & BG LIGHT STYLES
   ============================================== */
.bg-light.rounded-3 {
    background: rgba(255, 255, 255, 0.40) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(52, 211, 153, 0.10);
    border-radius: 16px !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Skill Card Hover - Pop Up Effect */
.bg-light.rounded-3:hover {
    background: rgba(255, 255, 255, 0.60) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.12);
}

/* ==============================================
   CAROUSEL CONTROLS - NO SHADOW
   ============================================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%;
    background-color: #1e293b;
    width: 40px;
    height: 40px;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Carousel Controls Hover - Pop Up */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #1f7a4d;
    transform: scale(1.1);
}

.carousel-indicators button {
    box-shadow: none;
    border-radius: 50%;
    width: 10px !important;
    height: 10px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #1f7a4d !important;
    transform: scale(1.3);
}

/* ==============================================
   SOCIAL MEDIA ICON HOVER - POP UP EFFECT
   ============================================== */
.d-flex.gap-3 a {
    transition: all 0.3s ease;
}

.d-flex.gap-3 a:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: rgba(52, 211, 153, 0.1) !important;
}

/* ==============================================
   BUTTON STYLES
   ============================================== */
.btn {
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.3s ease;
}

/* Button Hover - Pop Up Effect */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.btn-primary {
    background: #1f7a4d;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: #0f3d24;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 122, 77, 0.3);
}

/* ==============================================
   FOOTER STYLES - TRANSPARENT
   ============================================== */
footer {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
    border-top: 1px solid rgba(52, 211, 153, 0.10) !important;
}

/* Footer Link Hover - Pop Up & Slide Effect */
footer a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: #1f7a4d !important;
    transform: translateX(5px);
}

/* Footer List Items */
footer ul li a {
    display: inline-block;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: #1f7a4d !important;
    transform: translateX(6px);
}

/* Footer Social Buttons Hover */
footer .btn-outline-secondary {
    transition: all 0.3s ease;
}

footer .btn-outline-secondary:hover {
    background-color: #1f7a4d !important;
    border-color: #1f7a4d !important;
    color: white !important;
    transform: translateY(-4px) scale(1.05);
}

/* Footer Border Top */
footer.border-top {
    border-top: 1px solid rgba(52, 211, 153, 0.10) !important;
}

/* ==============================================
   GLASS UTILITIES (FROM SECOND CSS)
   ============================================== */
.glass-bg {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(52, 211, 153, 0.12) !important;
}

.glass-bg-light {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
    border: 1px solid rgba(52, 211, 153, 0.08) !important;
}

.glass-bg-dark {
    background: rgba(10, 6, 24, 0.7) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(52, 211, 153, 0.15) !important;
}

.glass-section {
    position: relative;
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
}

.glass-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(31, 122, 77, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.glass-section-alt {
    background: linear-gradient(180deg, #f2f8f5 0%, #e8f3ef 100%);
}

.glass-section-alt::before {
    background:
        radial-gradient(circle at 20% 60%, rgba(52, 211, 153, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 80% 40%, rgba(31, 122, 77, 0.03) 0%, transparent 45%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(52, 211, 153, 0.1) !important;
    border-radius: 28px !important;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    height: 100%;
    min-height: 320px;
    padding: 30px 25px !important;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.03), transparent 70%);
    pointer-events: none;
    transition: all 0.6s ease;
}

.glass-card:hover::before {
    transform: scale(1.5);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(52, 211, 153, 0.06) !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
    box-shadow:
        0 25px 60px rgba(52, 211, 153, 0.08),
        0 8px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.glass-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(31, 122, 77, 0.08));
    border: 1px solid rgba(52, 211, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #34d399;
    transition: all 0.4s ease;
}

.glass-card:hover .icon-wrapper {
    transform: scale(1.05) rotate(-3deg);
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.1);
}

.glass-card h3 {
    color: #0d2b1e;
    font-weight: 700;
    margin-bottom: 12px;
}

.glass-card p {
    color: #2b4a3a;
    margin-bottom: 0;
}

.glass-text {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #34d399 !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.glass-text:hover {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
    transform: translateY(-2px);
}

.glass-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.15), transparent);
    margin: 20px 0;
}

.glass-border {
    border: 1px solid rgba(52, 211, 153, 0.08) !important;
}

.glass-border-hover:hover {
    border-color: rgba(52, 211, 153, 0.2) !important;
}

.shadow-glow {
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.05);
}

.shadow-glow-hover:hover {
    box-shadow: 0 0 60px rgba(52, 211, 153, 0.08);
}

/* ==============================================
   BADGE - GLASS
   ============================================== */
.badge-glow {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.1);
    color: #34d399;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==============================================
   SCROLL REVEAL ANIMATIONS
   ============================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.reveal-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.reveal-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

/* ==============================================
   FORM ELEMENTS - GLASS
   ============================================== */
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52, 211, 153, 0.1) !important;
    border-radius: 14px;
    padding: 14px 18px;
    color: #1a2e24 !important;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(52, 211, 153, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.05) !important;
    outline: none;
    background: rgba(255, 255, 255, 0.05) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(26, 46, 36, 0.3);
}

/* ==============================================
   GLOSSY IMAGE
   ============================================== */
.glossy-img {
    border-radius: 28px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(52, 211, 153, 0.08);
    transition: all 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    filter: brightness(0.98) saturate(0.95) contrast(1.05);
}

.glossy-img:hover {
    transform: scale(1.02) translateY(-6px);
    box-shadow:
        0 35px 80px rgba(52, 211, 153, 0.12),
        0 0 0 1px rgba(52, 211, 153, 0.15);
    filter: brightness(1.02) saturate(1) contrast(1.02);
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.8rem;
    }

    footer .row {
        text-align: center;
    }

    footer ul {
        margin-bottom: 1.5rem;
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .bg-light.rounded-3:hover {
        transform: translateY(-3px);
    }

    .glass-card {
        min-height: 260px;
        padding: 25px 20px !important;
    }

    .glass-section {
        padding: 50px 0;
    }

    .display-5 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .glass-card {
        padding: 20px 16px !important;
        min-height: 220px;
    }

    .display-5 {
        font-size: 1.4rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */
.text-primary {
    color: #1f7a4d !important;
}

.bg-dark-custom {
    background-color: #0f172a !important;
}

.shadow-sm-custom {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Remove Shadow from Specific Elements */
.carousel,
.carousel-control-prev-icon,
.carousel-control-next-icon,
.carousel-indicators button {
    box-shadow: none !important;
}

/* Section Spacing */
section {
    position: relative;
    background: transparent !important;
}

/* Paragraph Line Height */
.lead {
    line-height: 1.7;
    color: #2b4a3a;
}

/* ==============================================
   PARAGRAPH TEXT JUSTIFY - ALL SCREENS
   ============================================== */
p,
.lead,
.card-text {
    text-align: justify !important;
}

/* Keep text centered inside any .text-center container (e.g. contact cards, hero sections) */
.text-center p,
.text-center .lead,
.text-center .card-text {
    text-align: center !important;
}

/* Image Hover Zoom Effect */
img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Gallery Image Container */
.gallery-img {
    overflow: hidden;
    border-radius: 16px;
}

.gallery-img img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-img:hover img {
    transform: scale(1.05);
}

/* Override bg classes */
.bg-white {
    background: transparent !important;
}

.bg-light {
    background: transparent !important;
}