/* ═══════════════════════════════════════════
   gauravyadav.dev — Home Page Styles
   ═══════════════════════════════════════════ */

/* ─── HERO ─── */
.hero { text-align: center; }

.hero-label {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease forwards 0.2s;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.4s;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 12px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.6s;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.75s;
}

.hero-tagline span { color: var(--accent-green); }

.hero .buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.85s;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 1s;
}

.hero-stat { text-align: center; }

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

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

/* ─── ABOUT TEXT ─── */
.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), transparent);
}

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

/* ─── SKILLS GRID ─── */
.skills-section { margin-top: 48px; }

.skills-section-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cat-color, var(--accent-cyan)), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-category:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.05);
}

.skill-category:hover::before { opacity: 1; }

.skill-cat-icon {
    font-size: 28px;
    margin-bottom: 14px;
    color: var(--cat-color, var(--accent-cyan));
    filter: drop-shadow(0 0 8px var(--cat-color, var(--accent-cyan)));
    transition: transform 0.3s ease;
}

.skill-category:hover .skill-cat-icon { transform: scale(1.15); }

.skill-cat-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

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

.skill-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(0, 229, 255, 0.06);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.12);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.skill-tag.highlight {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.3);
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
}

/* ─── EXPERIENCE TIMELINE ─── */
.timeline {
    position: relative;
    padding-left: 36px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -42px; top: 8px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg-deepest);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

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

.timeline-role {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.timeline-company {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(0, 229, 255, 0.06);
    padding: 4px 12px;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.responsibilities li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 14px;
}

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

/* ─── PROJECTS GRID ─── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.08);
}

.project-icon-bar {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.03), rgba(41, 121, 255, 0.03));
    border-bottom: 1px solid var(--border-subtle);
}

.project-icon-bar i {
    font-size: 44px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.4));
    transition: transform 0.4s ease;
}

.project-card:hover .project-icon-bar i { transform: scale(1.15) rotate(-5deg); }

.project-body { padding: 24px; }

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.project-tech span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    opacity: 0.7;
}

/* ─── CONTACT GRID ─── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.contact-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-card i {
    font-size: 22px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
    width: 28px;
    text-align: center;
}

.contact-card a,
.contact-card span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-card:hover a,
.contact-card:hover span { color: var(--text-primary); }

/* ─── MODAL ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 16, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 229, 255, 0.15);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* ─── HOME RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats { gap: 24px; }
    .hero-stat-value { font-size: 1.8rem; }
    .hero .buttons { flex-direction: column; align-items: center; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .timeline-header { flex-direction: column; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
