/* Root Colors - Zorvyn Fintech Inspired Theme */
:root {
    /* Core Brand Colors */
    --primary-color: #FF6B35;
    /* Vibrant Orange */
    --primary-glow: rgba(255, 107, 53, 0.3);
    --secondary-color: #FF9F7A;
    /* Lighter Peach */
    --accent-color: #4ADE80;
    /* Success Green for tags */
    --accent-purple: #C084FC;
    /* Purple for other tags */

    /* Backgrounds */
    --bg-main: #050505;
    /* Deep Black */
    --bg-card: #121212;
    /* Dark Surface */
    --bg-card-hover: #1A1A1A;

    /* Text */
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    /* Borders */
    --border-color: #262626;
    --border-hover: #404040;

    /* Effects */
    --shadow: none;
    /* Flat design with borders prefers no heavy shadow */
    --card-radius: 16px;
    --btn-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        top: 100%;
        flex-direction: column;
        background-color: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--border-color);
        gap: 0;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-link:hover {
        background-color: var(--bg-card-hover);
        color: var(--primary-color);
    }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 10%, rgba(255, 107, 53, 0.08) 0%, transparent 60%);
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000000;
    /* Contrast for orange background */
}

.btn-primary:hover {
    background-color: #FF8F6B;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section.bg-light {
    background-color: var(--bg-main);
    /* Keep consistent dark theme */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 4px;
}

/* About Section */
.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 900px;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.skill-category h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.skill-tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.project-header {
    margin-bottom: 1.5rem;
}

.project-header h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    font-size: 0.85rem;
    color: var(--text-main);
    padding: 0.4rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Experience & Education - Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    margin-bottom: 3rem;
    margin-left: 60px;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -49px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--bg-main);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.company-header h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.company-header .company {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
}

.description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Certificates */
.cert-category-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.cert-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.cert-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.cert-logo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.cert-item:hover .cert-logo {
    opacity: 1;
}

.cert-item h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.cert-org {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.cert-field {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Modal */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cert-modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.cert-modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--text-main);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.cert-modal-close:hover {
    color: var(--primary-color);
}

#certModalImg {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#certModalCaption {
    margin-top: 1.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.form-status.success {
    color: var(--accent-color);
}

.form-status.error {
    color: #ef4444;
}

/* Updated Contact Methods (Moved to About) */
.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    background: var(--bg-card);
    padding: 1.5rem 2.5rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    min-width: 250px;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
    /* Make icons white/grey */
    transition: all 0.3s;
}

.contact-item:hover .contact-logo {
    filter: none;
}

/* Footer */
.footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-dim);
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Tweaks */
/* Mobile Tweaks & Optimization */
@media (max-width: 768px) {

    /* Layout & Spacing */
    .section {
        padding: 3rem 0;
        /* Reduce padding on mobile */
    }

    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Typography */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    /* Projects & cards */
    .projects-grid,
    .timeline-content,
    .contact-item {
        padding: 1.5rem;
    }

    .project-date {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Skills Grid - allow smaller items */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline adjustments */
    .timeline-item {
        margin-left: 50px;
        padding-right: 0;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -44px;
        /* Readjust for new margin (50-44 + center offset) */
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    /* Contact */
    .contact-item {
        min-width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 1rem;
    }
}