/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --accent-color: #7f8c8d;
    --accent-dark: #5d6d7e;
    --accent-light: #95a5a6;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --text-lighter: #bdc3c7;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #ecf0f1;
    --bg-dark: #e5e8e9;
    --border-color: #dee2e6;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-large: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-logo a:hover {
    color: var(--accent-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #7f8c8d 100%);
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(127, 140, 141, 0.2) 0%, transparent 50%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text-content {
    animation: fadeInLeft 1s ease;
}

.hero-main-title {
    font-size: 4.0rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.hero-titles {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 3px;
    opacity: 0.95;
    line-height: 1.4;
}

.hero-images-section {
    animation: fadeInRight 1s ease;
}

.hero-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
}

.hero-image-item.large {
    grid-column: 1 / -1;
    height: 300px;
}

.hero-image-item:not(.large) {
    height: 200px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-slow);
}

.hero-image-item:hover .hero-img {
    transform: scale(1.1);
}

.hero-image-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-img:not([src]),
.hero-img[src=""] {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.3) 0%, rgba(127, 140, 141, 0.3) 100%);
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, white 100%);
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.stat-card.featured {
    border-top-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: inline-block;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(127, 140, 141, 0.1);
    border-radius: 50px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-section) 0%, white 100%);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-closing {
    font-weight: 600;
    color: var(--accent-dark);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.about-images {
    position: relative;
}

.about-image-stack {
    position: relative;
    height: 400px;
    min-height: 300px;
    width: 100%;
}

.about-stack-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
    top: 0;
    left: 0;
}

.about-stack-img.main {
    z-index: 7;
    transform: translate(0, 0);
}

.about-image-stack img.about-stack-img:nth-child(2) {
    z-index: 6;
    transform: translate(-15px, 15px) scale(0.97);
    opacity: 0.9;
}

.about-image-stack img.about-stack-img:nth-child(3) {
    z-index: 5;
    transform: translate(-30px, 30px) scale(0.94);
    opacity: 0.8;
}

.about-image-stack img.about-stack-img:nth-child(4) {
    z-index: 4;
    transform: translate(-45px, 45px) scale(0.91);
    opacity: 0.7;
}

.about-image-stack img.about-stack-img:nth-child(5) {
    z-index: 3;
    transform: translate(-60px, 60px) scale(0.88);
    opacity: 0.6;
}

.about-image-stack img.about-stack-img:nth-child(6) {
    z-index: 2;
    transform: translate(-75px, 75px) scale(0.85);
    opacity: 0.5;
}

.about-image-stack img.about-stack-img:nth-child(7) {
    z-index: 1;
    transform: translate(-90px, 90px) scale(0.82);
    opacity: 0.4;
}

.about-image-stack:hover .about-stack-img.main {
    transform: translate(10px, -10px);
    z-index: 8;
}

.about-stack-img:not([src]),
.about-stack-img[src=""] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Ventures Section */
.ventures-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.venture-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.venture-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent-color);
}

.venture-icon {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.venture-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.venture-role {
    font-size: 1.1rem;
    color: var(--accent-dark);
    font-weight: 600;
}

/* Previous Roles Section */
.previous-roles-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.role-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.role-icon {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-color);
    flex-shrink: 0;
    padding: 0.8rem 1.2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    min-width: 70px;
    text-align: center;
    display: inline-block;
    margin-bottom: 1rem;
}

.role-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.role-org {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Organizations Section */
.organizations-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.org-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.org-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-color);
}

.org-icon {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.org-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.org-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contributions Section */
.contributions-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
}

.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contribution-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.contribution-card.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-top-color: white;
}

.contribution-card.highlight .contribution-title,
.contribution-card.highlight .contribution-desc {
    color: white;
}

.contribution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.contribution-icon {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.contribution-card.highlight .contribution-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

.contribution-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.contribution-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Education Section */
.education-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.education-card.featured {
    border-top-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.education-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.education-icon {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.education-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
    opacity: 1 !important;
    visibility: visible !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
    cursor: pointer;
    background-color: var(--bg-light);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
    min-height: 250px;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.15);
}

.gallery-overlay {
    line-height: normal;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.gallery-img:not([src]),
.gallery-img[src=""] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 160px;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.social-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-link:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.social-label {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section.main {
    padding-right: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0.8rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Extra Large Devices (Large Desktops) - 1400px and above */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 25px;
    }

    .hero-main-title {
        font-size: 3.5rem;
    }
}

/* Large Devices (Desktops, Laptops) - 1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .hero-main-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-image-stack {
        height: 450px;
    }

    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Medium Devices (Tablets Landscape, Small Laptops) - 992px */
@media (max-width: 992px) {
    .nav-logo a {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1.8rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Hero stays in landscape (side-by-side) on tablets */
    .hero-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-main-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-item.large {
        height: 300px;
    }

    .hero-image-item:not(.large) {
        height: 180px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        text-align: center;
    }

    .about-image-stack {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card.featured {
        transform: scale(1);
    }

    .ventures-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .organizations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contributions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .education-card.featured {
        transform: scale(1);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-section.main {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* iPad Air & Tablets Portrait - 850px */
@media (max-width: 850px) {
    /* Hero stays in landscape but with adjusted sizing */
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-main-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-titles {
        gap: 0.5rem;
    }

    .hero-image-item.large {
        height: 320px;
    }

    .hero-image-item:not(.large) {
        height: 160px;
    }

    .nav-logo a {
        font-size: 1.4rem;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .gallery-title {
        font-size: 1rem;
    }
}

/* Small Devices (Tablets Portrait) - 768px */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-container {
        padding: 1rem 20px;
    }

    /* Hero stays in landscape (side-by-side) on tablets */
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .hero-main-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-image-item.large {
        height: 280px;
    }

    .hero-image-item:not(.large) {
        height: 160px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .stats-section {
        padding: 60px 0;
        margin-top: -40px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .about-section,
    .ventures-section,
    .previous-roles-section,
    .organizations-section,
    .contributions-section,
    .education-section,
    .gallery-section,
    .contact-section {
        padding: 60px 0;
    }

    .about-image-stack {
        height: 350px;
    }

    .ventures-grid,
    .roles-grid,
    .organizations-grid,
    .contributions-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        min-width: 140px;
        padding: 1.5rem 2rem;
    }

    .social-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section.main {
        padding-right: 0;
    }

    .footer {
        padding: 60px 0 30px;
    }
}

/* Extra Small Devices (Mobile Phones) - 576px */
/* Hero switches to PORTRAIT (stacked) layout on mobile phones */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .nav-logo a {
        font-size: 1.4rem;
    }

    .hero-section {
        padding: 90px 0 50px;
    }

    /* Hero switches to portrait (stacked) on mobile */
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-images-section {
        order: -1;
    }

    .hero-images-grid {
        max-width: 100%;
    }

    .hero-main-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .hero-titles {
        align-items: center;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        text-align: center;
    }

    .hero-image-item.large {
        height: 250px;
    }

    .hero-image-item:not(.large) {
        height: 160px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-label {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .stat-icon {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .about-content {
        font-size: 1rem;
    }

    .about-image-stack {
        height: 300px;
    }

    .venture-card,
    .role-card,
    .org-card,
    .contribution-card,
    .education-card {
        padding: 1.5rem;
    }

    .venture-title,
    .org-title,
    .contribution-title,
    .education-title {
        font-size: 1.1rem;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-title {
        font-size: 1rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-link {
        min-width: 100px;
        padding: 1.2rem 1.5rem;
    }

    .social-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .social-label {
        font-size: 0.85rem;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-description {
        font-size: 0.95rem;
    }
}

/* Extra Extra Small Devices (Small Mobile) - 480px */
@media (max-width: 480px) {
    /* Hero remains in portrait (stacked) */
    .hero-main-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .hero-image-item.large {
        height: 220px;
    }

    .hero-image-item:not(.large) {
        height: 140px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-image-stack {
        height: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Ultra Small Devices (Very Small Phones) - 360px */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }

    /* Hero remains in portrait (stacked) */
    .hero-main-title {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .hero-image-item.large {
        height: 200px;
    }

    .hero-image-item:not(.large) {
        height: 120px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .about-image-stack {
        height: 250px;
    }

    .social-link {
        min-width: 90px;
        padding: 1rem 1.2rem;
    }

    .social-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--accent-color);
    color: white;
}