/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --dark-bg: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #808080;
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

/* Accessibility improvements */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 102, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Ensure images load smoothly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift during image loading */
.hero-img,
.expertise-image,
.portfolio-image,
.insight-image,
.author-avatar {
    background-color: var(--medium-gray);
}

/* Smooth image transitions */
[style*="background-image"] {
    transition: opacity 0.3s ease-in-out;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a.active {
    color: var(--primary-color);
    position: relative;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-gray) 100%);
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Button Styles */
a {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.hero-img {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.hero-img:hover::before {
    opacity: 1;
}

.hero-img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=500&h=500&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    background-image: url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=500&h=1000&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-img-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    background-image: url('https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?w=500&h=500&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-img-4 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=500&h=500&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-img-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background-image: url('https://images.unsplash.com/photo-1550439062-609e1531270e?w=500&h=500&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Welcome Banner */
.welcome-banner {
    background-color: var(--dark-gray);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.welcome-icon {
    font-size: 32px;
}

.welcome-text {
    font-size: 18px;
    font-weight: 500;
}

/* Tech Stack Section */
.tech-stack {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.section-subtitle {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 50px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background-color: var(--dark-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--medium-gray);
    border-radius: 12px;
}

.tech-icon img {
    max-width: 40px;
    max-height: 40px;
}

.tech-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Section Title */
.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

/* Expertise Section */
.expertise {
    padding: 100px 0;
    background-color: var(--dark-gray);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    background-color: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.expertise-card:hover {
    transform: translateY(-10px);
}

.expertise-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    background-size: cover;
    background-position: center;
}

.expertise-card:nth-child(1) .expertise-image {
    background-image: url('https://images.unsplash.com/photo-1547658719-da2b51169166?w=800&h=600&fit=crop');
}

.expertise-card:nth-child(2) .expertise-image {
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800&h=600&fit=crop');
}

.expertise-card:nth-child(3) .expertise-image {
    background-image: url('https://images.unsplash.com/photo-1559028012-481c04fa702d?w=800&h=600&fit=crop');
}

.expertise-content {
    padding: 30px;
}

.expertise-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.expertise-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.expertise-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-featured,
.portfolio-showcase {
    background-color: var(--dark-gray);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    background-size: cover;
    background-position: center;
}

.portfolio-featured .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&h=800&fit=crop');
}

.portfolio-showcase .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1551650975-87deedd944c3?w=800&h=800&fit=crop');
}

.portfolio-content {
    padding: 40px;
}

.portfolio-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.portfolio-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #0052cc;
}

.discover-more {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Insights Section */
.insights {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .insights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.insight-card {
    background-color: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-card:hover {
    transform: translateY(-10px);
}

.insight-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    background-size: cover;
    background-position: center;
}

.insight-card:nth-child(1) .insight-image {
    background-image: url('https://images.unsplash.com/photo-1633356122544-f134324a6cee?w=600&h=400&fit=crop');
}

.insight-card:nth-child(2) .insight-image {
    background-image: url('https://images.unsplash.com/photo-1627398242454-45a1465c2479?w=600&h=400&fit=crop');
}

.insight-card:nth-child(3) .insight-image {
    background-image: url('https://images.unsplash.com/photo-1507721999472-8ed4421c4af2?w=600&h=400&fit=crop');
}

.insight-card:nth-child(4) .insight-image {
    background-image: url('https://images.unsplash.com/photo-1544383835-bda2bc66a55d?w=600&h=400&fit=crop');
}

.insight-content {
    padding: 25px;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.insight-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.insight-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.insight-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.insight-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* About Me Section */
.about-me {
    padding: 100px 0;
    background-color: var(--dark-gray);
}

.about-me-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-me-image {
    position: relative;
}

.about-me-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.about-me-image img:hover {
    transform: scale(1.05);
}

.about-me-text h2 {
    margin-bottom: 30px;
}

.about-me-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonial Section */
.testimonial {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-text {
    font-size: 24px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    background-image: url('../images/anil-profile.jpg'), url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=200&h=200&fit=crop');
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background-color: var(--dark-gray);
}

.newsletter .section-description {
    max-width: 600px;
    margin: 0 auto 40px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    background-color: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand .footer-logo {
    height: 45px;
    width: auto;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom a {
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        font-size: 16px;
        display: block;
        width: 100%;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .hero-img-2 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .hero-img-3 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .hero-img-5 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 768px) {
    .portfolio-image {
        height: 300px;
    }

    .insight-image {
        height: 180px;
    }

    .expertise-image {
        height: 250px;
    }

    .about-me-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-me-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .nav-brand .logo {
        height: 35px;
    }

    .footer-brand .footer-logo {
        height: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 24px;
    }

    .hero-image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 150px);
        gap: 10px;
    }

    .hero-img-1,
    .hero-img-2,
    .hero-img-3,
    .hero-img-4,
    .hero-img-5 {
        grid-column: 1 / 2;
    }

    .hero-img-1 {
        grid-row: 1 / 2;
    }

    .hero-img-2 {
        grid-row: 2 / 3;
    }

    .hero-img-3 {
        grid-row: 3 / 4;
    }

    .hero-img-4 {
        grid-row: 4 / 5;
    }

    .hero-img-5 {
        grid-row: 5 / 6;
    }

    .welcome-content {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .testimonial-text {
        font-size: 18px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-content,
    .expertise-content,
    .insight-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 22px;
    }

    .expertise-content h3 {
        font-size: 20px;
    }
}