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

:root {
    --primary: #0080FF;
    --primary-dark: #0066CC;
    --secondary: #00A3FF;
    --accent: #00D4FF;
    --accent-secondary: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-light: #fafbfc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 128, 255, 0.15);
    --shadow: rgba(0, 128, 255, 0.1);
    --shadow-hover: rgba(0, 128, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 128, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 163, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: -2;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 128, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 128, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 128, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.1), rgba(0, 163, 255, 0.1));
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 128, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 128, 255, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 20px var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 128, 255, 0.3);
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    padding: 4px;
    box-shadow: 0 8px 32px var(--shadow-hover);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    background: white;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.3), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Stats Section */
.stats {
    padding: 60px 0;
}

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

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(0, 128, 255, 0.4);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Styles */
.experience, .apps, .contact {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    transform: translateX(8px);
    border-color: rgba(0, 128, 255, 0.4);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

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

.timeline-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.timeline-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.1), rgba(0, 163, 255, 0.1));
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 8px;
}

.timeline-list {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.08), rgba(0, 212, 255, 0.08));
    border: 1px solid rgba(0, 128, 255, 0.25);
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.15), rgba(0, 212, 255, 0.15));
    transform: translateY(-2px);
    border-color: rgba(0, 128, 255, 0.4);
}

/* Apps Section */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
}

.app-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    border-color: rgba(0, 128, 255, 0.4);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-icon svg {
    width: 100%;
    height: 100%;
}

.app-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

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

/* Contact Section */
.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
}

.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 128, 255, 0.4);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 128, 255, 0.6);
}

.contact-btn svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .timeline-date {
        align-self: flex-start;
    }
}

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

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .section-title {
        font-size: 32px;
    }

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

    .timeline-content {
        padding: 24px;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .timeline-header h3 {
        font-size: 20px;
    }

    .timeline-header h4 {
        font-size: 16px;
    }

    .app-card {
        padding: 30px 20px;
    }
}
