/* ================================================
   PORTFOLIO CSS - Arpitha R
   A modern, colorful single-page portfolio
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
    /* Primary Colors */
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    
    /* Accent Colors */
    --accent-blue: #0ea5e9;
    --accent-teal: #14b8a6;
    --accent-coral: #f97316;
    --accent-pink: #ec4899;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Section Backgrounds */
    --bg-hero: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --bg-about: #f8fafc;
    --bg-skills: #ffffff;
    --bg-experience: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --bg-projects: #f8fafc;
    --bg-contact: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------- Navigation -------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
}

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

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu.active {
    display: block;
}

/* -------------------- Hero Section -------------------- */
.hero-section {
    min-height: 100vh;
    background: var(--bg-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Code Window Illustration */
.hero-illustration {
    margin: 40px auto;
    max-width: 500px;
}

.code-window {
    background: var(--gray-900);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.window-dots {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-800);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #22c55e; }

.code-content {
    padding: 20px 24px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-300);
    text-align: left;
}

.code-content .keyword { color: #c084fc; }
.code-content .class-name { color: #fbbf24; }
.code-content .string { color: #34d399; }


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin: 10px auto 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* -------------------- Section Shared Styles -------------------- */
.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 16px auto 0;
}

/* -------------------- About Section -------------------- */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--bg-about);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-text {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

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

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* -------------------- Skills Section -------------------- */
.skills-section {
    padding: var(--section-padding) 0;
    background: var(--bg-skills);
}

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

.skill-category {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skill-name {
    width: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pill.azure {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0369a1;
}

.pill.devops {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}

/* -------------------- Experience Section -------------------- */
.experience-section {
    padding: var(--section-padding) 0;
    background: var(--bg-experience);
    color: var(--white);
}

.experience-section .section-tag {
    color: rgba(255, 255, 255, 0.7);
}

.experience-section .section-title {
    color: var(--white);
}

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

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.timeline-info .role {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-info .company {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.timeline-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.timeline-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.timeline-achievements {
    margin-bottom: 20px;
}

.timeline-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
}

.timeline-achievements li strong {
    color: var(--white);
}

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

.timeline-tech span {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
}

/* -------------------- Projects Section -------------------- */
.projects-section {
    padding: var(--section-padding) 0;
    background: var(--bg-projects);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.project-card {
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 410px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
}

.project-card.featured .project-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.project-card.featured .detail-label {
    color: rgba(255, 255, 255, 0.7);
}

.project-card.featured .project-tech span {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.project-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    width: fit-content;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: inherit;
    line-height: 1.25;
    min-height: 90px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:not(.featured) .project-title {
    color: var(--gray-800);
}

.project-description {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 10px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 120px;
}

.project-details {
    margin-bottom: 24px;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 15px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    min-height: 58px;
    max-height: 58px;
    overflow: hidden;
}

.project-tech span {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-full);
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.project-link:hover {
    text-decoration: underline;
}

/* -------------------- Contact Section -------------------- */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--bg-contact);
    color: var(--white);
}

.contact-section .section-tag {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

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

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    color: var(--white);
}

.contact-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
}

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

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.resume-email-input {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    min-width: 260px;
    transition: border-color 0.2s ease;
}

.resume-email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.resume-email-input:focus {
    border-color: var(--white);
}

textarea.resume-email-input {
    border-radius: 12px;
    min-width: unset;
    padding: 12px 16px;
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--gray-900);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
}

.footer-social a:hover svg {
    color: var(--white);
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .code-content {
        font-size: 12px;
        padding: 16px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-header {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: 1;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .chatbot-widget {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 100px 16px 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .skill-name {
        width: auto;
    }
    
    .skill-bar {
        width: 100%;
    }
}
.hero-photo-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.hero-profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(255, 255, 255, 0.4);
    display: block;
}
img.hero-profile-img {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(255, 255, 255, 0.4);
    display: block;
    margin: 40px auto 0;
    max-width: 160px !important;
}
