/* Resume stylesheet */
:root {
    --text-color: #1a1a1a;
    --bg-color: #f8f9fa;
    --accent: #4ba1fc;
    --accent-secondary: #2a7dd7;
    --border-color: #e0e0e0;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f1ff 50%, #f0f4ff 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Navigation bar - Modern Design */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    color: var(--accent);
    font-size: 2.5em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    font-family: 'times new roman', serif;
    margin-right: auto;
    padding-left: 0;
}

.navbar-brand:hover {
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(70, 168, 195, 0.2);
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-links a:hover {
    color: var(--accent);
    background: rgba(70, 168, 195, 0.08);
}

.navbar-links a:hover::after {
    width: 60%;
}

.navbar-links a.active {
    color: var(--accent);
    font-weight: 700;
}

.navbar-links a.active::after {
    width: 60%;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
        height: 60px;
    }

    .navbar-brand {
        font-size: 1.2em;
    }

    .navbar-links {
        gap: 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
    }

    .navbar-brand {
        margin-bottom: 12px;
        font-size: 1.1em;
    }

    .navbar-links {
        gap: 15px;
        font-size: 0.85em;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-links a {
        padding: 6px 10px;
    }
}

header {
    background: linear-gradient(150deg, #4ba1fc 0%, #2a7dd7 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
}

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    overflow: visible;
}

section:hover {
    box-shadow: 0 4px 12px rgba(75, 161, 252, 0.12);
}

section:nth-child(even) {
    border-left-color: var(--accent-secondary);
}

section:nth-child(even) h2 {
    color: var(--accent-secondary);
}

section h2 {
    color: var(--accent);
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease;
}

section p {
    margin-bottom: 10px;
    color: var(--text-color);
}

section ul {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

section li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Full-width HR styling */
section hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 20px -30px;
    width: calc(100% + 60px);
    display: block;
}

/* Skills Cards Styling */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.skill-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-card:nth-child(even) {
    border-left-color: var(--accent-secondary);
}

.skill-card:nth-child(even) .skill-card-title {
    color: var(--accent-secondary);
}

.skill-card:nth-child(even) .skill-badge {
    background: var(--accent-secondary);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(75, 161, 252, 0.15);
    border-color: var(--accent);
}

.skill-card:nth-child(even):hover {
    box-shadow: 0 8px 16px rgba(42, 125, 215, 0.15);
    border-color: var(--accent-secondary);
}

.skill-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
}

.skill-card-title {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1em;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.skill-card-level {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 12px;
}

.skill-badge {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Certification Logos */
.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 20px 0;
    align-items: center;
    justify-items: center;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(75, 161, 252, 0.05);
    width: 140px;
    height: 160px;
    justify-content: center;
}

.cert-item:nth-child(even) {
    background: rgba(42, 125, 215, 0.05);
}

.cert-item:hover {
    transform: translateY(-4px);
    background: rgba(75, 161, 252, 0.1);
    box-shadow: 0 4px 12px rgba(75, 161, 252, 0.15);
}

.cert-item:nth-child(even):hover {
    background: rgba(42, 125, 215, 0.1);
    box-shadow: 0 4px 12px rgba(42, 125, 215, 0.15);
}

.cert-logo {
    width: 80px;
    height: 80px;
    font-size: 3em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 4px;
}

.cert-name {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 4px;
}

.cert-year {
    font-size: 0.85em;
    color: #999;
}

/* Contact Section */

.section-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: center;
}

.section-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(75, 161, 252, 0.1) 0%, rgba(42, 125, 215, 0.1) 100%);
    border: 2px solid var(--accent);
    border-left: 5px solid var(--accent);
}

.contact-section h2 {
    color: var(--accent);
    border-bottom: 2px solid var(--border-color);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    background: rgba(75, 161, 252, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(75, 161, 252, 0.15);
}

.contact-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    display: block;
}

.contact-text {
    font-weight: 600;
    font-size: 1em;
}

/* Enhanced Footer */
.page-footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #e8eef5 100%);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 3px solid var(--accent);
}

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

.footer-section h3 {
    color: var(--accent);
    font-size: 1.2em;
    margin-bottom: 12px;
}

.footer-section p {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.footer-section a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #999;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 0.95em;
    }

    main {
        margin: 20px auto;
    }

    section {
        padding: 20px;
    }

    section h2 {
        font-size: 1.5em;
    }
}
