/* 
===================================================
    ADITYA VERMA - PORTFOLIO STYLESHEET
    THEME: LINUX TERMINAL / CYBER SLATE
===================================================
*/

:root {
    /* Color Palette */
    --bg-dark: #0a0a0f;
    --bg-panel: rgba(18, 18, 25, 0.7);
    --bg-panel-hover: rgba(25, 25, 35, 0.9);
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Terminal Colors */
    --term-green: #10b981;
    --term-prompt: #3b82f6;
    --term-blue: #60a5fa;
    --term-red: #ef4444;
    --term-yellow: #f59e0b;
    --term-magenta: #d946ef;
    
    /* Accents */
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s 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: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Utility Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--term-green);
    margin-right: 10px;
}

/* Typography elements */
h1, h2, h3, h4 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--term-blue);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--term-green);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--term-green);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--term-green);
}

.nav-links a::after {
    content: '_';
    position: absolute;
    right: -10px;
    opacity: 0;
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    opacity: 1;
    animation: blink 1s step-end infinite;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

/* Abstract Background Glow for Hero */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Terminal Window styling */
.terminal-window {
    background: #0f1015;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.terminal-window:hover {
    transform: rotateY(0) rotateX(0);
}

.terminal-header {
    background: #1e1e24;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red { background: var(--term-red); }
.yellow { background: var(--term-yellow); }
.green { background: var(--term-green); }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 15px;
    text-align: center;
    flex-grow: 1;
}

.terminal-body {
    padding: 20px;
    color: #a1a1aa;
}

.terminal-body p {
    margin-bottom: 8px;
}

.prompt {
    color: var(--term-green);
    font-weight: 600;
}

.output {
    padding-left: 15px;
    color: var(--text-main);
}

.output.highlight {
    color: var(--term-magenta);
}

.blink {
    animation: blink 1s step-end infinite;
    color: var(--text-main);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Typography */
.hero-text {
    z-index: 1;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.role {
    font-size: 1.5rem;
    color: var(--term-green);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--term-green);
    border: 1px solid var(--term-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background: var(--term-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Timeline / Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(16, 185, 129, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--term-green);
    box-shadow: 0 0 10px var(--term-green);
}

.timeline-content {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    background: var(--bg-panel-hover);
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--term-blue);
    margin-bottom: 20px;
}

.duties {
    list-style: none;
}

.duties li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.duties li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--term-green);
    font-family: var(--font-mono);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--term-green);
    transition: height 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--bg-panel-hover);
}

.skill-card:hover::before {
    height: 100%;
}

.skill-icon {
    font-size: 3rem;
    color: var(--term-blue);
    margin-bottom: 20px;
}

.skill-card:hover .skill-icon {
    color: var(--term-green);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-card {
    background: var(--bg-panel);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contact-desc {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.contact-link:hover {
    border-color: var(--term-green);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.02);
}

.contact-link i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: #050508;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .terminal-window {
        margin: 0 auto;
        transform: none;
    }
    
    .terminal-body {
        text-align: left;
    }

    .action-buttons {
        justify-content: center;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .glitch-text {
        font-size: 3rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
