/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.nav-brand.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3b82f6;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-tags span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #ef4444);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.timeline-section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #ef4444);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item.left {
    justify-content: flex-end;
}

.timeline-item.right {
    justify-content: flex-start;
}

.timeline-content {
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.gradient-item .timeline-content {
    background: linear-gradient(135deg, #f1f5f9, #fef2f2);
    border: 2px solid #3b82f6;
}

.timeline-item.left .timeline-content {
    margin-right: 8rem;
}

.timeline-item.right .timeline-content {
    margin-left: 8rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e2e8f0;
    z-index: 10;
}

.timeline-dot.blue { background: #3b82f6; }
.timeline-dot.green { background: #10b981; }
.timeline-dot.purple { background: #8b5cf6; }
.timeline-dot.yellow { background: #f59e0b; }
.timeline-dot.indigo { background: #6366f1; }
.timeline-dot.red { background: #ef4444; }
.timeline-dot.gray { background: #6b7280; }
.timeline-dot.orange { background: #f97316; }
.timeline-dot.gold { background: #eab308; }
.timeline-dot.teal { background: #14b8a6; }
.timeline-dot.cyan { background: #06b6d4; }
.timeline-dot.lime { background: #84cc16; }
.timeline-dot.emerald { background: #10b981; }
.timeline-dot.gradient { background: linear-gradient(135deg, #3b82f6, #ef4444); }

.year {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

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

.timeline-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Position years on left-side cards to the right to avoid dot overlap */
.timeline-item.left .timeline-content {
    position: relative;
}

.timeline-item.left .year {
    position: absolute;
    right: 2rem;
    top: 2rem;
    margin-bottom: 0;
}

.timeline-item.left .timeline-content h3 {
    margin-top: 2rem;
}

/* Adjust spacing for right-side cards */
.timeline-item.right .year {
    margin-bottom: 0.5rem;
}

/* Companies Section */
.companies-section {
    padding: 6rem 0;
    background: white;
}

.companies-section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

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

.company-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.company-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.company-info {
    padding: 2rem;
}

.company-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.company-info p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 15px;
}

.tag.green { background: #dcfce7; color: #166534; }
.tag.blue { background: #dbeafe; color: #1e40af; }
.tag.purple { background: #f3e8ff; color: #7c3aed; }
.tag.yellow { background: #fef3c7; color: #92400e; }
.tag.red { background: #fee2e2; color: #dc2626; }
.tag.indigo { background: #e0e7ff; color: #4338ca; }
.tag.orange { background: #fed7aa; color: #c2410c; }

.company-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: #1d4ed8;
}

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

.info-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.info-card.achievements {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.gallery-section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

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

/* Connect Section */
.connect-section {
    padding: 6rem 0;
    background: white;
}

.connect-section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.connect-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.connect-info {
    space-y: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: #64748b;
}

.interest-areas {
    margin-top: 2rem;
}

.interest-areas h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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

.linkedin-connect {
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedin-card {
    background: linear-gradient(135deg, #f1f5f9, #e0f2fe);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #0ea5e9;
    max-width: 400px;
    width: 100%;
}

.linkedin-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.linkedin-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.linkedin-card p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.linkedin-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.linkedin-button:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-linkedin {
    color: #3b82f6;
    font-weight: 600;
}

.footer-linkedin:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

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

/* Responsive Design */
@media (min-width: 1400px) {
    .timeline-item.left .timeline-content {
        margin-right: 12rem;
    }

    .timeline-item.right .timeline-content {
        margin-left: 12rem;
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .timeline-item.left .timeline-content {
        margin-right: 10rem;
    }

    .timeline-item.right .timeline-content {
        margin-left: 10rem;
    }
}

@media (max-width: 1199px) and (min-width: 1025px) {
    .timeline-item.left .timeline-content {
        margin-right: 8rem;
    }

    .timeline-item.right .timeline-content {
        margin-left: 8rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .timeline-item.left .timeline-content {
        margin-right: 6rem;
    }

    .timeline-item.right .timeline-content {
        margin-left: 7rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 150px;
    }
    
    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .connect-content {
        grid-template-columns: 1fr;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .hero-tags span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .timeline-content,
    .linkedin-card {
        padding: 1.5rem;
    }
    
    .company-info {
        padding: 1.5rem;
    }
}

/* Scroll behavior improvements */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}