/* ============================================
   MODERN INTERACTIVE PORTFOLIO - CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f172a;
    --bg-medium: #1e293b;
    --bg-light: #334155;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(15, 23, 42, 0.95);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

/* Print button styling */
.print-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.print-btn::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: 80px; /* Add padding to prevent navbar overlap */
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.1;
}

.particles::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-gray);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--gradient-1);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 6px;
    height: 10px;
    background: var(--text-gray);
    border-radius: 3px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.5; }
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: var(--bg-medium);
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-card {
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.about-image-container:hover .about-overlay {
    opacity: 1;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.about-stats {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-intro {
    font-size: 1.2rem !important;
    color: var(--text-light) !important;
}

.about-highlights {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.highlight-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.highlight-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

/* ============================================
   PROFESSIONAL EXPERIENCE - EXPANDABLE TILES
   ============================================ */

.experience-section {
    background: var(--bg-dark);
}

.experience-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: left;
}

.experience-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.experience-intro p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.professional-projects-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.professional-project-tile {
    background: var(--bg-medium);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.professional-project-tile:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.tile-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(37, 99, 235, 0.05);
}

.tile-header h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 0;
}

.expand-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.professional-project-tile.expanded .expand-icon {
    transform: rotate(180deg);
}

.tile-preview {
    padding: 0 2rem 1.5rem;
    color: var(--text-gray);
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.professional-project-tile.expanded .tile-preview {
    opacity: 0;
    max-height: 0;
    padding: 0 2rem;
    overflow: hidden;
}

.tile-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.professional-project-tile.expanded .tile-content {
    max-height: 5000px;
}

.tile-content-inner {
    padding: 1.5rem 2rem 2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.tile-content-inner p {
    margin-bottom: 1rem;
}

.tile-content-inner h4 {
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.tile-content-inner ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tile-content-inner li {
    margin-bottom: 0.5rem;
}

.tile-content-inner .video-container {
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.tile-content-inner .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

.video-preview {
    margin: 1.5rem 0;
}

.video-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px dashed var(--primary-color);
}

.video-thumbnail:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.video-thumbnail svg {
    color: var(--primary-color);
}

/* ============================================
   LEADERSHIP SECTION
   ============================================ */

.leadership-section {
    background: var(--bg-medium);
}

.leadership-content {
    margin-bottom: 2rem;
}

.leadership-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.leadership-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide.active {
    display: block;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Dots */
.dot-container {
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

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

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-section {
    background: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-medium);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card.expandable-card {
    cursor: pointer;
    grid-column: span 1;
}

.project-card.expandable-card.expanded {
    grid-column: 1 / -1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-card.expanded:hover {
    transform: none;
}

.project-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:not(.expanded):hover .project-image img {
    transform: scale(1.1);
}

.project-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.project-card.expanded .project-expanded-content {
    max-height: 5000px;
}

.project-expanded-inner {
    padding: 2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.project-expanded-inner p {
    margin-bottom: 1rem;
}

.project-expanded-inner ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-expanded-inner li {
    margin-bottom: 0.5rem;
}

.project-expanded-inner iframe {
    border-radius: 10px;
}

.project-expanded-inner a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-expanded-inner a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.project-card {
    background: var(--bg-medium);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    color: var(--text-gray);
    opacity: 0.3;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-section {
    background: var(--bg-medium);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skills-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

/* Skill List (Icon-based, no percentages) */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.skill-item:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-item svg,
.skill-item .skill-icon {
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.skill-item span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.skill-tag:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: var(--bg-dark);
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-medium);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: var(--gradient-1);
    box-shadow: var(--shadow-xl);
}

.contact-card svg {
    color: var(--primary-light);
    transition: var(--transition);
}

.contact-card:hover svg {
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-medium);
    padding: 2rem;
    text-align: center;
    color: var(--text-gray);
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-medium);
    padding: 2rem;
    border-radius: 15px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

[data-animate] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
}

[data-animate="fade-up"].animated {
    animation: fadeInUp 0.6s ease forwards;
}

[data-animate="fade-right"].animated {
    animation: fadeInRight 0.6s ease forwards;
}

[data-animate="fade-left"].animated {
    animation: fadeInLeft 0.6s ease forwards;
}

[data-animate="zoom-in"].animated {
    animation: zoomIn 0.6s ease forwards;
}

[data-animate="slide-right"].animated {
    animation: slideInRight 0.6s ease forwards;
}

[data-animate="slide-left"].animated {
    animation: slideInLeft 0.6s ease forwards;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-card {
        order: 2;
    }

    .professional-projects-grid {
        padding: 0 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }
    
    .leadership-gallery.gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
    }

    .leadership-gallery .gallery-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .leadership-gallery .gallery-item img {
        width: 100%;
        height: auto;
    }
}

/* Always hide desktop gallery */
.desktop-gallery {
    display: none !important;
}

/* Always show mobile slideshow */
.mobile-slideshow {
    display: block !important;
}

/* Print header - hidden by default */
.print-header {
    display: none;
}

/* Print-only experience section - hidden by default */
.print-only-section,
.print-only-experience,
.print-only-stats,
.print-only-images {
    display: none;
}

/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

/* Hide the images by default */
.leadership-slide {
    display: none;
    position: relative;
}

.leadership-slide img {
    border-radius: 10px;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    background: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px 0 10px 0;
}

/* Next & previous buttons */
.prev-slide, .next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

/* Position the "next button" to the right */
.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a darker background */
.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.slideshow-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent-color);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 1rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid:not(.leadership-gallery) {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Page setup */
    @page {
        size: A4;
        margin: 1.5cm;
    }

    /* Force color preservation */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Reset animations - make everything visible */
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Show print header with professional gradient styling */
    .print-header {
        display: block !important;
        text-align: center;
        padding: 2rem 1.5rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .print-header h1 {
        font-size: 24pt;
        margin: 0 0 0.5rem 0;
        color: white !important;
        font-weight: bold;
    }

    .print-header h2 {
        font-size: 16pt;
        margin: 0 0 0.5rem 0;
        color: white !important;
        font-weight: 500;
        opacity: 0.95;
    }

    .print-header p {
        font-size: 10pt;
        margin: 0;
        color: white !important;
        opacity: 0.9;
    }

    /* Hide elements not needed in print */
    .navbar,
    .hero,
    .particles,
    .hero-buttons,
    .social-links,
    .nav-toggle,
    .prev,
    .next,
    .prev-slide,
    .next-slide,
    .dot-container,
    .slideshow-dots,
    .lightbox,
    .video-modal,
    footer,
    #contact,
    .slideshow-container,
    .gallery-grid,
    .desktop-gallery,
    .mobile-slideshow,
    .professional-projects-grid,
    .projects-grid .project-image,
    iframe {
        display: none !important;
    }

    /* Show about section image */
    .about-image-container,
    .about-image {
        display: block !important;
    }

    .about-image-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-overlay {
        display: none !important;
    }

    /* Show print-only content */
    .print-only-experience,
    .print-only-stats {
        display: block !important;
    }

    /* Show and expand all project cards */
    .projects-grid {
        display: block !important;
        page-break-inside: avoid;
    }

    .project-card {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        border: 1px solid black !important;
        background: white !important;
        box-shadow: none !important;
    }

    .project-info {
        display: block !important;
        padding: 1rem;
        border-bottom: 1px solid #ccc;
    }

    .project-info h3 {
        color: black !important;
        font-size: 14pt;
        margin-bottom: 0.5rem;
    }

    .project-info p {
        color: black !important;
        font-size: 10pt;
        margin-bottom: 0.5rem;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .project-tags .tag {
        background: #e5e7eb !important;
        color: black !important;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
        font-size: 9pt;
        border: 1px solid #9ca3af;
    }

    /* Force expand all project content */
    .project-expanded-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .project-expanded-inner {
        padding: 1rem;
        color: black !important;
        font-size: 10pt;
        line-height: 1.6;
    }

    .project-expanded-inner p,
    .project-expanded-inner li {
        color: black !important;
    }

    .project-expanded-inner strong {
        color: black !important;
    }

    .project-expanded-inner a {
        color: #1e40af !important;
        text-decoration: underline;
    }

    /* Hide animated stats, show print-only stats */
    .stats-grid {
        display: none !important;
    }

    .print-only-experience {
        margin-top: 2rem;
    }

    .print-only-experience h3 {
        font-size: 16pt;
        color: black !important;
        margin-bottom: 1rem;
        border-bottom: 2px solid black;
        padding-bottom: 0.5rem;
    }

    .print-exp-item {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        padding: 1rem;
        border: 1px solid black;
        background: white !important;
    }

    .print-exp-item h4 {
        font-size: 13pt;
        color: black !important;
        margin-bottom: 0.5rem;
    }

    .print-exp-item p {
        color: black !important;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    .print-exp-item strong {
        color: black !important;
    }

    .print-only-stats {
        display: flex !important;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 1rem 0;
        padding: 1rem;
        border: 1px solid black;
        background: white !important;
    }

    .print-stat-item {
        flex: 1;
        min-width: 150px;
        text-align: center;
        color: black !important;
        font-size: 11pt;
    }

    .print-stat-item strong {
        display: block;
        font-size: 18pt;
        color: black !important;
        margin-bottom: 0.2rem;
    }

    /* Body styling */
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.7;
        color: #1e293b;
        background: #ffffff !important;
        padding: 0;
    }

    /* All sections with professional styling */
    .section {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: auto;
        padding: 1.5rem;
        background: #ffffff !important;
        display: block !important;
        margin-bottom: 2rem;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .section-title {
        font-size: 18pt;
        color: #2563eb !important;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: bold;
        border-bottom: 3px solid #2563eb !important;
        padding-bottom: 0.5rem;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
    }

    .section-title::after {
        display: none;
    }

    /* About section with better image handling */
    .about-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-text,
    .about-card {
        display: block !important;
        width: 100%;
    }

    .about-text p {
        margin-bottom: 1rem;
        color: #334155 !important;
        font-size: 10.5pt;
        line-height: 1.8;
    }

    .about-intro {
        font-size: 11.5pt !important;
        color: #1e293b !important;
    }

    .about-image-container,
    .about-image {
        display: block !important;
        max-width: 250px !important;
        margin: 1rem auto !important;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }

    .about-overlay {
        display: none !important;
    }

    .about-highlights {
        display: block !important;
        margin-top: 1rem;
    }

    .highlight-item {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        background: #f8fafc !important;
        border-radius: 8px;
        border-left: 4px solid #2563eb !important;
        border: 1px solid #e2e8f0 !important;
        border-left: 4px solid #2563eb !important;
    }

    .highlight-item svg {
        color: #2563eb !important;
        flex-shrink: 0;
    }

    .highlight-item span {
        color: #1e293b !important;
        font-size: 10.5pt;
    }

    /* Professional Experience Section */
    .experience-intro h3 {
        font-size: 14pt;
        color: #1e40af !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .experience-intro p {
        color: #334155 !important;
        margin-bottom: 1rem;
        line-height: 1.8;
        font-size: 10.5pt;
    }

    .experience-intro p strong {
        color: #0f172a !important;
        font-weight: 600;
    }

    /* Show print-only experience section with professional styling */
    .print-only-experience {
        display: block !important;
        margin-top: 2rem;
    }

    .print-only-experience h3 {
        font-size: 16pt;
        color: #2563eb !important;
        margin-bottom: 1.5rem;
        text-align: center;
        border-bottom: 3px solid #2563eb;
        padding-bottom: 0.5rem;
    }

    .print-exp-item {
        page-break-inside: avoid;
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: #ffffff !important;
        border-radius: 12px;
        border-left: 6px solid #ec4899 !important;
        border: 1px solid #e2e8f0 !important;
        border-left: 6px solid #ec4899 !important;
    }

    .print-exp-item h4 {
        font-size: 13pt;
        color: #ec4899 !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .print-exp-item p {
        color: #334155 !important;
        margin-bottom: 1rem;
        line-height: 1.8;
        font-size: 10.5pt;
    }

    .print-exp-item strong {
        color: #0f172a !important;
        font-weight: 600;
    }

    /* Leadership Section */
    .leadership-content h3 {
        font-size: 14pt;
        color: #1e40af !important;
        margin: 2rem 0 1rem 0;
        text-align: center;
    }

    .leadership-content p {
        color: #334155 !important;
        line-height: 1.8;
        margin-bottom: 1rem;
        font-size: 10.5pt;
    }

    .leadership-content strong {
        color: #0f172a !important;
        font-weight: 600;
    }

    /* Hide animated stats, show print-only stats */
    .stats-grid {
        display: none !important;
    }

    .stat-box {
        display: none !important;
    }

    .print-only-stats {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 1.5rem;
        background: #f8fafc !important;
        border-radius: 12px;
        border: 2px solid #2563eb !important;
    }

    .print-stat-item {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        text-align: center;
        padding: 1rem;
    }

    .print-stat-item strong {
        display: block;
        font-size: 18pt;
        color: #2563eb !important;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .print-stat-item {
        color: #64748b !important;
        font-size: 9pt;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Leadership Images for Print */
    .print-only-images {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .print-image-item {
        page-break-inside: avoid;
    }

    .print-image-item img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }

    /* Projects Section - Professional Styling */
    .projects-grid {
        display: block !important;
        page-break-inside: avoid;
    }

    .project-card {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: #ffffff !important;
        border-radius: 12px;
        border-left: 6px solid #ec4899 !important;
        border: 1px solid #e2e8f0 !important;
        border-left: 6px solid #ec4899 !important;
        box-shadow: none !important;
    }

    .project-image {
        display: none !important;
    }

    .project-info {
        display: block !important;
        padding: 0 0 1rem 0;
        border-bottom: none;
    }

    .project-info h3 {
        color: #ec4899 !important;
        font-size: 13pt;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .project-info p {
        color: #334155 !important;
        font-size: 10pt;
        margin-bottom: 0.75rem;
        line-height: 1.8;
    }

    .project-tags {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin: 1rem 0;
        justify-content: center;
    }

    .project-tags .tag {
        background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
        color: white !important;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 9pt;
        font-weight: 500;
        border: none !important;
    }

    /* Force expand all project content */
    .project-expanded-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .project-expanded-inner {
        padding: 1rem 0 0 0;
        color: #334155 !important;
        font-size: 10pt;
        line-height: 1.8;
    }

    .project-expanded-inner p,
    .project-expanded-inner li {
        color: #334155 !important;
        margin-bottom: 0.75rem;
    }

    .project-expanded-inner strong {
        color: #0f172a !important;
        font-weight: 600;
    }

    .project-expanded-inner a {
        color: #1e40af !important;
        text-decoration: underline;
    }

    .project-expanded-inner ul {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .project-expanded-inner li {
        margin-bottom: 0.5rem;
    }

    /* Skills Section - Professional Styling */
    .skills-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .skills-column h3 {
        color: #1e40af !important;
        font-size: 14pt;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .skill-list {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }

    .skill-item {
        display: flex !important;
        align-items: center;
        background: #f8fafc !important;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        font-size: 10pt;
        color: #1e293b !important;
        border-left: 4px solid #8b5cf6 !important;
        border: 1px solid #e2e8f0 !important;
        border-left: 4px solid #8b5cf6 !important;
    }

    .skill-item span {
        color: #1e293b !important;
    }

    .skill-item svg,
    .skill-item .skill-icon {
        display: none;
    }

    .skill-tags {
        display: flex !important;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .skill-tag {
        background: #f8fafc !important;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
        color: #1e293b !important;
        font-weight: 500;
        border-left: 4px solid #8b5cf6 !important;
        border: 1px solid #e2e8f0 !important;
        border-left: 4px solid #8b5cf6 !important;
        font-size: 10pt;
    }

    /* Hide elements not needed in print */
    .navbar,
    .hero,
    .particles,
    .hero-buttons,
    .social-links,
    .nav-toggle,
    .prev,
    .next,
    .prev-slide,
    .next-slide,
    .dot-container,
    .slideshow-dots,
    .lightbox,
    .video-modal,
    footer,
    #contact,
    .slideshow-container,
    .gallery-grid,
    .desktop-gallery,
    .mobile-slideshow,
    .professional-projects-grid,
    .professional-project-tile,
    .academic-project-tile,
    .expand-icon,
    .tile-preview,
    iframe,
    .video-container {
        display: none !important;
    }

    /* Hide video embeds */
    .project-expanded-inner iframe {
        display: none !important;
    }

    /* General text and heading styling */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Ensure proper spacing and page breaks */
    * {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Links - show URL for external links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #64748b !important;
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after,
    a[href^="mailto:"]:after,
    a[href^="tel:"]:after {
        content: "";
    }
}

/* Print mode class (applied before printing) */
.print-mode .professional-project-tile,
.print-mode .expandable-card {
    max-height: none !important;
    overflow: visible !important;
}

.print-mode .professional-project-tile .tile-content,
.print-mode .expandable-card .project-expanded-content,
.print-mode .professional-project-tile.expanded .tile-content,
.print-mode .expandable-card.expanded .project-expanded-content {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.print-mode .professional-project-tile .tile-preview {
    display: none !important;
}
