/* 
===============================================
   Yashsvi Goel - SolidWorks Portfolio
   Premium Aesthetic Design System
===============================================
*/

:root {
    --bg-color: #050508;
    --text-main: #f0f0f5;
    --text-muted: #8e8e9e;
    --accent-color: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --accent-secondary: #7000ff;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    --font-main: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%; left: -5%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

.orb-2 {
    top: 30%; right: -10%;
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

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

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 span, h2 span {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #00a2ff);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-highlight);
}

.btn-outline:hover {
    background: var(--glass-highlight);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 100px; /* Offset for nav */
}

.hero-content {
    max-width: 550px;
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.main-visual-panel {
    width: 500px;
    height: auto;
    padding: 1.5rem;
    position: relative;
    border-radius: 24px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-visual-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.visual-placeholder {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-highlight);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 10%; left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%; right: -5%;
    animation-delay: 1s;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-color);
    font-weight: 500;
}

/* Timeline Components */
.about-timeline {
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
}

.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid var(--glass-highlight);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-degree {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.timeline-school {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-detail {
    color: #a0a0b8;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Skills & Experience Layout */
.skills-exp {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Skills Formatting */
.skill-category {
    margin-bottom: 2.5rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.cat-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.skill-tag {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-tag.primary {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.skill-tag.secondary {
    background: rgba(112, 0, 255, 0.1);
    color: #b07cff;
    border: 1px solid rgba(112, 0, 255, 0.2);
}

.skill-tag.soft {
    background: rgba(255, 255, 255, 0.05);
    color: #d0d0d8;
    border: 1px solid var(--glass-border);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.skill-tag.primary:hover { border-color: var(--accent-color); }
.skill-tag.secondary:hover { border-color: var(--accent-secondary); }

/* Experience Cards */
.exp-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-card {
    padding: 2rem;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.exp-card:hover {
    border-left-color: var(--accent-secondary);
    transform: translateX(5px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-title {
    font-size: 1.3rem;
    color: var(--text-main);
}

.exp-date {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    background: rgba(112, 0, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.exp-org {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.exp-list {
    list-style: none;
    padding-left: 0;
}

.exp-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--glass-highlight);
}

/* Projects Section Updates */
.projects {
    padding-top: 4rem;  /* adjusted spacing between sections */
}

/* Projects Section */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,240,255,0.1);
}

.project-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-text {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-card:hover .view-text {
    transform: translateY(0);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
}

.cta-panel {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,240,255,0.05));
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    background: #020204;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-grid, .skills-exp { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3.5rem; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; }
    .nav-links { display: none; }
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-content { margin-bottom: 3rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-actions { justify-content: center; }
    .main-visual-panel { width: 100%; transform: none; padding: 1rem; }
    .main-visual-panel:hover { transform: translateY(-5px); }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    
    .section-title { font-size: 2.2rem; }
    .about-timeline { padding: 1.5rem; }
    .timeline-item { padding-left: 1.5rem; padding-bottom: 2rem; }
    .cta-panel { padding: 3rem 1.5rem; }
    .cta-title { font-size: 2rem; }
}
