/* =============================================================
   Portfolio Design System – Premium Dark Theme
   ============================================================= */

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 3px; }

/* Design System & Global Styles */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #a855f7;
    --accent: #f43f5e;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

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

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-text .highlight {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

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

.btn-secondary:hover {
    background: var(--glass);
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.skill-item {
    margin-bottom: 1.25rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 8px;
    background: var(--glass);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
}

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

.project-card {
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 200px;
    background: #1e293b;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-img::after {
    content: '🚀';
    font-size: 3rem;
}

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

.tag {
    background: var(--glass);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--primary-light);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    color: var(--text-muted);
}

/* ── Hero Second Orb ───────────────────────────────────────── */
.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50%       { transform: scale(1.2); opacity: 0.25; }
}

/* ── Project card gradient images ─────────────────────────── */
.project-card:nth-child(1) .project-img { background: linear-gradient(135deg,#1a1a2e,#16213e); }
.project-card:nth-child(2) .project-img { background: linear-gradient(135deg,#0d1b2a,#1b2838); }
.project-card:nth-child(3) .project-img { background: linear-gradient(135deg,#1a0a2e,#2d1b69); }
.project-card:nth-child(4) .project-img { background: linear-gradient(135deg,#0a2e1a,#1b4d3e); }
.project-card:nth-child(5) .project-img { background: linear-gradient(135deg,#2e1a0a,#4d3e1b); }
.project-card:nth-child(6) .project-img { background: linear-gradient(135deg,#2e0a1a,#4d1b2d); }

.project-card:nth-child(1) .project-img::after { content: '🛒'; }
.project-card:nth-child(2) .project-img::after { content: '✅'; }
.project-card:nth-child(3) .project-img::after { content: '🌤'; }
.project-card:nth-child(4) .project-img::after { content: '🎨'; }
.project-card:nth-child(5) .project-img::after { content: '💪'; }
.project-card:nth-child(6) .project-img::after { content: '📊'; }

/* ── Social Links ──────────────────────────────────────────── */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.4);
}

/* ── Textarea no resize ────────────────────────────────────── */
textarea.form-control { resize: vertical; min-height: 140px; }

/* ── form control placeholder ─────────────────────────────── */
.form-control::placeholder { color: var(--text-muted); }

/* ── Fade-in hero text ─────────────────────────────────────── */
.hero-text {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Education layout ─────────────────────────────────────── */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

/* ── Mobile Responsiveness ─────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 { font-size: 2.5rem; }
    .nav-links    { display: none; }

    .contact-container,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid { grid-template-columns: 1fr; }

    .hero-img .glass-card {
        width: 250px !important;
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .hero-text h1  { font-size: 2rem; }
    .container     { padding: 0 1rem; }
}
