/* 
   Portfolio Stylesheet for Aryaveer Lohia
   Theme: Modern Dark with Electric Blue Accents
*/

/* 1. CSS VARIABLES */
:root {
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --bg-lighter: #233554;
    --accent: #64ffda; /* Cyan accent */
    --accent-glow: rgba(100, 255, 218, 0.1);
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --text-bright: #e6f1ff;
    --white: #ffffff;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --border-radius: 8px;
    --container-width: 1100px;
}

/* 2. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 5vw, 32px);
    color: var(--text-bright);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: var(--bg-lighter);
    margin-left: 20px;
}

.accent-text {
    color: var(--accent);
}

/* 3. SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-lighter);
    border-radius: 5px;
    border: 3px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* 4. PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-bar {
    width: 100px;
    height: 2px;
    background: var(--bg-lighter);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* 5. PARTICLES BACKGROUND */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 6. NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo .monogram {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-bright);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

/* 7. HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-badge {
    background: var(--bg-light);
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 70px);
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(20px, 4vw, 32px);
    color: var(--text-dim);
    margin-bottom: 30px;
}

.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    max-width: 540px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    color: var(--text-dim);
    border: 1px solid var(--bg-lighter);
}

.btn-secondary:hover {
    color: var(--text-bright);
    border-color: var(--text-bright);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 25px;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-dim);
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-dim);
    border-radius: 15px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* 8. ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.avatar-card {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--bg-lighter);
    overflow: hidden; /* Ensure image doesn't bleed out */
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: var(--border-radius);
}

.avatar-initials {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 30px rgba(100, 255, 218, 0.05);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-dim);
}

.about-text strong {
    color: var(--accent);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-badge {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* 9. SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.skill-icon-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.skill-icon-header h3 {
    font-family: var(--font-heading);
    color: var(--text-bright);
}

.skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(35, 53, 84, 0.5);
}

.skill-list li:last-child {
    border-bottom: none;
}

.tag-comfort, .tag-familiar, .tag-learning {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tag-comfort { background: rgba(100, 255, 218, 0.1); color: var(--accent); }
.tag-familiar { background: rgba(230, 241, 255, 0.1); color: var(--text-bright); }
.tag-learning { background: rgba(136, 146, 176, 0.1); color: var(--text-dim); }

/* 10. PROJECTS SECTION */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-title {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-stack span {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--accent);
    background: rgba(100, 255, 218, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    color: var(--accent);
}

/* 11. JOURNEY SECTION */
.journey-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.roadmap-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    position: relative;
}

.roadmap-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    width: 2px;
    height: calc(100% - 10px);
    background: var(--bg-lighter);
}

.roadmap-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--bg-lighter);
    flex-shrink: 0;
    z-index: 1;
}

.roadmap-icon.done { border-color: var(--accent); color: var(--accent); }
.roadmap-icon.working { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.roadmap-icon.learning { border-color: var(--text-dim); color: var(--text-dim); }

.roadmap-content h4 {
    color: var(--text-bright);
    margin-bottom: 5px;
}

.roadmap-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-lighter);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
}

.journey-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    color: var(--text-bright);
    font-style: italic;
    line-height: 1.3;
    position: relative;
    padding-left: 30px;
}

.journey-quote blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 80px;
    color: var(--accent);
    opacity: 0.2;
}

/* 12. CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-lighter);
}

.contact-card i {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: 4px;
    color: var(--text-bright);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn-block {
    width: 100%;
}

/* 13. FOOTER */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--bg-lighter);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--accent);
}

/* 14. UTILITIES & ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--bg-lighter);
    color: var(--accent);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

/* 15. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    :root { --nav-height: 70px; }
    .about-grid, .journey-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    .journey-quote {
        order: -1;
        text-align: center;
    }
    .journey-quote blockquote::before { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(2, 12, 27, 0.7);
    }
    .nav-links.open {
        right: 0;
    }
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    .nav-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--accent);
        margin: 6px 0;
        transition: var(--transition);
    }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

    .hero-actions {
        flex-direction: column;
    }
    .section-title::after { width: 100px; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 20px; }
    .nav-links { width: 100%; }
}
