/* ==================== Global Styles ==================== */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1565c0;
    --accent-color: #42a5f5;
    --dark-bg: #0a0e27;
    --light-bg: #f5f7fa;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --success-color: #28a745;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

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

/* ==================== Navigation ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-100px, 100px);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: slideInUp 0.8s ease;
}

.hero-title {
    font-size: 3.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.1 !important;
    color: white !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(66, 165, 245, 0.3) !important;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: white !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 15px rgba(66, 165, 245, 0.2) !important;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease 0.1s both;
}

.hero-greeting {
    animation: slideInUp 0.8s ease;
}

.hero-greeting .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 1.15rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8 !important;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero Stats Styling */
.hero-section .mt-5 h4 {
    font-size: 2.5rem !important;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 800 !important;
}

.hero-section .mt-5 p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.4s both;
}

.cta-buttons .btn {
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* ==================== About Section ==================== */
#about {
    background: #f8f9fa;
    padding: 80px 0;
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.expertise-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==================== Skills Section ==================== */
#skills {
    background: var(--light-bg);
    padding: 80px 0;
}

.skill-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.skill-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.15);
}

.skill-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.skill-tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== Projects Section ==================== */
#projects {
    padding: 80px 0;
}

.project-card {
    background: white;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.2);
}

.project-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

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

.project-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.project-metrics {
    background: var(--light-bg);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    border-left: 3px solid var(--primary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    color: white;
    background: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
}

.project-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.project-link::after {
    content: ' →';
    margin-left: 0.3rem;
}

/* ==================== Experience Section ==================== */
#experience {
    background: var(--light-bg);
    padding: 80px 0;
}

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.experience-item h5 {
    color: var(--primary-color);
}

.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.experience-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==================== Education Section ==================== */
#education {
    padding: 80px 0;
}

.education-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.education-item:last-child {
    border-bottom: none;
}

.education-item:hover {
    background: var(--light-bg);
    padding-left: 2rem;
}

.education-item h5 {
    color: var(--primary-color);
}

.cert-item {
    padding: 1rem;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-left-color: var(--primary-color);
    background: var(--light-bg);
    padding-left: 1.5rem;
}

.cert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.cert-item p {
    margin: 0;
    color: var(--text-dark);
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin-top: 100px;
}

.footer h5 {
    color: white;
}

.footer p {
    margin: 0;
}

.contact-links a,
.social-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-links a:hover,
.social-link:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

.social-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.social-link .icon {
    display: block;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline-primary {
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: flex-start;
    }

    .project-header {
        flex-direction: column;
    }

    .project-tag {
        margin-left: 0;
        margin-right: 0.5rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        margin-left: 0 !important;
        padding: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .skill-tags,
    .project-tech {
        gap: 0.3rem;
    }

    .skill-tag,
    .project-tech span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
    }

    .experience-item,
    .education-item {
        padding: 1rem;
    }

    .footer h5 {
        font-size: 1.1rem;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== Utility Classes ==================== */
.transition {
    transition: all 0.3s ease;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.bg-light {
    background: var(--light-bg) !important;
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    .section-title::after {
        display: none;
    }
}

/* ==================== Loading & Performance ==================== */
img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ==================== Accessibility ==================== */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
