:root {
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --secondary-color: #0f172a;
    --secondary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-color: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --dark-text: #1a1a1a;
    --border-color: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 20px rgba(37, 99, 235, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 2px 6px 2px, rgba(60, 64, 67, 0.15) 0px 1px 5px 0px;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.btn-download {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: var(--primary-gradient);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-download i {
    font-size: 0.9rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at top right, #f8f9fa 0%, #ffffff 100%);
}

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

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

.greeting {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero p {
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeIn 1.5s ease forwards;
    overflow: hidden;
    border-radius: 50%;
    width: 400px;
    height: 400px;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.4);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.45);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.5), 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

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

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

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

.achievement-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.achievement-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

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

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

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: -10px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Skills Section */
.skills {
    background-color: var(--bg-light);
}

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

.skill-category {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-category h3 i {
    color: var(--secondary-color);
}

.skill-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    transition: var(--transition);
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-list li:hover {
    color: var(--dark-text);
    padding-left: 25px;
}

.skill-list li:hover::before {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.education-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.education-card h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.institution {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.year {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.subsection-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--dark-text);
}

.certifications-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cert-badge {
    padding: 10px 20px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cert-badge:hover {
    background: var(--primary-gradient);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}



/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--bg-color);
    padding: 50px;
    border-radius: 5px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--primary-gradient);
    color: var(--bg-color);
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    color: var(--text-muted);
}

.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.contact-socials .social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition);
}

.contact-socials .social-icon:hover {
    background: var(--primary-gradient);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--dark-text);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
    display: block;
}

.form-status.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
    display: block;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin: 40px auto 10px;
        width: 350px;
        height: 350px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-btns {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-wrapper {
        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:nth-child(odd) {
        text-align: left;
    }

    .timeline-dot {
        left: 22px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-image {
        width: 280px;
        height: 280px;
        margin-bottom: 40px;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1 {
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .social-links {
        margin-top: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .skill-category {
        padding: 25px;
    }

    .achievement-card {
        padding: 25px;
    }

    .about-text p {
        font-size: 1rem;
    }

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

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 90px 0 50px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .hero h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .greeting {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-image {
        width: 220px;
        height: 220px;
        margin-bottom: 10px;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .contact-wrapper {
        padding: 25px 15px;
    }

    .hero-btns {
        width: 100%;
        margin-bottom: 25px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-category h3 {
        font-size: 1.2rem;
    }

    .achievement-card {
        padding: 20px;
    }

    .achievement-card h3 {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .timeline-content {
        padding: 15px;
    }
}

/* Typing Effect */
.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.typed-text::after {
    content: "|";
    display: inline-block;
    animation: blink 0.7s infinite;
    color: var(--primary-color);
    margin-left: 2px;
}

.typed-text.typing::after {
    animation: none;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Floating Shapes (Background) */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    filter: blur(80px);
    /* Increased blur for smoother look */
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(40px, -60px) rotate(10deg);
    }

    66% {
        transform: translate(-30px, 30px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Booking Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-color);
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: var(--font-main);
    transition: var(--transition);
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.blog-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 8px;
}

/* Tools & Resources Section */
.tools-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-light);
}

.tools-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.tools-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tool-icon-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    border-bottom: 1px solid var(--border-color);
}

.tool-icon-wrapper i {
    font-size: 3rem;
    color: var(--primary-color);
}

.tool-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-content h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    /* Increased bottom margin */
    flex-grow: 1;
    line-height: 1.6;
}

.tool-footer {
    padding-top: 20px;
    /* Increased padding */
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.btn-tool {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.btn-tool:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Badge for Recommended/Featured tools */
.tool-card.featured {
    position: relative;
    border: 2px solid var(--primary-color);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}