/* Hexa Web Tasarım - Main Stylesheet */
/* Modern Dark Theme with Neon Accents */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --dark-bg: #0f0f1a;
    --dark-surface: #1a1a2e;
    --dark-card: #16213e;
    --dark-border: #2d2d44;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #00d4ff 100%);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5);
    --glow-neon: 0 0 30px rgba(0, 212, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin-bottom: 1rem; color: var(--text-secondary); }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--neon-blue); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    box-shadow: var(--glow-primary);
}

.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: var(--glow-neon);
}

/* Circle Icon Animation */
.circle-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.circle-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-blue);
    border-right-color: var(--primary);
    animation: spin 3s linear infinite;
}

.circle-icon::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--neon-purple);
    border-left-color: var(--neon-pink);
    animation: spin 2s linear infinite reverse;
}

.circle-icon i {
    font-size: 2rem;
    color: var(--neon-blue);
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow Effect */
.glow {
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from { filter: drop-shadow(0 0 5px var(--neon-blue)); }
    to { filter: drop-shadow(0 0 20px var(--neon-blue)); }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-hexagon {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: hexagon-spin 2s ease-in-out infinite;
}

.loader-hexagon svg {
    width: 100%;
    height: 100%;
}

.loader-hexagon path {
    fill: none;
    stroke: var(--neon-blue);
    stroke-width: 2;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: hexagon-draw 2s ease-in-out infinite;
}

@keyframes hexagon-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes hexagon-draw {
    0%, 100% { stroke-dashoffset: 300; }
    50% { stroke-dashoffset: 0; }
}

.loader-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-circle-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--dark-border);
    animation: spin 20s linear infinite;
}

.hero-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: spin 15s linear infinite reverse;
}

.hero-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.hero-circle-center i {
    font-size: 4rem;
    color: white;
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--dark-card);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float-icon 4s ease-in-out infinite;
}

.floating-icon i {
    font-size: 1.5rem;
    color: var(--neon-blue);
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 5%; animation-delay: 0.5s; }
.floating-icon:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 1s; }
.floating-icon:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 1.5s; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--dark-border);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card h3 {
    margin-bottom: 1rem;
    position: relative;
}

.service-card p {
    position: relative;
    margin-bottom: 1.5rem;
}

.service-card .btn {
    position: relative;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.about-badge span:first-child {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.about-badge span:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature i {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: var(--dark-surface);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.95) 0%, rgba(15, 15, 26, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(99, 102, 241, 0.95) 0%, rgba(99, 102, 241, 0.7) 50%, transparent 100%);
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay span {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--dark-surface);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--dark-border);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.testimonial-info h5 {
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-left: auto;
    color: var(--accent);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary-light);
}

.blog-content h4 {
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.blog-card:hover .blog-content h4 {
    color: var(--primary-light);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--dark-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--dark-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin: 1.5rem 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--dark-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
}

/* Fixed Buttons */
.fixed-buttons {
    position: fixed;
    z-index: 999;
}

/* Phone Button - Left */
.phone-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 30px rgba(16, 185, 129, 0.4);
    animation: pulse-phone 2s infinite;
    z-index: 999;
}

@keyframes pulse-phone {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
}

/* WhatsApp Button - Right Bottom */
.whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s infinite;
    z-index: 999;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* Live Chat Button - Right */
.chat-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--glow-primary);
    cursor: pointer;
    z-index: 999;
    border: none;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 350px;
    background: var(--dark-card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 998;
    display: none;
    border: 1px solid var(--dark-border);
}

.chat-widget.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: var(--gradient-1);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-info h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.chat-header-info span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.chat-body {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
}

.chat-message.bot {
    text-align: left;
}

.chat-message.user {
    text-align: right;
}

.chat-bubble {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 80%;
}

.chat-message.bot .chat-bubble {
    background: var(--dark-surface);
    border-bottom-left-radius: 5px;
}

.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 12px 15px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 25px;
    color: var(--text-primary);
}

.chat-footer button {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--primary-light);
}

/* Maintenance Page */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.maintenance-content {
    max-width: 600px;
}

.maintenance-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    position: relative;
}

.maintenance-icon i {
    font-size: 5rem;
    color: var(--accent);
    animation: maintenance-pulse 2s ease-in-out infinite;
}

@keyframes maintenance-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.maintenance-content h1 {
    margin-bottom: 1rem;
}

.maintenance-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.countdown-item {
    background: var(--dark-card);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid var(--dark-border);
}

.countdown-item span:first-child {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.countdown-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark-surface);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Animations on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading Screen - Force Hide */
.loading-screen.hidden,
.loading-screen[style*="opacity: 0"],
.loading-screen[style*="visibility: hidden"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    background: var(--dark-card);
    border-radius: 10px;
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: var(--secondary);
}

.notification-success i {
    color: var(--secondary);
}

.notification-error {
    border-color: #ef4444;
}

.notification-error i {
    color: #ef4444;
}

.notification i {
    font-size: 1.2rem;
}

.notification span {
    color: var(--text-primary);
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--text-primary) !important;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Hover effects for footer links */
.footer a:hover {
    color: var(--primary-light) !important;
}

/* Button hover states */
.btn:hover {
    transform: translateY(-2px);
}

/* Image fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .phone-btn,
    .whatsapp-btn,
    .chat-btn,
    .chat-widget,
    .loading-screen {
        display: none !important;
    }
}


/* Animation Classes - Always Visible */
.fade-in,
.slide-left,
.slide-right,
.scale-in {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Testimonials Grid - Always Visible */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure all content is visible */
.testimonial-card,
.service-card,
.portfolio-item,
.blog-card,
.stat-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* PageSpeed Optimization - Reduce CLS */
.hero {
    min-height: 100vh;
}

.page-header {
    min-height: 250px;
}

.section {
    min-height: auto;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: var(--dark-card);
}

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =====================================================
   MOBILE RESPONSIVE FIX - FULL WIDTH
   ===================================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container fix for mobile */
.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Header mobile fix */
    .header {
        padding: 10px 0;
    }
    
    .header-inner {
        padding: 0 15px;
    }
    
    /* Logo size fix */
    .logo span {
        font-size: 1.2rem !important;
    }
    
    /* Mobile menu button */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: var(--dark-surface);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-sizing: border-box;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    /* Hero section mobile */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    /* Section padding mobile */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Stats grid mobile */
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-item::after {
        display: none;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: -30px auto 0;
        width: 120px;
        height: 120px;
    }
    
    .about-features {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Portfolio grid mobile */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .portfolio-item {
        aspect-ratio: 16/10;
    }
    
    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    /* Blog grid mobile */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer > .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    .footer-social,
    .footer div[style*="display:flex"][style*="gap:15px"] {
        justify-content: center;
    }
    
    .footer-bottom,
    .footer div[style*="padding-top:30px"] {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }
    
    .footer div[style*="display:flex"][style*="gap:20px"][style*="flex-wrap:wrap"] {
        justify-content: center;
    }
    
    /* Page header mobile */
    .page-header {
        padding: 120px 0 50px;
        min-height: auto;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    /* Fixed buttons mobile */
    .phone-btn,
    a[style*="position:fixed"][style*="left:20px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        left: 15px !important;
        bottom: 15px !important;
    }
    
    .whatsapp-btn,
    a[style*="position:fixed"][style*="right:20px"][style*="bottom:90px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
        right: 15px !important;
        bottom: 75px !important;
    }
    
    .chat-btn,
    button[style*="position:fixed"][style*="right:20px"][style*="bottom:20px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        right: 15px !important;
        bottom: 15px !important;
    }
    
    /* Chat widget mobile */
    .chat-widget,
    div[style*="position:fixed"][style*="width:350px"] {
        width: calc(100% - 30px) !important;
        max-width: 350px;
        right: 15px !important;
        left: auto !important;
        bottom: 75px !important;
    }
    
    /* CTA section mobile */
    .cta,
    section[style*="background: var(--gradient-1)"] {
        padding: 50px 0;
    }
    
    .cta h2,
    section[style*="background: var(--gradient-1)"] h2 {
        font-size: 1.6rem;
    }
    
    .cta div[style*="display: flex"],
    section[style*="background: var(--gradient-1)"] div[style*="display: flex"] {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Comment form mobile */
    .comment-form-section {
        padding: 0 15px;
    }
    
    /* Countdown mobile */
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 15px 20px;
        min-width: 70px;
    }
    
    .countdown-item .number,
    .countdown-item span:first-child {
        font-size: 1.8rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 20px 15px;
    }
    
    .circle-icon {
        width: 60px;
        height: 60px;
    }
    
    .circle-icon i {
        font-size: 1.5rem;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Fix inline styles overflow */
[style*="display:grid"][style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
}

@media (min-width: 992px) {
    [style*="display:grid"][style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 2fr 1fr !important;
    }
}

/* Fix footer grid on mobile */
@media (max-width: 768px) {
    [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: 1fr 350px"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns:repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix any potential overflow from absolute positioned elements */
.hero-bg::before,
.hero-bg::after {
    max-width: 100vw;
}

@media (max-width: 768px) {
    .hero-bg::before,
    .hero-bg::after {
        width: 300px;
        height: 300px;
    }
}


/* =====================================================
   MOBILE MENU TOGGLE STYLES
   ===================================================== */

/* Menu toggle button - hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Show menu toggle on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    /* Hide nav on mobile by default */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark-surface);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 80px;
    }
    
    nav:has(.nav-menu.active) {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 20px;
        gap: 0;
        height: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--dark-border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}

/* Alternative mobile nav approach - works without :has() */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--dark-surface);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
}


/* =====================================================
   FOOTER GRID MOBILE FIX
   ===================================================== */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    .footer-grid > div {
        text-align: center;
    }
    
    .footer-grid ul {
        text-align: center;
    }
    
    .footer-grid h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Center social icons */
    .footer-grid div[style*="display:flex"][style*="gap:15px"] {
        justify-content: center !important;
    }
}

/* Footer bottom mobile */
@media (max-width: 576px) {
    .footer div[style*="padding-top:30px"] {
        flex-direction: column !important;
        text-align: center;
        gap: 20px !important;
    }
    
    .footer div[style*="display:flex"][style*="gap:20px"] {
        justify-content: center !important;
        flex-wrap: wrap;
    }
}


/* =====================================================
   PAGE SPECIFIC GRID LAYOUTS - MOBILE RESPONSIVE
   ===================================================== */

/* Blog page grid (main + sidebar) */
.blog-page-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-page-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog detail grid */
.blog-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Project detail grid */
.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Project info grid (3 columns) */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Service detail grid */
.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        order: -1;
    }
}

/* Contact content grid */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Blog grid - 2 columns on tablet, 1 on mobile */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Sidebar cards */
.sidebar-card,
.service-sidebar .service-card {
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    aside {
        margin-top: 40px;
    }
}

/* FAQ grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.faq-item {
    background: var(--dark-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--dark-border);
}

@media (max-width: 576px) {
    .faq-item {
        padding: 20px 15px;
    }
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* About features */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* CTA buttons container */
.cta-buttons,
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .cta-buttons,
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn,
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Service CTA buttons */
.service-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .service-cta {
        flex-direction: column;
    }
    
    .service-cta .btn {
        width: 100%;
    }
}

/* Price box */
.price-box {
    margin-top: 2rem;
    padding: 30px;
    background: var(--dark-card);
    border-radius: 15px;
    border: 1px solid var(--dark-border);
}

@media (max-width: 576px) {
    .price-box {
        padding: 20px 15px;
    }
}

/* Other services list */
.other-services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.other-service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--dark-surface);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.other-service-item:hover {
    background: var(--dark-border);
    transform: translateX(5px);
}

/* Why us list */
.why-us-list {
    list-style: none;
    padding: 0;
}

.why-us-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-secondary);
}

.why-us-list li:last-child {
    border-bottom: none;
}

.why-us-list i {
    color: var(--neon-blue);
}


/* =====================================================
   MOBILE RESPONSIVE FIX - ZOOM/RESIZE ISSUE
   ===================================================== */

/* Fix for zoom/resize breaking layout */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .service-card-enhanced {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-item::after {
        display: none;
    }
}

/* Stats section zoom fix */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Service card enhanced responsive */
.service-card-enhanced {
    width: 100%;
    box-sizing: border-box;
}

/* Fix service card actions on smaller screens */
@media (max-width: 576px) {
    .service-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-quick-contact {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Quick contact bar responsive */
@media (max-width: 768px) {
    .quick-contact-bar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .contact-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .quick-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

/* Process grid responsive */
@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .process-grid {
        grid-template-columns: 1fr !important;
    }
}

/* CTA section responsive */
@media (max-width: 768px) {
    .cta-gradient-section {
        padding: 50px 0;
    }
    
    .cta-content-centered h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons-centered {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons-centered .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Floating contact bar responsive */
@media (max-width: 768px) {
    .floating-contact-bar {
        bottom: 80px;
        left: 10px;
    }
    
    .floating-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Blog page grid responsive fix */
@media (max-width: 992px) {
    .blog-page-grid {
        grid-template-columns: 1fr !important;
    }
    
    .blog-page-grid > aside {
        order: 2;
    }
}

/* Blog grid 2 columns on tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Service detail grid responsive */
@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr !important;
    }
    
    .service-sidebar {
        order: 2;
    }
}

/* Sidebar card responsive */
.sidebar-card {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--dark-border);
    margin-bottom: 25px;
}

.sidebar-card h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Contact card in sidebar */
.contact-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
}

.contact-card .card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card .card-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.phone-btn-sidebar {
    background: linear-gradient(135deg, #10b981, #00d4ff);
    color: white;
}

.whatsapp-btn-sidebar {
    background: #25d366;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Service icon small */
.service-icon-small {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-small i {
    font-size: 1.2rem;
    color: var(--neon-blue);
}

/* Service info in sidebar */
.service-info {
    flex: 1;
}

.service-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.service-price {
    font-size: 0.85rem;
    color: var(--neon-blue);
}

/* FAQ question styling */
.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.faq-question i {
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-top: 3px;
}

.faq-question h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    padding-left: 32px;
}

/* CTA Section styling */
.cta-section {
    background: var(--gradient-1);
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* Price box styling */
.price-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.price-header i {
    color: var(--neon-blue);
    font-size: 1.3rem;
}

.price-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.price-amount span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Button variations */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-phone {
    background: linear-gradient(135deg, #10b981, #00d4ff);
    color: white;
}

.btn-phone:hover {
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Ensure proper box-sizing everywhere */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix any overflow issues */
.section, .container, .services-grid, .blog-grid, .portfolio-grid {
    overflow: visible;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* =====================================================
   ADDITIONAL MOBILE ZOOM FIX
   ===================================================== */

/* Prevent layout break on zoom */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr !important;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
    }
}

/* Stats responsive fix for all zoom levels */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Service cards zoom fix */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Portfolio grid zoom fix */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Blog grid zoom fix */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 700px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Testimonials grid zoom fix */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1100px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Footer grid zoom fix */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* Container max-width fix */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Prevent any horizontal overflow */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

section {
    overflow-x: hidden;
}

/* Fix hero section on zoom */
.hero {
    min-height: 100vh;
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Fix stat items border on zoom */
.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--dark-border);
}

.stat-item:last-child::after {
    display: none;
}

@media (max-width: 1100px) {
    .stat-item::after {
        display: none;
    }
}


/* =====================================================
   FINAL MOBILE RESPONSIVE FIX - ZOOM SAFE
   ===================================================== */

/* Viewport meta fix */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Prevent zoom breaking layout */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Stats grid - zoom safe */
.stats .stats-grid,
section.stats .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media screen and (max-width: 1000px) {
    .stats .stats-grid,
    section.stats .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stats .stat-item::after,
    section.stats .stat-item::after {
        display: none !important;
    }
}

@media screen and (max-width: 500px) {
    .stats .stats-grid,
    section.stats .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Services grid - zoom safe */
section.services .services-grid,
.services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

@media screen and (max-width: 1000px) {
    section.services .services-grid,
    .services .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 650px) {
    section.services .services-grid,
    .services .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Portfolio grid - zoom safe */
section.portfolio .portfolio-grid,
.portfolio .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

@media screen and (max-width: 1000px) {
    section.portfolio .portfolio-grid,
    .portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 650px) {
    section.portfolio .portfolio-grid,
    .portfolio .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Blog grid - zoom safe */
section.blog .blog-grid,
.blog .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

@media screen and (max-width: 1000px) {
    section.blog .blog-grid,
    .blog .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 650px) {
    section.blog .blog-grid,
    .blog .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Testimonials grid - zoom safe */
section.testimonials .testimonials-grid,
.testimonials .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

@media screen and (max-width: 1000px) {
    section.testimonials .testimonials-grid,
    .testimonials .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 650px) {
    section.testimonials .testimonials-grid,
    .testimonials .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Hero section - zoom safe */
.hero .hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: center !important;
}

@media screen and (max-width: 900px) {
    .hero .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    .hero .hero-visual {
        display: none !important;
    }
    
    .hero .hero-buttons {
        justify-content: center !important;
    }
}

/* About section - zoom safe */
.about .about-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px !important;
    align-items: center !important;
}

@media screen and (max-width: 900px) {
    .about .about-content {
        grid-template-columns: 1fr !important;
    }
    
    .about .about-image {
        order: -1 !important;
    }
}

/* Footer grid - zoom safe */
.footer .footer-grid,
footer .footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 30px !important;
}

@media screen and (max-width: 900px) {
    .footer .footer-grid,
    footer .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 550px) {
    .footer .footer-grid,
    footer .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

/* Prevent horizontal scroll at all costs */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* Fix inline grid styles */
[style*="grid-template-columns"] {
    max-width: 100% !important;
}

@media screen and (max-width: 768px) {
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 1fr 350px"],
    [style*="grid-template-columns:1fr 350px"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }
    
    [style*="grid-template-columns: 2fr 1fr"] > *,
    [style*="grid-template-columns:2fr 1fr"] > *,
    [style*="grid-template-columns: 1fr 350px"] > *,
    [style*="grid-template-columns:1fr 350px"] > * {
        margin-bottom: 30px !important;
    }
}


/* =====================================================
   FINAL MOBILE ZOOM FIX - PREVENT LAYOUT BREAK
   ===================================================== */

/* Ensure viewport doesn't break on zoom */
@media screen and (min-width: 320px) {
    html {
        min-width: 320px;
    }
}

/* Fix all grid layouts on zoom/resize */
@supports (display: grid) {
    /* Services grid - bulletproof */
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 25px !important;
    }
    
    /* Portfolio grid - bulletproof */
    .portfolio-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 25px !important;
    }
    
    /* Blog grid - bulletproof */
    .blog-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 25px !important;
    }
    
    /* Testimonials grid - bulletproof */
    .testimonials-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 25px !important;
    }
}

/* Stats grid with auto-fit */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 20px !important;
}

/* Remove stat dividers on smaller screens */
@media (max-width: 900px) {
    .stat-item::after {
        display: none !important;
    }
}

/* Footer grid with auto-fit */
.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 30px !important;
}

/* Ensure cards don't overflow */
.service-card,
.service-card-enhanced,
.blog-card,
.portfolio-item,
.testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix hero on all screen sizes */
@media (max-width: 1024px) {
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    .hero-buttons {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* Fix about section on all screen sizes */
@media (max-width: 1024px) {
    .about-content {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .about-image {
        order: -1 !important;
        margin-bottom: 30px !important;
    }
}

/* Fix contact section on all screen sizes */
@media (max-width: 1024px) {
    .contact-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100vw;
}

img, video, iframe, embed, object {
    max-width: 100% !important;
}

/* Fix inline styles that might break layout */
@media (max-width: 768px) {
    [style*="display: grid"],
    [style*="display:grid"] {
        display: block !important;
    }
    
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure buttons wrap properly */
.hero-buttons,
.cta-buttons,
.service-cta,
.cta-buttons-centered,
.cta-buttons-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

@media (max-width: 576px) {
    .hero-buttons,
    .cta-buttons,
    .service-cta,
    .cta-buttons-centered,
    .cta-buttons-inline {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn,
    .service-cta .btn,
    .cta-buttons-centered .btn,
    .cta-buttons-inline .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* Process grid responsive */
.process-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 25px !important;
}

/* FAQ grid responsive */
.faq-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
}

/* Features grid responsive */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 15px !important;
}

/* About features responsive */
.about-features {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 15px !important;
}

/* Project info grid responsive */
.project-info-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 15px !important;
}

/* Sidebar and main content layout */
.blog-page-grid,
.blog-detail-grid,
.project-detail-grid,
.service-detail-grid {
    display: grid !important;
    gap: 40px !important;
}

@media (min-width: 992px) {
    .blog-page-grid {
        grid-template-columns: 1fr 350px !important;
    }
    
    .blog-detail-grid,
    .project-detail-grid,
    .service-detail-grid {
        grid-template-columns: 2fr 1fr !important;
    }
}

@media (max-width: 991px) {
    .blog-page-grid,
    .blog-detail-grid,
    .project-detail-grid,
    .service-detail-grid {
        grid-template-columns: 1fr !important;
    }
    
    aside {
        order: 2 !important;
    }
}

/* Quick contact bar responsive */
.quick-contact-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
}

@media (max-width: 576px) {
    .quick-contact-bar {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .contact-buttons {
        width: 100% !important;
        flex-direction: column !important;
    }
    
    .quick-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Floating buttons mobile fix */
@media (max-width: 768px) {
    .floating-contact-bar {
        bottom: 90px !important;
        left: 10px !important;
    }
    
    .ref-floating-buttons {
        bottom: 90px !important;
        left: 10px !important;
    }
}

/* Ensure text doesn't overflow */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* Table responsive */
table {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

/* Code blocks responsive */
pre, code {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

/* Blockquote responsive */
blockquote {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 15px 20px !important;
}



/* =====================================================
   MOBILE MENU - SIMPLE & WORKING
   ===================================================== */

/* Menu toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: var(--dark-bg) !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 30px 20px !important;
        gap: 0 !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid var(--dark-border) !important;
    }
    
    .nav-menu a {
        display: block !important;
        padding: 18px !important;
        font-size: 1.1rem !important;
    }
}

