/* CSS Variables */
:root {
    --primary: #00d9ff;
    --secondary: #0077ff;
    --accent: #8a2be2;
    --dark-bg: #0a0e17;
    --dark-card: rgba(20, 25, 40, 0.8);
    --text-light: #e0e0e0;
    --text-gray: #a0a0b0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --success: #00d084;
    --warning: #ff922b;
    --danger: #ff6b6b;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

/* Section Title Common */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Container */
.header-container {
    position: relative;
    width: 100%;
    /* 
        here un comment menu will not visible for all pages except homepage
    */
    /* overflow: hidden; */
}

/* Hero Section Specific */
.header-container.with-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.background-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: relative;
    z-index: 1001;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1002;
}

.logo-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-right: 10px;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--primary);
    }

    100% {
        text-shadow: 0 0 20px var(--primary), 0 0 30px var(--secondary);
    }
}

/* Menu Styles */
.menu {
    display: flex;
    list-style: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-item {
    margin-left: 1.5rem;
}

.menu-item a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.menu-item a:hover {
    color: #fff;
    background: rgba(0, 217, 255, 0.1);
}

.menu-item.active a {
    color: var(--primary);
    background: rgba(0, 217, 255, 0.15);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: min(800px, 90%);
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: var(--text-gray);
    animation: fadeInUp 1s ease 0.3s both;
}

/* Search Container */
.search-container2 {
    position: relative;
    width: 100%;
    max-width: min(700px, 90%);

    animation: fadeInUp 1s ease 0.6s both;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: min(700px, 90%);
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.search-box {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(1rem, 2vw, 1.2rem);
    border: none;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

.search-button {
    position: absolute;
    right: clamp(0.5rem, 2vw, 0.8rem);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    width: clamp(45px, 10vw, 55px);
    height: clamp(45px, 10vw, 55px);
    color: white;
    cursor: pointer;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1) rotate(10deg);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.7);
}

/* Buttons */
.btn {
    padding: clamp(0.8rem, 2vw, 1.1rem) clamp(1.5rem, 4vw, 2.2rem);
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: 600;

    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(0, 217, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.9s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: fadeIn 1s ease 1.5s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    margin-bottom: 8px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

/* Main Content Sections */
.main-content {
    padding: 4rem 5%;
}

/* Categories Section */
.categories-section {
    padding: 4rem 5%;
    background: rgba(10, 14, 23, 0.7);
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.category-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Projects Section */
.projects-section2 {
    padding: 4rem, 5px, 5%;
    background: rgba(10, 14, 23, 0.9);
}

.projects-section {
    padding: 4rem 5%;
    background: rgba(10, 14, 23, 0.9);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 119, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 4rem;
    opacity: 0.8;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.project-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.python-dot {
    background: #3776ab;
}

.java-dot {
    background: #f89820;
}

.csharp-dot {
    background: #9a4f96;
}

.web-dot {
    background: #e34c26;
}

/* Contact Section */
.contact-section {
    padding: 4rem 5%;
    background: rgba(10, 14, 23, 0.7);
}

/* .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
} */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-left .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.contact-methods {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.contact-method-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: var(--dark-card);
}

.contact-method-btn i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.contact-method-btn span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-method-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.contact-method-btn.active {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.15);
}

.contact-method-btn.active i,
.contact-method-btn.active span {
    color: var(--primary);
}

.contact-info {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info strong {
    color: white;
    min-width: 120px;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.form-row {
    margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.contact-form select option {
    background: #0f172a;   /* dark background */
    color: #ffffff;        /* white text */
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300d9ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Footer */
footer {
    background: rgba(5, 8, 15, 0.95);
    padding: 3rem 5%;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 280px;
    max-width: 360px;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.4s ease forwards, fadeOut 0.4s ease 4s forwards;
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error ul {
    list-style: none;
    padding-left: 0;
}

.toast-error li {
    margin-bottom: 0.5rem;
}

.toast-error li:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 119, 255, 0.1));
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2300d9ff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-banner h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-gray);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
    }
}

/* Performance Classes */
.will-change {
    will-change: transform, opacity;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.ml-1 {
    margin-left: 0.5rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablet and Mobile Menu */
@media (max-width: 992px) {
    .top-nav {
        padding: 1rem 5%;
    }

    .mobile-toggle {
        display: block;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80%);
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        display: none;
    }

    .menu.active {
        right: 0;
        display: block;
    }

    .menu-item {
        margin: 0.8rem 0;
        width: 100%;
        margin-left: 0;
    }

    .menu-item a {
        display: block;
        padding: 0.8rem 1.2rem;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .projects-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    .hero-section,
    .main-content,
    .categories-section,
    .projects-section,
    .contact-section,
    .page-banner {
        padding: 2rem 5%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-method-btn {
        width: 100%;
    }

    .floating-shape {
        display: none;
    }

    .page-banner {
        padding: 4rem 5%;
    }
}

@media (max-width: 480px) {
.top-nav {
        padding: 0.8rem 4%;
    }

    .logo span {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .search-box {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }

    .search-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .category-card,
    .project-card{
        padding: 1.5rem;

    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        justify-items: center;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-method-btn {
        width: 95%;
        min-width: 0;
    }

    .contact-form {
        width: 95%;
        max-width: 100%;
        padding: 1.25rem;
        margin: 0;
    }
}


*, *::before, *::after {
    box-sizing: border-box;
}

/* Large Desktop */
@media (min-width: 1600px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .categories-grid,
    .projects-grid,
    .contact-container {
        max-width: 1400px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reviews List Scrollbar Styling */
.reviews-list {
    max-height: 420px;          /* adjust height as needed */
    overflow-y: auto;
    padding-right: 8px;
}

/* Smooth scrollbar (Chrome, Edge, Safari) */
.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-list::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 10px;
}

/* Firefox */
.reviews-list {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}