/* --- GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #fafafa;
    opacity: 0;
    transition: opacity 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Helper Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-black { color: #820e0e; }

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0e074a;
    margin-bottom: 30px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0e074a, transparent);
    border-radius: 2px;
}

/* --- HEADER (FIXED) --- */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.logo-icon {
    height: 45px;
    width: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.menu-btn {
    width: 55px; height: 55px;
    background: linear-gradient(135deg, #000, #1a1a1a);
    border-radius: 50%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 5px; cursor: pointer;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.menu-line {
    background: #fff;
    height: 2px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- SIDEBAR MENU --- */
.sidebar-menu {
    position: fixed; top: 0; right: -450px;
    width: 420px; height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 2000;
    padding: 50px;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
}

.sidebar-menu.active { right: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-logo {
    color: #070067;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.4s ease forwards;
}

.sidebar-nav li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav li:nth-child(2) { animation-delay: 0.15s; }
.sidebar-nav li:nth-child(3) { animation-delay: 0.2s; }
.sidebar-nav li:nth-child(4) { animation-delay: 0.25s; }
.sidebar-nav li:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-link {
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C0392B, #E74C3C);
    transition: width 0.3s ease;
}

.sidebar-link:hover {
    color: #C0392B;
    transform: translateX(5px);
}

.sidebar-link:hover::before {
    width: 100%;
}

.social-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.social-icon {
    color: #333;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.social-icon:hover {
    color: #C0392B;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* --- SECTION 1: HERO (HOME) --- */
.hero-section {
    position: relative;
    height: 100vh;
    background-color: #050b51; /* The specific red */
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Align content bottom/center */
    justify-content: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 60%);
}

.content-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.image-block {
    margin-right: -50px;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-img {
    max-height: 85vh;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.text-block {
    z-index: 2;
    margin-bottom: 30vh;
    animation: fadeInUp 1s ease 0.3s both;
}

.text-block h1 {
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 800;
    text-transform: capitalize;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute; right: 50px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-text { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; letter-spacing: 2px; }
.scroll-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.4); }


/* --- SECTION 2: ABOUT ME --- */
.about-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    padding: 120px 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.section-label {
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
    color: #999;
    letter-spacing: 3px;
    font-size: 0.85rem;
}

.about-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    max-width: 900px;
    font-weight: 300;
}

.read-more {
    color: #C0392B;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #E74C3C;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

.btn-linkedin {
    display: inline-block;
    background: linear-gradient(135deg, #0073b1, #0060ba);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 25px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 96, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-linkedin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 96, 186, 0.4);
}

.btn-linkedin:hover::before {
    left: 100%;
}


/* --- SECTION 3: MY WRITINGS (BLOG) --- */
.writings-section {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 120px 0;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 1px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-card {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 30px;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-overlay {
    transform: translateY(0);
}

.blog-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}


/* --- SECTION 4: HOBBIES --- */
.hobbies-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    padding: 120px 0;
    position: relative;
}

.hobbies-grid {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hobby-card {
    width: 320px;
    height: 280px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hobby-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.hobby-card:hover::before {
    transform: scale(1);
}

.hobby-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.hobby-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.hobby-card:hover .hobby-icon {
    transform: scale(1.1) rotate(10deg);
}

.hobby-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.card-red {
    background: linear-gradient(135deg, #C0392B 0%, #E74C3C 50%, #FF6B6B 100%);
}

.card-yellow {
    background: linear-gradient(135deg, #D4AC0D 0%, #F1C40F 50%, #FFD93D 100%);
    color: #fff;
}

.card-blue {
    background: linear-gradient(135deg, #2980B9 0%, #5499C7 50%, #74B9FF 100%);
}


/* --- SECTION 5: ACHIEVEMENTS (NEW 3D CAROUSEL) --- */
.achievements-section {
    padding: 80px 0;
    /* Using dark navy to make the 3D effect pop, similar to the Hero section */
    background-color: #EEEEEE; 
    overflow: hidden;
}

.achievements-section .section-title {
    color: #fff; /* White title for dark background */
    margin-bottom: 50px;
}

/* 3D Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Slightly wider to fit rotations */
    height: 500px; /* Height to accommodate the card size + rotation */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Essential for depth */
}

/* The Track */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Individual Card Styling */
.carousel-item {
    position: absolute;
    width: 500px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth snap animation */
    background: #1a1a2e; /* Card background */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 3D STATES (Controlled by JS) --- */

/* Center Card */
.item-center {
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 0 40px rgba(100, 100, 255, 0.6), 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Left Card (Rotated 45deg) */
.item-left {
    transform: translateX(-300px) scale(0.85) rotateY(45deg);
    z-index: 5;
    opacity: 0.7;
    filter: brightness(0.6); /* Dim the sides */
}

/* Right Card (Rotated -45deg) */
.item-right {
    transform: translateX(300px) scale(0.85) rotateY(-45deg);
    z-index: 5;
    opacity: 0.7;
    filter: brightness(0.6); /* Dim the sides */
}

/* Hidden Cards */
.item-hidden {
    transform: translateX(0) scale(0.5);
    z-index: 0;
    opacity: 0;
}

/* --- CAROUSEL NAVIGATION (< . . . . >) --- */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.3); /* Glass-like pill background */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* The Arrows (< and >) */
.nav-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.3s ease;
    line-height: 1;
}

.nav-arrow:hover {
    color: #fff;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* The Dots Container */
.dots-container {
    display: flex;
    gap: 8px;
}

/* Individual Dot */
.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Active Dot Styling */
.dot.active {
    background-color: #fff; /* Bright white for active */
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* --- SECTION 6: VISION --- */
.vision-section {
    background-image: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.vision-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.vision-content {
    position: relative; z-index: 2;
    max-width: 800px;
    text-align: right;
    color: #fff;
    padding: 0 20px;
}
.vision-text { font-size: 1.2rem; line-height: 1.6; margin-top: 20px; }


/* --- SECTION 7: MISSION --- */
.mission-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0;
    display: flex;
    align-items: center;
}

.mission-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.6));
    z-index: 1;
}

.mission-content {
    position: relative; z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.text-left { text-align: left; }

.mission-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e6f1ff;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
    border-left: 4px solid #64ffda;
    padding-left: 20px;
}


/* --- SECTION 8: CONNECT --- */
.connect-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 180px 0;
    position: relative;
}

.connect-profile {
    margin: 40px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 5px solid #fff;
}

.connect-profile:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.connect-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.connect-profile:hover .connect-img {
    transform: scale(1.1);
}

.connect-name {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.connect-sub {
    color: #777;
    margin-bottom: 35px;
    font-size: 1.05rem;
    font-weight: 300;
}

.btn-linkedin-large {
    display: inline-block;
    background: linear-gradient(135deg, #0073b1, #0060ba);
    color: #fff;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 96, 186, 0.35);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.btn-linkedin-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-linkedin-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 96, 186, 0.45);
}

.btn-linkedin-large:hover::before {
    left: 100%;
}


/* --- BOTTOM NAV (STICKY PILL) --- */
.bottom-nav {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 999;
    border: 1px solid rgba(0,0,0,0.05);
    animation: fadeIn 0.6s ease 0.5s both;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 12px 22px;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    transform: scale(0);
    border-radius: 30px;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: #000;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: scale(1);
}

.nav-link.active {
    background: linear-gradient(135deg, #000, #2a2a2a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-link.active:hover {
    transform: translateY(-2px);
}


/* --- BIOGRAPHY FULL VIEW STYLES --- */
.bio-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 60px; padding-bottom: 30px; border-bottom: 1px solid #eee;
    flex-wrap: wrap; gap: 30px;
}

.bio-title-block .bio-name { font-size: 3.5rem; line-height: 1.1; font-weight: 800; color: #000; }

.bio-quote-block {
    max-width: 500px; padding-left: 30px; border-left: 4px solid #050;
}
.bio-quote-block p { font-size: 1.1rem; font-weight: 600; color: #333; line-height: 1.6; }

.bio-content-row { display: flex; gap: 60px; align-items: flex-start; }

.bio-collage-container {
    position: relative; width: 45%; height: 600px; flex-shrink: 0;
}

.collage-img-back {
    position: absolute; top: 0; left: 0; width: 70%; height: 60%;
    overflow: hidden; border-radius: 15px; z-index: 1;
}
.collage-img-back img { width: 100%; height: 100%; object-fit: cover; }

.collage-img-front {
    position: absolute; bottom: 0; right: 0; width: 75%; height: 55%;
    overflow: hidden; border-radius: 15px; z-index: 2;
    border: 8px solid #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.collage-img-front img { width: 100%; height: 100%; object-fit: cover; }

.bio-text-content { flex: 1; }
.bio-text-content p { font-size: 1.05rem; line-height: 1.8; color: #444; margin-bottom: 25px; }

.btn-back {
    display: inline-block; padding: 10px 25px; background-color: #333;
    color: #fff; text-decoration: none; border-radius: 30px;
    font-weight: 600; transition: 0.3s;
}
.btn-back:hover { background-color: #d62828; transform: translateY(-3px); }


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .content-wrapper { flex-direction: column-reverse; text-align: center; }
    .image-block { margin-right: 0; }
    .text-block { margin-bottom: 20px; margin-top: 100px; }
    .text-block h1 { font-size: 3.5rem; }
    .hero-img { max-height: 50vh; }
    .bottom-nav { width: 90%; overflow-x: auto; white-space: nowrap; }
    .vision-content { text-align: center; }
    
    /* Bio Responsiveness */
    .bio-header-row { flexDirection: column; align-items: flex-start; }
    .bio-quote-block { border-left: none; border-top: 4px solid #D62828; padding-left: 0; padding-top: 20px; }
    .bio-content-row { flexDirection: column; }
    .bio-collage-container { width: 100%; height: 400px; margin-bottom: 30px; }
    .collage-img-back { width: 60%; height: 70%; }
    .collage-img-front { width: 65%; height: 65%; }
    .bio-title-block .bio-name { font-size: 2.5rem; }

    /* 3D Carousel Mobile adjustments */
    .achievements-section { padding: 40px 0; }
    .carousel-container { height: 450px; }
    .carousel-item { width: 260px; height: 350px; }
    
    /* Mission */
    .mission-section { padding: 100px 0; }
    .mission-text { font-size: 1.1rem; }
}