/* Reset and Base Styles */
/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin: 12px;
    width: 200px;
    height: 54px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .btn {
        width: 180px;
        height: 50px;
        padding: 0 28px;
        font-size: 1rem;
        margin: 10px;
    }
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        min-width: 140px;
        height: 40px;
        width: 100%;
        max-width: 280px;
        margin: 8px auto;
    }
}
:root {
    /* Colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    
    /* Typography */
    --base-font-size: 16px;
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --text-size: 1rem;
    
    /* Spacing */
    --container-padding: 20px;
    --section-padding: 80px;
    --grid-gap: 2rem;
    
    /* Breakpoints */
    --mobile: 480px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1440px;
    --ultra-wide: 2560px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: var(--text-size);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section, .about-content, .experience-item, .contact-content {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Container */
.container {
    width: min(90%, var(--container-max-width, 1200px));
    margin-inline: auto;
    padding: var(--container-padding);
}

/* Fluid Typography */
h1 {
    font-size: clamp(1.8rem, 5vw, var(--h1-size));
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, var(--h2-size));
    line-height: 1.3;
    margin: 3rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, var(--h3-size));
    line-height: 1.4;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #3498db;
}

/* Enhanced Sections */
.container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

h1, h2, h3 {
    color: var(--primary-color);
    transition: font-size 0.3s ease;
}

/* Enhanced Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 4rem 0;
}

.profile-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.profile-info h1 {
    font-size: var(--h1-size);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    width: 140px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.primary-btn {
    background: linear-gradient(45deg, var(--secondary-color), #2980b9);
    color: white;
    border: none;
}

.primary-btn:hover {
    background: linear-gradient(45deg, #2980b9, var(--secondary-color));
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}
section {
    padding: 80px 0;
}

/* Blog Post Full Article */
.blog-post-full {
    padding-top: 100px;
}

.blog-post-full .featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-post-full h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-full .post-meta {
    color: #666;
    margin-bottom: 2rem;
}

.blog-post-full .post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-full .post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.blog-post-full .post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-full .post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-full .post-content li {
    margin-bottom: 0.5rem;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

/* Mobile and Small Tablets */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    nav ul li a {
        padding: 0.8rem;
        display: block;
        color: white;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .profile-info {
        text-align: center;
    }

    .blog-post-full h1 {
        font-size: 2rem;
    }

    .blog-post-full .post-content {
        padding: 0 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Enhanced Experience Section */
.experience-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Enhanced Blog Grid and Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.badge-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-5px);
}

.badge-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
}

/* Responsive Design - Media Queries */
/* Mobile First Approach */
@media screen and (max-width: 480px) {
    :root {
        --container-padding: 10px;
        --section-padding: 40px;
        --h1-size: 1.8rem;
        --h2-size: 1.5rem;
        --text-size: 0.9rem;
    }

    .container {
        width: 95%;
        padding: var(--container-padding);
    }

    section {
        padding: var(--section-padding) 0;
    }

    .blog-grid,
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .profile-info h1 {
        font-size: var(--h1-size);
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Tablet */
@media screen and (min-width: 481px) and (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --section-padding: 70px;
        --h1-size: 2.4rem;
        --h2-size: 2rem;
        --text-size: 1.1rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-img {
        margin: 0 auto;
    }
    
    .experience-item {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .container {
        width: 90%;
        padding: var(--container-padding);
    }

    .blog-grid,
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }
}

/* Mobile Navigation (Applies to both mobile and tablet) */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-links a {
        margin: 0.5rem;
        display: inline-block;
    }
}

/* Laptop/Desktop */
@media screen and (min-width: 769px) and (max-width: 1439px) {
    :root {
        --container-padding: 20px;
        --section-padding: 80px;
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --text-size: 1.1rem;
    }

    .container {
        max-width: 1200px;
    }

    .blog-grid,
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Large Screens */
@media screen and (min-width: 1440px) {
    :root {
        --container-padding: 30px;
        --section-padding: 100px;
        --h1-size: 3rem;
        --h2-size: 2.4rem;
        --text-size: 1.2rem;
    }

    .container {
        max-width: 1600px;
    }

    .blog-grid,
    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .blog-post-full .post-content {
        max-width: 1000px;
    }
}

/* 4K and Ultra-wide Screens */
@media screen and (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }

    :root {
        --container-padding: 40px;
        --section-padding: 120px;
        --h1-size: 3.5rem;
        --h2-size: 2.8rem;
        --text-size: 1.4rem;
    }

    .blog-grid,
    .badges-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Print Media Query */
@media print {
    nav, .mobile-menu-toggle, .footer-links {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        width: 100%;
        max-width: none;
    }
}