/* Global Overflow Prevention */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Stats Section */
.stats-section {
    padding: 50px 0;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Stats Responsive Design */
@media (max-width: 480px) {
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Light Theme Styles */
:root {
    --stat-card-bg: #f5f7fa;
    --stat-number-color: #2d3748;
    --stat-text-color: #4a5568;
    --stat-border: #e2e8f0;
    --stat-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Dark Theme Styles */
[data-theme="dark"], .dark-theme {
    --stat-card-bg: #2d2d2d;
    --stat-number-color: #ffffff;
    --stat-text-color: #e2e8f0;
    --stat-border: #4a5568;
    --stat-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background-color: var(--stat-card-bg);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--stat-border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--stat-hover-shadow);
}

.stat-number {
    font-family: 'Inter', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--stat-number-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-text {
    font-family: 'Inter', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--stat-text-color);
    margin: 0;
}

/* Theme Variables */
:root {
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #00eeff;
}

[data-theme="dark"], .dark-theme {
    --card-bg: #2d3748;
    --border-color: #4a5568;
}

/* Hero Section */
.hero-section {
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Light Theme */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
}

/* Dark Theme */
.dark-theme {
    --bg-color: #000000;
    --text-color: #ffffff;
}

.hero-section {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 161px; /* Space below header */
}

.hero-tagline {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Mobile First Responsive Design */

/* Extra Small Phones: 320px - 480px */
@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        padding: 0 15px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-tagline {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Small Phones: 481px - 576px */
@media (min-width: 481px) and (max-width: 576px) {
    .hero-content {
        padding-top: 70px;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Large Phones: 577px - 768px */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-tagline {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image-container {
        margin-top: 2rem;
        width: 100%;
    }
}

/* Tablets Portrait: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-tagline {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Hero Image Styles */
.hero-image-container {
    width: 100%;
    height: 500px;
    max-width: min(1800px, 100vw);
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-top: 25%; /* This creates an aspect ratio */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Add a subtle hover effect */
.hero-image:hover {
    transform: scale(1.02);
}

/* Adjust image container for different screen sizes */
@media (min-width: 1200px) {
    .hero-image-container {
        padding-top: 20%;
    }
}

@media (max-width: 1024px) {
    .hero-image-container {
        padding-top: 30%;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        padding-top: 40%;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        height: 350px;
        padding-top: 0;
        margin-top: 1.5rem;
    }
}

/* Showcase Cards Section */
.showcase-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Showcase Responsive Design */
@media (max-width: 480px) {
    .showcase-section {
        padding: 40px 15px;
    }
    
    .showcase-card {
        padding: 30px 20px;
        min-height: 180px;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .showcase-section {
        padding: 60px 20px;
    }
    
    .showcase-card {
        padding: 40px 25px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .showcase-section {
        padding: 100px 30px;
    }
}

@media (min-width: 1025px) {
    .showcase-section {
        padding: 150px 40px;
    }
}

.container {
    max-width: min(1400px, 100vw);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    animation-delay:0ms;
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Wave positioning for realistic wave effect */
.showcase-card:nth-child(1) {
    margin-top: 55px;
}

.showcase-card:nth-child(2) {
    margin-top: 55px;
    animation: fadeInUpWave2 0.8s forwards;
}

.showcase-card:nth-child(3) {
    margin-top: 55px;
}

.showcase-card:nth-child(4) {
    margin-top: 55px;
    animation: fadeInUpWave4 0.8s forwards;
}

.card-title {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

/* Hover effect */
.showcase-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Fade-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpWave2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-25px);
    }
}

@keyframes fadeInUpWave4 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-25px);
    }
}

.card-icon {
    color: #00eeff; /* Green color for the checkmark */
    
}

/* Showcase Grid Responsive */
@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .showcase-card,
    .showcase-card:nth-child(2),
    .showcase-card:nth-child(3),
    .showcase-card:nth-child(4) {
        margin-top: 0 !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-card,
    .showcase-card:nth-child(2),
    .showcase-card:nth-child(3),
    .showcase-card:nth-child(4) {
        margin-top: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .showcase-card:nth-child(3),
    .showcase-card:nth-child(4) {
        margin-top: 0;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .showcase-card:nth-child(3) {
        margin-top: 0;
    }
    
    .showcase-card:nth-child(4) {
        margin-top: 40px;
    }
}

/* Ensure proper spacing on mobile */
@media (max-width: 480px) {
    .hero-image-container {
        margin-top: 1.5rem;
    }
    
    .hero-image {
        height: 100%;
        object-fit: contain;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 15px 0 40px 0;
    position: relative;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    position: relative;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-content {
    order: 1;
}

.services-image {
    order: 2;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.services-image:hover img {
    transform: scale(1.02);
}

.section-tagline {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3px;
    line-height: 1.2;
}

.section-intro {
    font-family: 'Inter', serif;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 3px;
    line-height: 1.6;
}

.tap-to {
    font-family: 'Inter', serif;
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 15px 0 15px 0;
    font-weight: 500;
}

.get-started-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #00a6ff;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #00a6ff);
    cursor: pointer;
}

.get-started-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 255, 0.3);
}

.get-started-button .button-icon {
    transition: transform 0.3s ease;
}

.get-started-button:hover .button-icon {
    transform: translateX(3px);
}

/* Services Section Responsive */
@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .services-content {
        order: 2;
        padding: 0 10px;
    }
    
    .services-image {
        order: 1;
    }
    
    .section-tagline {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .section-intro {
        font-size: 1rem;
        text-align: center;
    }
    
    .tap-to {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-content {
        order: 2;
    }
    
    .services-image {
        order: 1;
    }
    
    .section-tagline {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        gap: 40px;
    }
    
    .section-tagline {
        font-size: 2.2rem;
    }
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Why Choose Us Responsive */
@media (max-width: 480px) {
    .why-choose-us {
        padding: 40px 0;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .why-choose-image {
        height: 250px;
        order: 1;
    }
    
    .why-choose-content {
        order: 2;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .section-description {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
    
    .feature-detail {
        font-size: 0.85rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .why-choose-image {
        height: 300px;
        order: 1;
    }
    
    .why-choose-content {
        order: 2;
    }
    
    .section-description {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .why-choose-grid {
        gap: 40px;
    }
}

.why-choose-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.why-choose-image:hover img {
    transform: scale(1.03);
}

.why-choose-content {
    padding: 10px 0;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 100;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}



.section-description {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 30px;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #00eeff;
    font-weight: bold;
}

.feature-text {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.6;
}

.feature-detail {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-top: 5px;
    padding-left: 15px;
    border-left: 2px solid rgba(0, 238, 255, 0.3);
}

/* About Us Button */
.about-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #00a6ff;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #00a6ff);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #00a6ff);
    transition: width 0.3s ease;
    z-index: -1;
}

.about-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 255, 0.3);
}

.about-button .button-icon {
    transition: transform 0.3s ease;
}

.about-button:hover .button-icon {
    transform: translateX(3px);
}

/* Reviews Section */
.reviews-section {
    padding: 60px 0 40px 0;
    margin-bottom: 35px;
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tagline {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-subtext {
    font-family: 'Inter', serif;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0 auto;
    max-width: 600px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Reviews Section Responsive */
@media (max-width: 480px) {
    .reviews-section {
        padding: 40px 0 30px 0;
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .section-tagline {
        font-size: 1.8rem;
    }
    
    .section-subtext {
        font-size: 0.9rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .reviewer-info h4 {
        font-size: 0.9rem;
    }
    
    .reviewer-info p {
        font-size: 0.8rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .section-tagline {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #00eeff;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.1);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars svg {
    width: 20px;
    height: 20px;
}

.review-text {
    font-family: 'Inter', serif;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #00eeff;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 0 3px 0;
}

.reviewer-info p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    opacity: 0.8;
}

/* Work Section */
.work-section {
    padding: 30px 0 80px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 700px; /* Fixed height for the grid */
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.work-item.large {
    grid-row: span 2;
}

.work-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 30px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-item:hover .work-image {
    transform: scale(1.05);
}

.work-overlay h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #fff;
}

.work-overlay p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin: 0;
    color: #ffffff;
    font-weight: 300;
}

/* Work Section Responsive */
@media (max-width: 480px) {
    .work-section {
        padding: 20px 0 40px 0;
    }
    
    .work-grid {
        height: auto;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .work-item.large {
        grid-row: auto;
        height: 250px;
    }
    
    .work-item.small {
        height: 200px;
    }
    
    .work-overlay {
        padding: 20px;
    }
    
    .work-overlay h3 {
        font-size: 1.2rem;
    }
    
    .work-overlay p {
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .work-section {
        padding: 25px 0 60px 0;
    }
    
    .work-grid {
        height: auto;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .work-item.large {
        grid-row: auto;
        height: 300px;
    }
    
    .work-item.small {
        height: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .work-grid {
        height: auto;
        grid-template-columns: 1fr;
    }
    
    .work-item.large {
        grid-row: auto;
        height: 400px;
    }
    
    .work-item.small {
        height: 300px;
    }
}



/* Duplicate removed: Use the main .card-title above for theme responsiveness */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.back-to-top i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Dark theme adjustments */
.dark-theme .back-to-top {
    background-color: rgba(59, 130, 246, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .back-to-top:hover {
    background-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top i {
        font-size: 1.1rem;
    }
}




/* CTA Section */
.cta-section {
    background: var(--bg-color);
    padding: 80px 0;
    margin: 40px 0 0 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(800px, 100vw);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.cta-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cta-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    background: #00a6ff;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 238, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 260, 255, 0.4);
    
}

.cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #00a6ff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border: 2px solid #00eeff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-secondary-btn:hover {
    background: #00a6ff;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 238, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .cta-title {
        font-size: 2.8rem;
    }
    
    .cta-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-primary-btn,
    .cta-secondary-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}