:root {
    --primary: #005b96;
    --primary-dark: #003d66;
    --secondary: #1e88e5;
    --dark: #212121;
    --light: #f5f5f5;
    --accent: #ff6d00;
    --white: #ffffff;
    --gray: #757575;
    --light-gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-right: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-text h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header-text h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.contact-item i {
    margin-right: 0.8rem;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.8rem;
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 5px;
    font-size: 1.1rem;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.skills-container h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background-color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    color: var(--accent);
    margin-right: 0.8rem;
    font-size: 1rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 15px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--white);
    border: 4px solid var(--secondary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 25px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.timeline-content h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-content .duration {
    display: inline-block;
    background-color: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
}

/* Achievements Section */
.achievements-section {
    background-color: #f9f9f9;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.achievement-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.achievement-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.achievement-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.education-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.education-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    padding-left: 1rem;
}

.education-card .institution {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    padding-left: 1rem;
    display: flex;
    align-items: center;
}

.education-card .institution i {
    margin-right: 0.5rem;
}

.education-card .details {
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.education-card .year {
    display: inline-block;
    background-color: var(--light-gray);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--dark);
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.certification-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.cert-header {
    padding: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
}

.cert-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/diagonal-striped-brick.png');
    opacity: 0.1;
}

.cert-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cert-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.cert-issuer {
    font-size: 1.1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.cert-issuer i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.cert-body {
    padding: 1.8rem;
    position: relative;
}

.cert-body::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--white);
    transform: rotate(45deg);
    z-index: 1;
}

.cert-description {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #ddd;
}

.cert-date {
    font-size: 0.95rem;
    color: #777;
    display: flex;
    align-items: center;
}

.cert-date i {
    margin-right: 0.5rem;
}

.cert-id {
    font-size: 0.9rem;
    background: #f0f0f0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: #555;
}

/* Color variations */
.cert-card-blue .cert-header {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
}

.cert-card-green .cert-header {
    background: linear-gradient(135deg, #388e3c, #81c784);
}

.cert-card-orange .cert-header {
    background: linear-gradient(135deg, #e65100, #ffb74d);
}

.cert-card-purple .cert-header {
    background: linear-gradient(135deg, #7b1fa2, #ba68c8);
}

.cert-card-teal .cert-header {
    background: linear-gradient(135deg, #00796b, #4db6ac);
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-right: 1.5rem;
    width: 40px;
    text-align: center;
    padding-top: 0.3rem;
}

.contact-item-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.contact-item-content p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 150, 0.1);
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 91, 150, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 150, 0.3);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 1.5rem;
    transition: color 0.3s;
}

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

.copyright {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-text h1 {
        font-size: 2.4rem;
    }
    
    .header-text h2 {
        font-size: 1.4rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img {
        margin-right: 0;
        margin-bottom: 2rem;
        width: 160px;
        height: 160px;
    }

    .contact-info {
        justify-content: center;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        text-align: center;
    }
    
    .skills-container {
        text-align: center;
    }
    
    .skills {
        justify-content: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .left::after, .right::after {
        left: 21px;
    }

    .right {
        left: 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-text h2 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }
    
    .achievements-grid,
    .education-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}