/* Pixel Haven - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Color Palette */
:root {
    --blue: #3265D3;
    --green: #2D8669;
    --yellow: #F4B400;
    --red: #EA4335;
    --gray: #202124;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-gray: #E9ECEF;
    --text-light: #6C757D;
    
    /* Light mode colors */
    --bg-color: #FFFFFF;
    --text-color: #202124;
    --section-bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --border-color: #E9ECEF;
    --text-secondary: #6C757D;
}

/* Prevent flash of unstyled content */
html {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    padding: 16px 0;
}
.logo-svg {
    height: 62px; /* 10% bigger than 56px */
    width: auto;
    display: block;
    max-width: 100%;
}
.logo-svg-dark { display: none; }
[data-theme="dark"] .logo-svg-light { display: none !important; }
[data-theme="dark"] .logo-svg-dark { display: block !important; }

/* Nav links spacing and highlight */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--blue);
    font-weight: 700;
}
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
    margin-top: 4px;
}

/* Footer logo variant */
.logo-container.footer-logo {
    justify-content: flex-start;
    margin-bottom: 0;
}
.logo-container.footer-logo .logo-svg {
    height: 64px;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-svg {
        height: 35px;
    }
    
    .logo-container.footer-logo .logo-svg {
        height: 45px;
    }
}

/* Dark mode colors */
[data-theme="dark"] {
  --bg-color: #181A1B;
  --text-color: #F3F6FA;
  --section-bg: #23272A;
  --card-bg: #23272A;
  --border-color: #353A3E;
  --text-secondary: #B0B0B0;
  --nav-bg: #202124;
  --footer-bg: #181A1B;
}

[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

[data-theme="dark"] header,
[data-theme="dark"] nav.container {
  background: #16181c !important;
  box-shadow: none !important;
  border-bottom: none !important;
}
[data-theme="dark"] .nav-links {
  background: #16181c !important;
}
[data-theme="dark"] .nav-links a {
  color: var(--text-color) !important;
}
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .nav-links a[aria-current="page"] {
  color: var(--blue) !important;
}
[data-theme="dark"] .nav-links a.active::after,
[data-theme="dark"] .nav-links a[aria-current="page"]::after {
  background: var(--blue) !important;
}
[data-theme="dark"] .service-card,
[data-theme="dark"] .consultation-card,
[data-theme="dark"] .faq-item {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
}
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .consultation-card h3,
[data-theme="dark"] .faq-question {
  color: var(--blue) !important;
}
[data-theme="dark"] .consultation-accent {
  background: linear-gradient(90deg, #3265D3 0%, #2D8669 40%, #F4B400 80%, #EA4335 100%);
}
[data-theme="dark"] .consultation-list li,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .consultation-desc,
[data-theme="dark"] .consultation-note,
[data-theme="dark"] .consultation-subtext {
  color: var(--text-secondary) !important;
}
[data-theme="dark"] .footer-narrow {
  background: var(--footer-bg) !important;
  color: var(--text-color) !important;
}
[data-theme="dark"] .footer-narrow a {
  color: #B0C4FF !important;
}
[data-theme="dark"] .footer-logo span {
  color: #B0B0B0 !important;
}
[data-theme="dark"] .btn {
  background: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}
[data-theme="dark"] .btn-primary {
  background: var(--blue);
  color: #fff;
}
[data-theme="dark"] .btn-secondary {
  background: var(--green);
  color: #fff;
}
[data-theme="dark"] .btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2.5px solid var(--blue);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
[data-theme="dark"] .section {
  background: var(--section-bg) !important;
}
[data-theme="dark"] .logo-svg {
  filter: drop-shadow(0 0 2px #0002);
}

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

body {
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    visibility: visible;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Typography */
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2.5px solid transparent;
    cursor: pointer;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn:not(:last-child) {
    margin-right: 1rem;
}

.btn-group, .hero-buttons {
    gap: 1rem;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(50, 101, 211, 0.2);
}

.btn-primary:hover {
    background-color: #2a5bb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50, 101, 211, 0.4);
}

.btn-secondary {
    background-color: var(--green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(45, 134, 105, 0.2);
}

.btn-secondary:hover {
    background-color: #246b56;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 134, 105, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--blue);
    border: 2.5px solid var(--white);
    box-shadow: 0 2px 8px rgba(50, 101, 211, 0.1);
    padding: 11.5px 25.5px;
}

.btn-outline:hover {
    background-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(50, 101, 211, 0.3);
    border-color: var(--blue);
}

/* Header */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-group, .hero-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-group .btn, .hero-buttons .btn {
    min-width: 260px;
    max-width: 100%;
    border-radius: 12px;
    min-height: 48px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    box-sizing: border-box;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}
.service-card {
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

/* Enhanced Service Cards */
.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(50, 101, 211, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 
        0 4px 12px rgba(50, 101, 211, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.service-icon::after {
    display: none;
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 8px 20px rgba(50, 101, 211, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
    background: var(--green);
}

.service-card:hover .service-icon::before {
    background: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
}

.service-card:hover .service-icon::after {
    display: none;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--blue);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}



/* Enhanced Portfolio Items */
.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(50, 101, 211, 0.2);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(50, 101, 211, 0.1), rgba(45, 134, 105, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
    color: var(--blue);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Enhanced Pricing Cards */
.pricing-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(50, 101, 211, 0.2);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border-color: var(--blue);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(50, 101, 211, 0.02) 100%);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 24px 48px rgba(50, 101, 211, 0.15);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    margin: 1rem 0;
}

.price small {
    font-size: 1rem;
    color: var(--text-light);
}

/* FAQ Accordion */
.faq-item {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--section-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--border-color);
}

.faq-question.active {
    background: var(--blue);
    color: var(--white);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Enhanced Contact Items */
.contact-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(50, 101, 211, 0.2);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 
        0 4px 12px rgba(50, 101, 211, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.contact-icon::after {
    display: none;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 8px 20px rgba(50, 101, 211, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
    background: var(--green);
}

.contact-item:hover .contact-icon::before {
    background: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
}

.contact-item:hover .contact-icon::after {
    display: none;
}

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

.blog-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--section-bg), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.blog-content h3 {
    margin-bottom: 0.5rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    text-align: left;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 220px;
    min-width: 180px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1 1 220px;
    min-width: 180px;
    margin-bottom: 0;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1 1 220px;
    min-width: 180px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    color: var(--text-light);
    margin-top: 0;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Ensure header is above loading overlay */
header {
    z-index: 10000 !important;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-svg {
    height: 120px;
    width: auto;
    animation: logoFadeIn 0.5s ease-out;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading logo (boxes only, large) */
.loading-logo-svg-large {
    height: 160px;
    width: auto;
    display: block;
    margin: 0 auto;
    animation: logoFadeIn 0.6s cubic-bezier(.4,.8,.2,1) both;
}
@keyframes logoFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure main content is always visible */
main, section, .container {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .contact-info,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .logo-svg { height: 44px; }
    .logo-container.footer-logo .logo-svg { height: 48px; }
    .footer-links { gap: 1.5rem; }
    .footer-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    .footer-content, .footer-links, .footer-bottom {
        align-items: center;
        text-align: center;
        min-width: 0;
    }
    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 2rem;
        align-items: center;
    }
}
@media (max-width: 600px) {
    nav { flex-direction: column; gap: 1rem; }
    .logo-container { padding: 10px 0; }
    .nav-links { flex-direction: column; gap: 1.2rem; align-items: flex-start; width: 100%; }
    .footer-content { gap: 1rem; }
    .footer-links { flex-direction: column; align-items: center; gap: 1rem; }
    .logo-svg, .logo-container.footer-logo .logo-svg { height: 36px; }
    .loading-logo-svg-large { height: 100px; }
    .btn-group .btn, .hero-buttons .btn {
        min-width: 140px;
        padding: 12px 12px;
        font-size: 0.95rem;
    }
    .btn-group, .hero-buttons {
        gap: 0.5rem;
    }
    .btn:not(:last-child) {
        margin-right: 0.5rem;
    }
    .btn-group, .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .btn-group .btn:not(:last-child), .hero-buttons .btn:not(:last-child) {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .btn:not(:last-child) {
        margin-right: 0 !important;
    }
    .btn-group, .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .btn-group .btn:not(:last-child), .hero-buttons .btn:not(:last-child) {
        margin-bottom: 0.7rem !important;
    }
    .btn + .btn {
        margin-top: 0.7rem !important;
    }
    .btn:not(:last-child) {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: 1rem;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 56px;
  position: relative;
}
.theme-toggle-label {
  height: 18px;
  width: 36px;
  background-color: #fff;
  border-radius: 12px;
  border: 2px solid #222;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border 0.3s;
  margin-left: 0.5rem;
  box-sizing: border-box;
  vertical-align: middle;
}
.theme-toggle-label:hover {
  transform: perspective(60px) rotateX(3deg) rotateY(-3deg);
}
#theme-toggle-checkbox:checked + .theme-toggle-label:hover {
  transform: perspective(60px) rotateX(-3deg) rotateY(3deg);
}
.theme-toggle-label::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background-color: #111;
  left: 1px;
  top: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  border: 2px solid #fff;
  transition: 0.4s;
  box-sizing: border-box;
}
#theme-toggle-checkbox:checked + .theme-toggle-label::before {
  left: 19px;
  background-color: #fff;
  border: 2px solid #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.theme-toggle-sun {
  transform: rotate(25deg);
}
.theme-toggle-moon {
  transform: rotate(25deg);
  font-size: 1.1rem;
}
[data-theme="dark"] .theme-toggle-label {
  background-color: #181A1B;
  border: 2px solid #fff;
}
[data-theme="dark"] .theme-toggle-label::before {
  background-color: #fff;
  border: 2px solid #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } 

.footer-nav nav {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.footer-nav nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    transition: color 0.3s;
    padding: 6px 0;
    position: relative;
}
.footer-nav nav a:hover {
    color: var(--yellow);
}
.footer-nav nav a.active,
.footer-nav nav a[aria-current="page"] {
    color: var(--yellow);
    font-weight: 700;
}
.footer-nav nav a:not(:last-child)::after {
    content: '|';
    color: rgba(255,255,255,0.3);
    margin: 0 0.7rem;
    font-weight: 400;
} 

.footer-narrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0.15rem 0; /* Reduced vertical padding */
    min-height: 38px;   /* Even narrower */
}
.footer-narrow .footer-logo .logo-svg {
    height: 38px; /* Smaller logo for narrow footer */
}
.footer-narrow .footer-center,
.footer-narrow .footer-meta {
    font-size: 0.92rem;
} 

.consultation-card {
  background: linear-gradient(135deg, #fff 80%, #f4f8ff 100%);
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(50,101,211,0.10), 0 1.5px 8px 0 rgba(50,101,211,0.06);
  padding: 2.5rem 2.2rem 2.2rem 2.2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: none;
}

.consultation-accent {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #3265D3 0%, #2D8669 40%, #F4B400 80%, #EA4335 100%);
  border-radius: 22px 22px 0 0;
  position: absolute;
  top: 0; left: 0;
}

.consultation-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  margin-top: 0.2rem;
}

.consultation-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #3265D3 0%, #2D8669 100%);
  border-radius: 50%;
  padding: 0.4em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(50,101,211,0.10);
}

.consultation-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3265D3;
  margin: 0;
}

.consultation-desc {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.08rem;
}

.consultation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.consultation-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 0.5em;
}

.checkmark {
  color: #2D8669;
  font-size: 1.1em;
  margin-top: 0.1em;
}

.consultation-note {
  color: var(--text-light);
  font-size: 1rem;
  margin: 1.2rem 0 0.5rem 0;
  text-align: center;
}

.consultation-cta {
  margin-top: 2rem;
  text-align: center;
}

.consultation-cta .btn {
  font-size: 1.08rem;
  padding-left: 2.2em;
  padding-right: 2.2em;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.cta-icon {
  font-size: 1.3em;
  margin-right: 0.2em;
}

.consultation-subtext {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-top: 1rem;
} 

@media (max-width: 768px) {
  header nav.container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
  }
  .logo-container {
    flex: 0 0 auto;
    padding: 0.3rem 0;
  }
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: auto;
    z-index: 1001;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    align-items: center;
    width: 100vw;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    padding: 1.2rem 0 1.5rem 0;
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0.05rem 0;
  }
  .nav-links a {
    font-size: 1.15rem;
    padding: 0.45rem 0;
    width: 100%;
    display: block;
  }
  /* Footer mobile */
  .footer-narrow {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    padding: 1.2rem 0 0.5rem 0 !important;
    min-height: unset !important;
    text-align: center !important;
  }
  .footer-logo, .footer-center, .footer-meta {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    margin: 0 auto 0.5rem auto;
  }
  .footer-meta {
    flex-direction: row !important;
    gap: 1.2rem !important;
    justify-content: center !important;
    margin-bottom: 0.2rem;
  }
  .footer-logo span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.98rem;
  }
} 

.scroll-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2.2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3265D3 60%, #2D8669 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(50,101,211,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 12000;
}
.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-to-top:active {
  transform: scale(0.93);
}
@media (max-width: 600px) {
  .scroll-to-top {
    right: 1rem;
    bottom: 1.2rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
} 

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #232a3b 0%, #181A1B 100%) !important;
}
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p {
  color: #F3F6FA !important;
  text-shadow: 0 2px 12px #0006;
}
[data-theme="dark"] footer,
[data-theme="dark"] .footer-narrow {
  background: #16181c !important;
  box-shadow: none !important;
  border-top: none !important;
}
[data-theme="dark"] .footer-logo span,
[data-theme="dark"] .footer-narrow a,
[data-theme="dark"] .footer-center,
[data-theme="dark"] .footer-meta {
  color: #e0e6f0 !important;
}
[data-theme="dark"] .footer-narrow a {
  color: #7daaff !important;
} 

[data-theme="dark"] .mobile-menu-toggle span {
  background: #fff !important;
}
[data-theme="dark"] .mobile-menu-toggle.menu-close span,
[data-theme="dark"] .mobile-menu-close,
[data-theme="dark"] .menu-close {
  background: none !important;
  color: #fff !important;
  border: none !important;
} 

.switch-knob-icon:before {
  content: '\263E';
}
[data-theme="dark"] .switch-knob-icon:before {
  content: '\2600';
} 

.theme-toggle-emoji {
  font-size: 1rem;
  vertical-align: middle;
  margin: 0;
  user-select: none;
  opacity: 0.85;
  display: inline-block;
  line-height: 1;
}
.theme-toggle-sun {
  margin-right: 0.02em;
}
.theme-toggle-moon {
  margin-left: 0.02em;
} 

.theme-toggle-group {
  display: flex;
  align-items: center;
  gap: 0;
} 

.theme-toggle-simple {
  font-size: 1.5rem;
  font-weight: 400;
  font-family: 'Segoe UI Symbol', 'Arial Unicode MS', Arial, sans-serif;
  margin-left: 1rem;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  user-select: none;
  opacity: 0.8;
  display: inline-block;
}
.theme-toggle-simple:hover {
  transform: scale(1.1);
  opacity: 1;
}
.theme-toggle-simple.moon {
  transform: rotate(45deg);
  font-size: 1.2rem;
} 

.service-card, .portfolio-item, .pricing-card, .blog-item, .contact-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.card-actions {
    margin-top: auto;
    text-align: center;
    width: 100%;
} 

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-bottom: 1.2rem;
} 

.tall-card {
    min-height: 445px !important;
} 

.services-grid .service-card {
    min-height: 375px;
} 

.portfolio-grid .portfolio-item {
    min-height: 445px;
}
.portfolio-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 1.2rem;
} 