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

:root {
    --bg-color: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-color: #2563EB;
    --accent-glow: rgba(37, 99, 235, 0.3);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #8B5CF6;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

.gradient-text {
    background: linear-gradient(to right, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links a {
    color: #f1f5f9;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 100%;
    max-width: 400px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    /* Improve contrast and visual pop directly via CSS filter */
    filter: contrast(1.1) saturate(1.1);
    transition: transform 0.5s ease;
}

.profile-pic:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* Sections */
section {
    padding: 5rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Cards (Glassmorphism) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.2rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* NDA Notice Box */
.nda-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.nda-notice h4 {
    color: #FBBF24;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none; /* JS toggles this */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--accent-color), #8B5CF6);
    color: white;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #8B5CF6, var(--accent-color));
}

@media (max-width: 768px) {
    /* Typography */
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    /* Navigation */
    nav { padding: 1rem 5%; }
    .nav-links { display: none; }
    
    /* Section Padding */
    section { padding: 3rem 5%; }
    
    /* Hero Section Stacking */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
        gap: 2rem;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        width: 100%;
        max-width: 250px;
    }

    /* Cards Stacking */
    .grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery Grid Stacking */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        height: 150px;
    }
}

/* Very Small Mobile Phones */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
}
