/**
 * Portfolio Styles
 * Shelby Cignetti - QA Engineer Portfolio
 * Dreamy purple theme with glassmorphism effects
 */

/* ========================================
   CSS Variables & Theme Colors
   ======================================== */
:root {
    --bg-primary: #e8d7f1;
    --bg-secondary: #d4b5e3;
    --bg-tertiary: #c9a8db;
    --accent-blue: #9b7ab8;
    --accent-cyan: #b999d4;
    --accent-purple: #c298dc;
    --text-primary: #4a2c5c;
    --text-secondary: #6b4a7d;
    --text-tertiary: #8e6ba8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* New dreamy theme colors */
    --lavender-light: #e8d7f1;
    --lavender-mid: #d4b5e3;
    --purple-soft: #b999d4;
    --purple-medium: #9b7ab8;
    --purple-dark: #7a5a96;
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(232, 215, 241, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(155, 122, 184, 0.2);
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
    box-shadow: 0 2px 10px rgba(155, 122, 184, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(185, 153, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(194, 152, 220, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(155, 122, 184, 0.2);
    border: 1px solid rgba(155, 122, 184, 0.4);
    border-radius: 50px;
    color: var(--purple-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.stat {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-medium);
    display: block;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-medium), var(--purple-soft));
    color: white;
    box-shadow: 0 0 30px rgba(155, 122, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(155, 122, 184, 0.6);
}

.btn-secondary {
    background: rgba(212, 181, 227, 0.5);
    color: var(--text-primary);
    border: 1px solid rgba(155, 122, 184, 0.4);
}

.btn-secondary:hover {
    background: rgba(212, 181, 227, 0.8);
    border-color: var(--purple-medium);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(194, 152, 220, 0.3);
    border: 1px solid rgba(194, 152, 220, 0.5);
    border-radius: 50px;
    color: var(--purple-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Skills Grid
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(155, 122, 184, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-medium), var(--purple-soft));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-medium);
    box-shadow: 0 20px 40px rgba(155, 122, 184, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(155, 122, 184, 0.15), rgba(185, 153, 212, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(155, 122, 184, 0.2);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(155, 122, 184, 0.35);
    background: linear-gradient(135deg, rgba(155, 122, 184, 0.25), rgba(185, 153, 212, 0.25));
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.skill-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(185, 153, 212, 0.2);
    border: 1px solid rgba(155, 122, 184, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--purple-dark);
    font-family: 'JetBrains Mono', monospace;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(155, 122, 184, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(155, 122, 184, 0.25);
    border-color: var(--purple-medium);
    background: rgba(255, 255, 255, 0.8);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(212, 181, 227, 0.5), rgba(185, 153, 212, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-bottom: 1px solid rgba(155, 122, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(168, 85, 247, 0.03) 10px,
        rgba(168, 85, 247, 0.03) 20px
    );
    animation: moveStripes 20s linear infinite;
}

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

.project-content {
    padding: 2rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(232, 215, 241, 0.5);
    border-radius: 8px;
}

.metric {
    flex: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-medium);
    display: block;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        var(--accent-blue),
        var(--accent-cyan),
        var(--accent-purple)
    );
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(155, 122, 184, 0.3);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--purple-medium);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(155, 122, 184, 0.6);
    z-index: 10;
}

.timeline-date {
    color: var(--purple-medium);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-content li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.timeline-item:nth-child(odd) .timeline-content li::before {
    left: auto;
    right: 0;
}

/* Highlighted achievement bullets */
.timeline-content li.highlight {
    background: linear-gradient(90deg, rgba(155, 122, 184, 0.08), transparent);
    border-left: 3px solid var(--purple-medium);
    padding: 0.75rem;
    padding-left: 1.5rem;
    margin-left: -0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.timeline-item:nth-child(odd) .timeline-content li.highlight {
    background: linear-gradient(270deg, rgba(155, 122, 184, 0.08), transparent);
    border-left: none;
    border-right: 3px solid var(--purple-medium);
    padding-left: 0.75rem;
    padding-right: 1.5rem;
    margin-left: 0;
    margin-right: -0.5rem;
}

.timeline-content li.highlight::before {
    color: var(--purple-medium);
    font-size: 1.1rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(155, 122, 184, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-medium);
    box-shadow: 0 20px 40px rgba(155, 122, 184, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--purple-medium);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--purple-dark);
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(155, 122, 184, 0.2);
    color: var(--text-secondary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 3rem;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content li {
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content li::before {
        left: 0;
        right: auto;
    }

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

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
