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

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

:root {
    --radius: 0.5rem;
    --background: hsl(222, 47%, 11%);
    --foreground: hsl(213, 31%, 91%);
    --card: hsl(222, 47%, 14%);
    --card-foreground: hsl(213, 31%, 91%);
    --popover: hsl(222, 47%, 14%);
    --popover-foreground: hsl(213, 31%, 91%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(222, 47%, 11%);
    --secondary: hsl(217, 19%, 27%);
    --secondary-foreground: hsl(213, 31%, 91%);
    --muted: hsl(217, 19%, 27%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(217, 19%, 27%);
    --accent-foreground: hsl(213, 31%, 91%);
    --destructive: hsl(0, 62%, 50%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(217, 19%, 27%);
    --input: hsl(217, 19%, 27%);
    --ring: hsl(217, 91%, 60%);
    --chart-1: hsl(217, 91%, 60%);
    --chart-2: hsl(142, 76%, 36%);
    --chart-3: hsl(47, 96%, 53%);
    --chart-4: hsl(280, 65%, 60%);
    --chart-5: hsl(340, 75%, 55%);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Georgia', serif;
    --font-mono: 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

/* Header */
.header {
    border-bottom: 1px solid var(--border);
    background-color: rgba(var(--card), 0.5);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text h1 {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1;
}

.desktop-nav {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.nav-link.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--accent);
}

.mobile-menu {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-align: left;
}

.mobile-nav-link:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.mobile-nav-link.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
}

.hero-content {
    max-width: 4rem;
    margin: 0 auto;
    text-align: center;
}

.hero-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-placeholder span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-foreground);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 4rem;
    margin: 0 auto;
}

.social-link {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background-color: var(--accent);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -4px rgba(59, 130, 246, 0.2);
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.5rem;
}

.social-icon.linkedin { color: #0077b5; }
.social-icon.github { color: var(--foreground); }
.social-icon.medium { color: var(--foreground); }
.social-icon.youtube { color: #ff0000; }
.social-icon.topmate { color: #10b981; }
.social-icon.tableau { color: #e97627; }

.social-link p {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: hsl(217, 91%, 55%);
}

.btn-secondary {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-header h3, .card-header h4 {
    font-weight: 600;
    color: var(--card-foreground);
    margin: 0;
}

.card-content {
    padding: 1.5rem;
}

.card-content:first-child {
    padding-top: 1.5rem;
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-github-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-github-link:hover {
    color: hsl(217, 91%, 55%);
}

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0 6rem;
    border-top: 1px solid var(--border);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon i {
    width: 2rem;
    height: 2rem;
    color: #16a34a;
}

.contact-success h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-success p {
    color: var(--muted-foreground);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--input);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

/* Contact Info */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: hsl(217, 91%, 55%);
}

.follow-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.follow-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

.follow-links i {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background-color: rgba(var(--card), 0.5);
    padding: 2rem 0;
}

.footer-content {
    max-width: 4rem;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Section Styles */
.projects-section,
.experience-section,
.about-section {
    padding: 4rem 0 6rem;
}

.projects-section {
    background-color: rgba(var(--muted), 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.projects-footer {
    text-align: center;
}

/* Experience Styles */
.experience-subsection {
    margin-bottom: 3rem;
}

.subsection-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.subsection-header i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.subsection-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.education-grid,
.bootcamps-grid {
    display: grid;
    gap: 1.5rem;
}

.institution,
.company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.period {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.program {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.location {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--border);
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--background);
    box-shadow: 0 0 0 4px var(--background), 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-badge {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

/* Community Styles */
.community-card {
    background-color: rgba(var(--muted), 0.5);
}

.community-grid {
    display: grid;
    gap: 1.5rem;
}

.community-item {
    text-align: center;
}

.community-item i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin: 0 auto 0.75rem;
}

.community-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.community-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* About Styles */
.about-hero {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-avatar {
    aspect-ratio: 1;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, rgba(var(--primary), 0.2), rgba(var(--accent), 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.6;
}

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

.skill-tag {
    background-color: rgba(var(--primary), 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.articles-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.podcast-grid {
    display: grid;
    gap: 1.5rem;
}

.podcast-item {
    text-align: center;
}

.podcast-item i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin: 0 auto 0.75rem;
}

.podcast-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.podcast-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-content {
        max-width: 4rem;
    }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 4rem;
    }

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

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

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

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

    .timeline-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

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

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

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

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0 8rem;
    }

    .social-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .projects-section,
    .experience-section,
    .about-section {
        padding: 6rem 0 8rem;
    }

    .contact-section {
        padding: 6rem 0 8rem;
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu {
    animation: slideDown 0.2s ease-out;
}

/* Loading animation for buttons */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loading {
    animation: spin 1s linear infinite;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
