/* 
 * Ravi Rathod - Developer Portfolio 
 * Style Sheet (Renaissance Light Theme)
 */

/* =========================================
   CSS Variables
   ========================================= */
:root {
    --bg-color: #f8fafc;
    --primary: #0f172a; /* Slate 900 */
    --accent: #6366f1; /* Indigo 500 */
    --accent-glow: rgba(99, 102, 241, 0.5);
    --secondary: #64748b;
    --border-light: rgba(255, 255, 255, 0.5);
    --surface: rgba(255, 255, 255, 0.6);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.08);
    --glass-blur: blur(24px);
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg-color: #020617; /* Slate 950 */
    --primary: #f8fafc;
    --accent: #818cf8; /* Indigo 400 */
    --accent-glow: rgba(129, 140, 248, 0.4);
    --secondary: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --surface: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.6);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

/* =========================================
   Custom Cursor (Minimalist)
   ========================================= */
.cursor-dot {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

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

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

/* Updated Text Utilities for Clean Theme */
.text-gradient {
    /* Using background clipping for a gorgeous premium text gradient */
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.glow-text {
    text-shadow: none;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff; /* Always white text on accent color button */
    border: 1px solid var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
}

/* Premium Cards */
.glass-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
}

/* =========================================
   Scroll Progress & Navbar
   ========================================= */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 400;
    position: relative;
}

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

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    background: rgba(128, 128, 128, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 20px;
    height: 1.5px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media(min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-text-col {
    max-width: 700px;
}

.hero-image-col {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-image-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.04;
    z-index: -1;
    border-radius: 50%;
    filter: blur(20px);
    transition: var(--transition);
}

body.dark-theme .hero-image-backdrop {
    opacity: 0.2;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    animation: float-hero 8s ease-in-out infinite;
    display: block;
    object-fit: cover;
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Floating Tech Icons (Softened for Light Theme) */
.floating-icons {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.15;
    z-index: 1;
}

.float-icon {
    position: absolute;
    filter: grayscale(100%);
}

.float-react { top: 25%; right: 15%; animation: float 18s ease-in-out infinite; }
.float-node { bottom: 20%; right: 25%; animation: float 22s ease-in-out infinite reverse; }
.float-js { top: 60%; right: 10%; animation: float 25s ease-in-out infinite 2s; }
.float-db { top: 15%; left: 15%; animation: float 20s ease-in-out infinite 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 2rem;
    z-index: 10;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--primary);
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* =========================================
   Typography & Headers
   ========================================= */
.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    margin: 0;
    padding: 4rem;
    background: var(--surface);
}

.about-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 300;
    line-height: 1.8;
}

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

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

.skill-card {
    padding: 3rem 2.5rem;
    text-align: left;
    background: var(--surface);
    border-radius: 16px; 
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.skill-card:hover {
    box-shadow: 0 15px 35px var(--accent-glow);
    transform: translate(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) - 8px)) scale(1.02);
    border-color: var(--accent);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.skill-icon i {
    color: var(--primary);
    transition: var(--transition);
}

.skill-card:hover .skill-icon i {
    color: var(--bg-color);
}

.skill-category {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.skill-list li {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
    transition: var(--transition);
}

.skill-card:hover .skill-list li {
    color: var(--text-main);
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5rem;
    width: 6px; height: 6px;
    background: var(--border-light);
    border-radius: 50%;
    transition: var(--transition);
}

.skill-card:hover .skill-list li::before {
    background: var(--primary);
    transform: scale(1.2);
}

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

.project-card {
    padding: 3rem;
    background: var(--surface);
    border-radius: 2px;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 15px 35px var(--accent-glow);
    transform: translate(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) - 8px)) scale(1.02);
    border-color: var(--accent);
}

.project-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-desc {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Disable the artificial glow on the light theme */
.project-card:hover .project-glow {
    display: none;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 1px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
    width: 100%;
}

.timeline-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 600px;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    left: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    box-shadow: 0 0 0 4px var(--bg-color);
    z-index: 2;
}

.timeline-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: none;
    padding: 0;
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.timeline-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--secondary);
    line-height: 1.7;
}

/* =========================================
   Github Section
   ========================================= */
.github-container {
    padding: 4rem;
    background: var(--surface);
    border-radius: 4px;
    text-align: left;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.github-username {
    font-size: 1.5rem;
}

.contribution-graph {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
    gap: 3px;
    margin-bottom: 2rem;
}

.contrib-node {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--border-light);
    transition: transform 0.2s;
}

.contrib-node:hover {
    transform: scale(1.3);
}

.contrib-lvl-1 { background: #9be9a8; }
.contrib-lvl-2 { background: #40c463; }
.contrib-lvl-3 { background: #30a14e; }
.contrib-lvl-4 { background: #216e39; }

.github-subtext {
    color: var(--text-muted);
}

/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media(min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
}

.contact-links {
    margin-bottom: 3rem;
}

.contact-links li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.location-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.contact-form {
    padding: 3.5rem;
    background: var(--surface);
    border-radius: 4px;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    resize: none;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-glow {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
    width: 100%;
}

.btn-submit {
    width: auto;
    cursor: none;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--surface);
}
.footer .heart {
    color: #e11d48;
}

/* =========================================
   Animations & Reveals
   ========================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        text-align: left;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    body {
        cursor: auto;
    }
    a, button, input, textarea {
        cursor: pointer;
    }
    
    .hero-content {
        text-align: left;
    }
    .hero-actions {
        justify-content: flex-start;
    }
    .section {
        padding: 60px 0;
    }
    .about-content, .github-container, .contact-form, .skill-card, .project-card {
        padding: 2rem 1.5rem;
    }
    .section-header {
        text-align: left;
    }
    .scroll-indicator {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .contact-wrapper {
        gap: 2rem;
    }
    .timeline-item {
        padding-left: 2rem;
    }
}
/* =========================================
   Glassmorphism Animated Background Blobs
   ========================================= */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    animation: moveBlob 20s infinite alternate ease-in-out;
    pointer-events: none;
}

body.dark-theme .blob {
    opacity: 0.3;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #ec4899; /* Pink accent */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #3b82f6; /* Blue accent */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 15vh) scale(1.1); }
    66% { transform: translate(-15vw, 10vh) scale(0.9); }
    100% { transform: translate(5vw, -15vh) scale(1); }
}
