/* ==========================================
   SYED TAHA ALAM - PORTFOLIO
   Vibrant, Warm, Professional Design
   ========================================== */

:root {
    /* Vibrant Color Palette */
    --bg-primary: #0f0f13;
    --bg-secondary: #16161d;
    --bg-card: #1c1c26;
    --bg-card-hover: #242432;

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Gradient Colors */
    --gradient-start: #8b5cf6;
    --gradient-mid: #d946ef;
    --gradient-end: #f97316;
    --gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));

    /* Accent Colors */
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;

    /* Category Colors */
    --healthcare: #10b981;
    --fintech: #3b82f6;
    --finance: #f59e0b;
    --banking: #f50b0b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-radius: 16px;
    --border-radius-lg: 24px;

    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --transition: 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* Gradient Text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--gradient-start);
    background: rgba(139, 92, 246, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-desc strong {
    color: var(--text-primary);
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 4px solid var(--bg-card-hover);
    padding: 16px;
    position: relative;
    box-shadow:
        0 50px 100px rgba(139, 92, 246, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e2e 0%, #2d1f47 100%);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon.kotlin {
    background: linear-gradient(135deg, #7c3aed, #c084fc);
}

.app-icon.compose {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
}

.app-icon.flutter {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* ==========================================
   SECTION COMMON
   ========================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.about-text strong {
    color: var(--text-primary);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 16px;
}

.location-badge svg {
    color: var(--accent-pink);
}

.tech-stack {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.tech-stack h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.tech-icon {
    font-size: 1.25rem;
}

/* ==========================================
   PROJECTS
   ========================================== */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.project-card.healthcare::before {
    background: var(--healthcare);
}

.project-card.fintech::before {
    background: var(--fintech);
}

.project-card.finance::before {
    background: var(--finance);
}

.project-card.banking::before {
    background: var(--banking);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    margin-bottom: 20px;
    width: fit-content;
}

.healthcare .project-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--healthcare);
}

.fintech .project-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--fintech);
}

.finance .project-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--finance);
}

.banking .project-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--banking);
}

.project-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 20px;
}

.healthcare .project-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--healthcare);
}

.fintech .project-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--fintech);
}

.finance .project-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--finance);
}

.banking .project-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--banking);
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-purple);
}

.project-card:hover .project-link {
    gap: 12px;
}

/* ==========================================
   EXPERIENCE
   ========================================== */
.experience {
    background: var(--bg-secondary);
}

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

.timeline-item {
    display: flex;
    gap: 24px;
    padding-bottom: 40px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--gradient);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-content {
    flex: 1;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

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

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(168, 85, 247, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.timeline-role {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card:nth-child(4) {
    grid-column: 2;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-card:hover {
        transform: translateY(-4px);
    }

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

    .card:nth-child(4) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    section {
        padding: 80px 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat {
        min-width: 80px;
    }

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

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

    .timeline-item {
        flex-direction: column;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .project-card {
        padding: 24px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-header {
        flex-direction: column;
    }
}