/* Design System for Karina Thapa Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-blue: #0056D2;
    --primary-red: #D62828;
    --bg-white: #FFFFFF;
    --text-black: #1A1A1A;
    --text-grey: #4A4A4A;
    --light-grey: #F8F9FA;
    --accent-blue-light: rgba(0, 86, 210, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

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

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

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

ul {
    list-style: none;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-blue);
    position: relative;
}

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

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

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

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

/* Sections */
section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.hero-content {
    flex: 1;
}

.hero-tagline {
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-blue);
}

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

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--primary-blue);
}

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

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 20px 20px 60px rgba(0, 74, 173, 0.1);
}

/* Skills Grid */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto;
}

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

.skill-card {
    padding: 2.5rem;
    background: var(--light-grey);
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: block;
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--text-black);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-red);
}

.footer-text {
    color: #AAA;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #AAA;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-image {
        margin-top: 3rem;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero p {
        margin: 1.5rem auto 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }

    .contact-content, .skill-detail, .vision {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        padding: 2rem !important;
    }

    .project-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Page Specific Sections */
.hero-page {
    padding-top: 15rem;
    text-align: center;
}

.vision {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 5rem;
    background: var(--light-grey);
    padding: 5rem 3rem;
    border-radius: 40px;
}

.vision-img {
    flex: 1;
}

.vision-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.vision-content {
    flex: 1;
}

/* Skills Detailed */
.skill-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
}

.skill-bar-container {
    margin-bottom: 2rem;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.skill-track {
    height: 10px;
    background: var(--light-grey);
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill-blue {
    height: 100%;
    background: var(--primary-blue);
}

.skill-fill-red {
    height: 100%;
    background: var(--primary-red);
}

/* Project Cards */
.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-body {
    padding: 2.5rem;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.tag-blue { background: var(--primary-blue); }
.tag-red { background: var(--primary-red); }
.tag-black { background: var(--text-black); }

/* Contact Form */
.contact-form form {
    background: var(--light-grey);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.03);
}

.form-group-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-field input, .form-field textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #DDD;
    outline: none;
    font-family: inherit;
}

.form-field input:focus, .form-field textarea:focus {
    border-color: var(--primary-blue);
}
