/* ================================
   PORTFOLIO STYLES - NATURAL DESIGN
   ================================ */

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

/* Theme Variables */
:root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #3b9aff;
    --accent-hover: #58a6ff;
}

body.light {
    --bg: #ffffff;
    --surface: #f6f8fa;
    --border: #d0d7de;
    --text: #24292f;
    --text-muted: #57606a;
    --accent: #0969da;
    --accent-hover: #0550ae;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

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

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.theme-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.theme-btn:hover {
    border-color: var(--accent);
}

.theme-btn .sun {
    display: none;
}

body.light .theme-btn .sun {
    display: inline;
}

body.light .theme-btn .moon {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    padding: 80px 0;
}

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

.greeting {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 8px;
}

.name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.tagline {
    font-size: 36px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    color: white;
    border: none;
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

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

.btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.image-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================
   SECTIONS
   ================================ */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.section-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.tech-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    list-style: none;
    margin-top: 16px;
}

.tech-stack li {
    color: var(--text-muted);
    font-size: 14px;
}

.tech-stack li::before {
    content: "→ ";
    color: var(--accent);
    margin-right: 8px;
}

.specialties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.specialty {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.specialty:hover {
    border-color: var(--accent);
}

.specialty .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
}

.specialty h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.specialty p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ================================
   EDUCATION SECTION
   ================================ */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
}

.year {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
}

.details h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.school {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.field {
    color: var(--text-muted);
    font-size: 14px;
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-group h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: var(--surface);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ================================
   PROJECTS SECTION
   ================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.project-header h3 {
    font-size: 18px;
}

.links {
    display: flex;
    gap: 12px;
}

.links a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

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

.project-card > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tags span {
    background: var(--bg);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--border);
}

/* ================================
   CERTIFICATES SECTION
   ================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}


.cert {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
    padding: 0;
}

.cert:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cert-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cert-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.cert-content {
    padding: 24px;
    text-align: center;
}

.cert-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.cert-content .issuer {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.cert-content .date {
    color: var(--accent);
    font-size: 13px;
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.contact-details {
    margin-bottom: 32px;
}

.detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.label {
    color: var(--text-muted);
    font-size: 13px;
}

.value {
    font-size: 15px;
}

.socials {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s;
}

.socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* For SVG icons */
.social-svg {
    width: 24px;
    height: 24px;
}

.hf-text {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.5px;
}
.contact-form {
    background: var(--surface);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-field textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    cursor: pointer;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .hero-grid,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-grid {
        grid-template-rows: auto auto;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .name {
        font-size: 36px;
    }

    .tagline {
        font-size: 28px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .education-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .name {
        font-size: 32px;
    }

    .tagline {
        font-size: 24px;
    }

    .section-heading {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .contact-form {
        padding: 24px;
    }
}



