/* Base Styles and Variables */
:root {
    /* Main color palette - more sophisticated and elegant */
    --primary-color: #1a2a3a;
    --secondary-color: #0077cc;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #343a40;
    --text-light: #6c757d;
    --background-color: #ffffff;
    --card-background: #ffffff;
    
    /* UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: white;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 1px;
}

.header-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact details in header */
.contact-details {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.contact-details a:hover {
    color: white;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cert-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.cert-badge:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

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

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 1rem 0;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 1rem 0;
    display: inline-block;
}

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 110;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn.active {
    color: var(--secondary-color);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i.fa-times {
    transform: rotate(180deg);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Summary Section */
#summary {
    background-color: white;
}

.summary-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.summary-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* About Section */
#about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--light-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

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

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.job {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.job-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.company {
    font-weight: 600;
    color: var(--secondary-color);
}

.job p {
    margin-bottom: 15px;
}

.job ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.job-skills span {
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.job-skills span:hover {
    background-color: var(--secondary-color);
    color: white;
}

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

.skill-category {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.skill-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Certifications Section */
.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.cert:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.cert-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cert h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cert p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.cert-date {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Education Section */
.education-container {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.education-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.degree {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
#contact {
    background-color: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: relative;
        right: 0;
        top: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .education-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Add overlay when menu is active */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
    }
    
    .contact-details {
        font-size: 0.85rem;
    }
    
    .certifications {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .job {
        padding: 15px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
} 