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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s, box-shadow 0.3s;
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(30, 41, 59, 0.98); /* solid dark blue */
    box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.navbar.scrolled .nav-menu {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.navbar.scrolled .nav-link {
    color: #e0e7ff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    background: rgba(30, 41, 59, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-link {
    color: #e0e7ff;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s, font-weight 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #60a5fa;
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/img1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 120px;
    position: relative;
    transition: background-image 0.8s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 40px;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-text {
    text-align: left;
    max-width: 600px;
    margin-left: 20px;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-container {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.typing-line {
    min-height: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.typing-text {
    color: #e0e7ff;
}

.cursor {
    display: inline;
    color: #e0e7ff !important;
    animation: blink 1s steps(1) infinite !important;
    -webkit-animation: blink 1s steps(1) infinite !important;
    font-size: inherit;
    font-weight: inherit;
    vertical-align: baseline;
    will-change: opacity;
}

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

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

.static-text {
    color: #e0e7ff;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.skill-tag {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Work Section */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

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

.work-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.work-image i {
    font-size: 1.5rem;
    color: white;
}

.work-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-content h3 {
    margin: 15px 0 10px 0;
    color: #333;
    height: 2.6em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    text-align: justify;
}

.work-tags {
    margin-bottom: 15px;
}

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.work-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 16px;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.work-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

.work-links-row {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.work-link {
    display: inline-flex;
    width: auto;
    min-width: 0;
    padding: 0.5em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #6366f1 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.work-link:hover,
.work-link:focus {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    text-decoration: none;
    outline: none;
}

/* Research Section */
.research {
    background: #f8fafc;
}

.research-content {
    max-width: 800px;
    margin: 0 auto;
}

.research-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.research-item:hover {
    transform: translateX(10px);
}

.research-year {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    height: fit-content;
    min-width: 80px;
    text-align: center;
}

.research-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.research-details p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 1px;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e5e7eb;
}

.timeline-date {
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.timeline-company {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #2563eb;
    width: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .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;
    }

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

    .hero-content {
        text-align: left;
    }

    .hero-text {
        text-align: left;
    }

    .typing-container {
        align-items: flex-start;
    }

    .typing-line {
        justify-content: flex-start;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .typing-container {
        font-size: 1.1rem;
        min-height: 3.5rem;
    }

    .static-text {
        font-size: 1.2rem;
    }

    /* Story Section Mobile */
    .story-gallery {
        height: auto;
        flex-direction: column;
    }

    .story-item {
        position: relative;
        opacity: 1;
        display: none;
        flex-direction: column;
        height: auto;
    }

    .story-item.active {
        display: flex;
    }

    .story-media {
        height: 300px;
    }

    .story-content {
        padding: 2rem;
    }

    .story-content h3 {
        font-size: 1.5rem;
    }

    .story-content p {
        font-size: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .research-item {
        flex-direction: column;
        gap: 1rem;
    }

    .research-year {
        align-self: flex-start;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 1px;
    }

    /* Photo Indicators Mobile */
    .photo-indicators {
        bottom: 20px;
    }

    .photo-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .typing-container {
        font-size: 1rem;
        min-height: 3rem;
    }

    .static-text {
        font-size: 1.1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

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

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

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

/* Story Section */
.story {
    background: #f8fafc;
    padding: 80px 0;
}

.story-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.story-option {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-option h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.story-option p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-option .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.story-embed-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 2rem;
}

.embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.embed-header h3 {
    font-size: 1.1rem;
}

.close-embed {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-embed:hover {
    background: #e5e7eb;
    color: #374151;
}

.story-embed {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.story-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Story Section */
.story-gallery {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.story-item.active {
    opacity: 1;
}

.story-media {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-item:hover .story-image {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.story-overlay i {
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.story-content {
    flex: 1;
    padding: 3rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
}

.story-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

.nav-btn {
    background: #2563eb;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.story-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

/* Story Section Mobile */
.story-options {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.story-option {
    padding: 2rem;
}

.story-embed {
    height: 400px;
}

.embed-header {
    padding: 1rem 1.5rem;
}

.embed-header h3 {
    font-size: 1.1rem;
}

/* Photo Indicators */
.photo-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.photo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-dot.active {
    background: white;
    transform: scale(1.2);
}

.photo-dot:hover {
    background: rgba(255, 255, 255, 0.8);
} 

.scroll-down-arrow {
    position: absolute;
    left: 40px;
    bottom: 40px;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-down-arrow:hover {
    transform: translateY(4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.scroll-down-arrow svg {
    display: block;
}
@media (max-width: 768px) {
    .scroll-down-arrow {
        left: 16px;
        bottom: 16px;
    }
} 

/* Presentations Section Layout */
.youtube-videos {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.youtube-video-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}
.youtube-video-col {
  flex: 1 1 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.youtube-video-col iframe {
  width: 100%;
  height: 315px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.youtube-desc-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.youtube-desc-col h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.youtube-desc-col p {
  margin: 0.2rem 0 0.7rem 0;
  font-size: 1rem;
  color: #333;
  text-align: justify;
}
@media (max-width: 900px) {
  .youtube-video-row {
    flex-direction: column;
    gap: 1rem;
  }
  .youtube-video-col, .youtube-desc-col {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .youtube-video-col iframe {
    height: 215px;
  }
} 