* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

/* Decorative circles must sit behind the content and never catch clicks */
.hero-section::before,
.hero-section::after {
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.8s ease-out;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-icons a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-box h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box p {
    color: #999;
    font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
}

.skill-category {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.2rem;
}

.skill-category i {
    margin-right: 10px;
    font-size: 1.4rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chips span {
    background: #eef4ff;
    color: #1f3b73;
    border: 1px solid #d3e2ff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
}

.open-to-work {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 6px 16px;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Earlier experience (compact list under the timeline) */
.earlier-experience {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.earlier-experience h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.earlier-experience ul {
    list-style: none;
    margin: 0;
}

.earlier-experience li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.earlier-experience li:last-child {
    border-bottom: none;
}

/* Project links */
.project-link {
    margin-top: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

.project-link:hover {
    text-decoration: underline;
}

.promo-badge {
    display: inline-block;
    background: #e8f6ee;
    color: #146c43;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.section-note {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: 0;
}

.timeline-content ul {
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 25px;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.timeline-content h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content ul {
    list-style: none;
    margin-top: 15px;
}

.timeline-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.timeline-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
}

.project-card:hover .project-header {
    transform: scale(1.1);
}

.project-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-body h5 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.project-body p {
    flex-grow: 1;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
}

/* Certifications Section */
.certifications-section {
    padding: 80px 0;
}

.cert-list {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cert-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    cursor: pointer;
}

.cert-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 15px;
}

.cert-link:hover {
    background-color: #f0f4ff;
    padding-left: 20px;
    border-left: 4px solid #0d6efd;
}

.cert-item i:first-child {
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 0;
    flex-shrink: 0;
}

.cert-item i:last-child {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.cert-link:hover i:last-child {
    opacity: 1;
}

.cert-item span {
    font-size: 0.95rem;
    color: #555;
    flex: 1;
}

.edu-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.edu-item h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.contact-info {
    margin: 40px 0;
}

.contact-info i {
    transition: all 0.3s ease;
}

.contact-info > div:hover i {
    transform: scale(1.2) rotate(5deg);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* Footer */
footer {
    padding: 30px 0;
    background: var(--dark-color);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 20px;
    }

    .contact-info > div {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}
