/* 
   Modern Professional Portfolio Design System
   Developer: Divyarajsinh Jadeja
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #7000ff;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Layout */
    --container-max-width: 1200px;
    --section-padding: 100px 20px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.08) 0%, rgba(112, 0, 255, 0.03) 50%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width 0.3s, height 0.3s;
    filter: blur(40px);
}

h1, h2, h3, h4, .font-accent {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradients */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sections */
section {
    padding: var(--section-padding);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow);
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.btn-pulse {
    animation: btn-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('hero-bg.png') no-repeat center center;
    background-size: cover;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.8;
    pointer-events: none; /* Allows clicks through to content but we track mouse via window */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 11, 16, 0.9) 0%, rgba(10, 11, 16, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Tech Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: scroll-marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    margin-right: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span.highlight {
    color: var(--primary);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* Terminal Flex UI */
.terminal-container {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    grid-column: 1 / -1; /* Stretch across the grid */
}
.terminal-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}
.terminal-buttons {
    display: flex;
    gap: 8px;
}
.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.close-btn { background: #ff5f56; }
.min-btn { background: #ffbd2e; }
.max-btn { background: #27c93f; }
.terminal-title {
    color: #8b949e;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
    padding-right: 40px; /* Balance for true center */
}
.terminal-body {
    padding: 20px;
    color: #e6edf3;
    font-size: 0.95rem;
    min-height: 150px;
    line-height: 1.5;
}
.term-line {
    margin-bottom: 8px;
}
.term-prompt {
    color: #27c93f;
    font-weight: bold;
    margin-right: 8px;
}
.term-command {
    color: var(--primary);
}
.term-output {
    color: #a5d6ff;
    padding-left: 25px;
}
.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #e6edf3;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Bento Skills Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 20px;
}

.bento-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.bento-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.bento-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Specific Bento Sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-large, .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

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

.project-card {
    position: relative;
    padding: 0; /* Override glass-card padding */
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
    transition: var(--transition-smooth);
    filter: grayscale(100%) brightness(0.5);
}

.project-card:hover .project-img {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%) brightness(0.8);
}

.project-card-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    background: linear-gradient(0deg, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.6) 50%, transparent 100%);
    width: 100%;
}

/* Testimonials Carousel */
.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
}
.testimonial-card .quote {
    font-style: italic;
    color: #e6edf3;
    margin-bottom: 30px;
    position: relative;
}
.testimonial-card .quote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(0, 242, 255, 0.1);
    position: absolute;
    top: -20px;
    left: -15px;
    font-family: serif;
    line-height: 1;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-content {
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: var(--primary); }

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
}
