/* Custom Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Custom Header with Gradient */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 50px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

.profile-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background: white;
    padding: 5px;
}

.profile-image:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 8px;
    animation: fadeInUp 1s;
}

.tagline {
    font-size: 0.95em;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1.2s;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    animation: fadeInUp 1.4s;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    font-size: 0.88em;
}

.social-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    flex-wrap: wrap;
}

nav li {
    margin: 4px 18px;
}

nav a {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 0.92em;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #764ba2;
}

section {
    padding: 50px 0;
}

h2 {
    font-size: 2em;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95em;
    color: #666;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-size: 0.95em;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 12px;
}

.highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 18px;
    border-radius: 8px;
    margin-top: 18px;
    border-left: 4px solid #667eea;
    font-size: 0.93em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 35px auto 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 22px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.95;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.skill-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-top: 3px solid #667eea;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.skill-icon {
    font-size: 2.2em;
    color: #667eea;
    margin-bottom: 12px;
}

.skill-card h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9em;
}

.skill-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.skill-card li:last-child {
    border-bottom: none;
}

.experience-timeline {
    max-width: 900px;
    margin: 35px auto;
}

.experience-item {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.experience-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.experience-item h3 {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 6px;
}

.experience-item .company {
    font-weight: 600;
    font-size: 1em;
    color: #333;
    margin-bottom: 4px;
}

.experience-item .duration {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 10px;
    display: inline-block;
    background: #f0f9ff;
    padding: 3px 10px;
    border-radius: 12px;
}

.experience-item p {
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 35px;
}

.cert-card {
    background: white;
    padding: 16px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid #667eea;
}

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

.cert-badge {
    font-size: 2em;
    color: #667eea;
    min-width: 45px;
}

.cert-info h3 {
    color: #667eea;
    margin-bottom: 4px;
    font-size: 0.95em;
    line-height: 1.3;
}

.cert-info p {
    color: #666;
    line-height: 1.5;
    font-size: 0.88em;
}

.cert-short {
    color: #999;
    font-size: 0.82em !important;
    font-weight: 600;
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.project-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 22px;
    position: relative;
}

.project-header h3 {
    font-size: 1.2em;
    margin-bottom: 6px;
}

.project-header p {
    font-size: 0.88em;
    opacity: 0.95;
}

.project-body {
    padding: 20px;
}

.project-body p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
    font-size: 0.88em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tech-tag {
    background: #e0f2fe;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s;
}

.tech-tag:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.contact-section h2 {
    color: white;
    -webkit-text-fill-color: white;
}

.contact-section h2::after {
    background: white;
}

.contact-section p {
    font-size: 1.05em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 35px auto 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2.2em;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-card a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    word-break: break-word;
}

.contact-card a:hover {
    text-decoration: underline;
}

footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin: 6px 0;
    opacity: 0.9;
    font-size: 0.9em;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

#backToTop:active {
    transform: translateY(-2px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

#backToTop.show:hover {
    animation: bounce 1s;
}

@media (max-width: 768px) {
    header {
        padding: 20px 0 25px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .tagline {
        font-size: 0.88em;
    }

    h2 {
        font-size: 1.6em;
    }

    nav li {
        margin: 4px 8px;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .social-btn {
        width: calc(50% - 8px);
        justify-content: center;
        padding: 8px 5px;
        font-size: 0.85em;
    }

    .about-content {
        padding: 20px;
        font-size: 0.9em;
    }

    section {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-number {
        font-size: 1.8em;
    }

    .projects-grid,
    .skills-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
}