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

:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

.text-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-purple);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.text-link:hover {
    color: var(--accent-purple);
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Fluid Background */
.fluid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #ffffff;
    overflow: hidden;
}

#mouse-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(59, 130, 246, 0.3) 30%, rgba(236, 72, 153, 0.2) 60%, transparent 80%);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: opacity 0.5s;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
    animation-delay: 2s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    animation-delay: 4s;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-badge {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 280px; /* Prevent layout shift */
    justify-content: center;
}

#role-badge {
    display: inline-block;
    min-width: 150px;
    text-align: left;
    transition: opacity 0.3s;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1a1a 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Navigation Cards */
.nav-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
}

.nav-card {
    background: var(--card-bg);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    min-width: 120px;
}

.nav-card i {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-purple);
}

/* LinkedIn Button */
.linkedin-btn {
    background: #ffffff;
    padding: 0.5rem 0.5rem 0.5rem 2rem; /* Adjusted padding */
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 380px;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600; /* Bolder text */
}

.linkedin-btn:hover {
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.15);
    border-color: #0077b5;
    transform: translateY(-2px);
}

.linkedin-btn .search-btn {
    background: #0077b5;
    color: white;
    width: 48px; /* Larger button */
    height: 48px;
    font-size: 1.5rem; /* Larger icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
section {
    padding: 4rem 0;
    width: 100%;
}

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

/* Experience Timeline (Light) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company-date {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
    background: #eff6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-pink);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.info-item i {
    color: var(--accent-purple);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-title { 
        font-size: 2.5rem; 
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-badge {
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    #role-badge {
        min-width: auto;
    }
    
    /* Navigation */
    .nav-grid { 
        gap: 1rem; 
    }
    
    .nav-card { 
        padding: 1rem 1.5rem; 
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .nav-card i {
        font-size: 1.2rem;
    }
    
    /* LinkedIn Button */
    .linkedin-btn {
        max-width: 100%;
        padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    }
    
    .linkedin-btn .search-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding: 1.5rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .role-title {
        font-size: 1.1rem;
    }
    
    .company-date {
        font-size: 0.85rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-icon {
        font-size: 1.5rem;
    }
    
    /* Contact */
    .contact-container {
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        min-width: 100%;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .info-item {
        font-size: 1rem;
    }
    
    /* Background blobs - reduce size on mobile */
    .blob-1,
    .blob-2,
    .blob-3 {
        width: 300px;
        height: 300px;
    }
    
    #mouse-glow {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-card {
        padding: 0.75rem 1rem;
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .timeline-item,
    .project-content,
    .contact-form {
        padding: 1.25rem;
    }
}
