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

:root {
    --color-light: #EEF0F2;
    --color-muted: #C6C7C4;
    --color-mid: #A2999E;
    --color-accent: #846A6A;
    --color-dark: #353B3C;
}

html {
    background-color: #353B3C !important; /* Both overscrolls match footer - explicit color */
    background: #353B3C !important; /* Ensure overscroll areas match footer */
}

body {
    font-family: 'Teko', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-light);
    /* Fallback for overscroll areas */
    background-attachment: local;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.3rem;
    min-height: 100vh;
}

/* Smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Offset anchored sections for fixed navbar */
[id] {
    scroll-margin-top: 60px;
}

@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 50px;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.4rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(238, 240, 242, 0.98);
    box-shadow: 0 1px 8px rgba(166, 170, 171, 0.3);
    padding: 0.3rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
}

.nav-logo h2 {
    color: var(--color-accent);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active state for current section (scrollspy) */
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    width: 100%;
}

/* Better focus visibility */
.nav-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 6px;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 7rem 0 6rem;
    display: flex;
    align-items: center;
    background: var(--color-light);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.gradient-text {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.6rem;
    color: var(--color-mid);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.3rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    user-select: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-dark);
    color: var(--color-light);
    box-shadow: 0 4px 15px var(--color-mid);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-accent);
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-light);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Modern Process Stack */
.process-stack {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(50px);
    animation: cardSlideIn 0.6s ease-out forwards;
}

.process-card[data-step="1"] { animation-delay: 0.1s; }
.process-card[data-step="2"] { animation-delay: 0.2s; }
.process-card[data-step="3"] { animation-delay: 0.3s; }
.process-card[data-step="4"] { animation-delay: 0.4s; }

.process-card:hover {
    transform: translateX(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-mid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.2rem;
    color: var(--color-light);
}

.process-card:hover .card-icon {
    transform: rotate(5deg) scale(1.1);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--color-dark);
    letter-spacing: 0.5px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--color-accent);
    line-height: 1.4;
    margin: 0;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-dark);
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.4rem;
    color: var(--color-accent);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--color-muted);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stat p {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--color-mid);
    margin-top: 0.5rem;
}

.feature h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.feature p {
    color: var(--color-accent);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--color-light);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--color-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-list details {
    background: var(--color-light);
    border: 1px solid var(--color-muted);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(53, 59, 60, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.faq-list details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(53, 59, 60, 0.1);
}

.faq-list details[open] {
    box-shadow: 0 8px 20px rgba(53, 59, 60, 0.12);
    transform: translateY(-4px);
}

.faq-list details[open] p {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--color-dark);
    letter-spacing: 1px;
    position: relative;
    padding-right: 2rem;
    transition: color 0.3s ease;
}

.faq-list summary:hover {
    color: var(--color-accent);
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 6px;
}

.faq-list p {
    margin-top: 0.75rem;
    color: var(--color-accent);
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-card {
    background: var(--color-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(53, 59, 60, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(53, 59, 60, 0.15);
}

/* Project Image Section */
.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

.project-gradient {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-gradient {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.overlay-content span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.project-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* Project Info Section */
.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0;
    letter-spacing: 1px;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-link:hover {
    background: var(--color-accent);
    transform: rotate(45deg) scale(1.1);
}

.project-link i {
    font-size: 1rem;
}

.project-description {
    font-size: 1rem;
    color: var(--color-accent);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tags .tag {
    background: var(--color-muted);
    color: var(--color-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: var(--color-dark);
    color: var(--color-light);
}

.project-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--color-muted);
}

.project-url {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-mid);
    display: flex;
    align-items: center;
}

.project-url::before {
    content: '🔗';
    margin-right: 0.5rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .project-image {
        height: 240px;
    }
    
    .project-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    .project-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
    
    .project-number {
        font-size: 2.5rem;
    }
    
    .overlay-content i {
        font-size: 2rem;
    }
    
    .overlay-content span {
        font-size: 1rem;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--color-light);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.contact-form .btn {
    align-self: center;
    width: auto;
    min-width: 200px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid var(--color-muted);
    border-radius: 10px;
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
    font-family: 'Teko', sans-serif;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-section:first-child {
        display: none; /* Hide the main Gimfy description on mobile */
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.7rem;
        padding: 0.05rem 0;
    }
    
    .footer-contact {
        gap: 0.25rem;
    }
    
    .footer-contact-item {
        font-size: 0.65rem;
        gap: 0.25rem;
    }
    
    .footer-contact-item i {
        font-size: 0.6rem;
        width: 10px;
    }
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-light);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

.footer-section p {
    color: var(--color-mid);
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer-section ul li {
        margin-bottom: 0.15rem;
    }
}

.footer-section ul li a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-section ul li a {
        font-size: 0.75rem;
        padding: 0.1rem 0;
        display: inline-block;
    }
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-mid);
    padding-top: 1rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Footer Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.footer-contact-item i {
    font-size: 0.85rem;
    color: var(--color-mid);
    width: 16px;
    flex-shrink: 0;
}

.footer-contact-item span {
    color: var(--color-muted) !important;
    text-decoration: none !important;
}

.footer-contact-item a {
    color: var(--color-muted) !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .footer-contact {
        gap: 0.3rem;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .footer-contact-item i {
        font-size: 0.7rem;
        width: 12px;
    }
}

@media (max-width: 480px) {
    .footer-contact {
        gap: 0.3rem;
    }
    
    .footer-contact-item {
        font-size: 0.85rem;
        gap: 0.35rem;
    }
    
    .footer-contact-item i {
        font-size: 0.75rem;
        width: 12px;
    }
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }


    .section-header h2 {
        font-size: 3.5rem;
    }
}

/* Mobile Landscape and Portrait */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.25rem 0;
    }
    
    .nav-logo h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background-color: var(--color-light);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px var(--color-mid);
        padding: 1.5rem 0;
        gap: 0.25rem;
        z-index: 999;
    }

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

    .nav-item {
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        padding: 4.5rem 0 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 3.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .hero-visual {
        display: block;
    }

    .process-stack {
        max-width: 100%;
        padding: 1rem 0;
    }

    .process-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
        gap: 0.8rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .card-icon i {
        font-size: 1rem;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .process-card:hover {
        transform: translateX(-5px) scale(1.01);
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 260px;
    }

    
    .section-header h2 {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 1.2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stars {
        align-self: flex-end;
    }


    /* Portfolio & FAQ */
    .portfolio,
    .faq {
        padding: 3rem 0;
    }
    

    /* About Section */
    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .stats {
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 100px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .stat p {
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        margin-top: 2rem;
    }
    
    .contact-form {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .contact-form .btn {
        width: auto;
        align-self: center;
        min-width: 200px;
        max-width: 280px;
    }


    .section-header {
        margin-bottom: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.05;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    /* Spacing */
    .hero {
        padding: 4rem 0 2.5rem;
    }

    .hero-container,
    .container {
        padding: 0 1rem;
    }

    .about,
    .contact,
    .portfolio,
    .faq {
        padding: 2.5rem 0;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: none;
    }
    
    .contact-form .btn {
        width: auto;
        align-self: center;
        min-width: 180px;
        max-width: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    /* Extra compact process stack for small screens */
    .process-stack {
        padding: 0.5rem 0;
    }
    
    .process-card {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
        gap: 0.6rem;
        border-radius: 15px;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }
    
    .card-icon i {
        font-size: 0.9rem;
    }
    
    .card-content h4 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .card-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }


    /* Stats */
    .stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .stat {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .stat h3 {
        font-size: 1.3rem;
    }
    
    .stat p {
        font-size: 0.75rem;
        line-height: 1.2;
    }


    /* Form */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }


    /* Navigation */
    .nav-link {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }
    
    /* Footer - Extra compact for small screens */
    .footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr; /* Keep 3 columns even on small screens */
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section:first-child {
        display: none; /* Keep Gimfy description hidden on small screens */
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
        padding: 0.2rem 0;
    }
    
    .footer-bottom {
        padding-top: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }


    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    .nav-link:active {
        color: var(--color-accent);
        background-color: var(--color-muted);
    }
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .contact-item,
    .footer-section ul li a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 1rem 0;
    }
}

/* Reduce shadows on mobile devices */
@media (max-width: 768px) {
    /* Reduce all box shadows on mobile */
    .navbar {
        box-shadow: 0 1px 8px rgba(53, 59, 60, 0.08) !important;
    }
    
    .portfolio-card,
    .faq-list details {
        box-shadow: 0 2px 8px rgba(53, 59, 60, 0.06) !important;
    }
    
    .btn-primary {
        box-shadow: 0 2px 6px rgba(53, 59, 60, 0.1) !important;
    }
    
    .btn-primary:hover {
        box-shadow: 0 3px 10px rgba(53, 59, 60, 0.12) !important;
    }
    
    .nav-menu {
        box-shadow: 0 5px 15px rgba(53, 59, 60, 0.1) !important;
    }
}

/* Pricing Calculator Section */
.pricing-calculator {
    padding: 5rem 0;
    background: var(--color-light);
    position: relative;
}

.pricing-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23C6C7C4" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.calculator-content {
    position: relative;
    z-index: 1;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(53, 59, 60, 0.1);
    border: 1px solid var(--color-muted);
}

.demo-notice {
    background: var(--color-dark);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-accent);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.demo-notice i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.demo-notice p {
    margin: 0;
    color: var(--color-light);
    line-height: 1.5;
}

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

.demo-link:hover {
    color: var(--color-light);
    text-decoration: underline;
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.2rem;
}

.calculator-form input[type="url"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--color-muted);
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Teko', sans-serif;
    background: var(--color-light);
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.calculator-form input[type="url"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(132, 106, 106, 0.1);
    background: var(--color-light);
}

.url-feedback {
    margin-top: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.url-feedback.success {
    color: var(--color-accent);
}

.url-feedback.error {
    color: var(--color-dark);
}

.url-feedback.warning {
    color: var(--color-mid);
}

.calculator-result,
.calculator-error {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.calculator-result {
    background: var(--color-accent);
    color: var(--color-light);
}

.calculator-error {
    background: var(--color-dark);
    color: var(--color-light);
}

.result-content,
.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.result-content i,
.error-content i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.result-content h3,
.error-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', sans-serif;
}

.result-content p,
.error-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-breakdown p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    opacity: 1;
}

.total-price {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.final-price {
    font-size: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    margin: 1.5rem 0;
    color: var(--color-light);
}

.price-disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-disclaimer p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.95;
}

.price-disclaimer p:first-child {
    margin-top: 0;
}

.price-disclaimer p:last-child {
    margin-bottom: 0;
}

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

.contact-link:hover {
    color: var(--color-light);
    text-decoration: underline;
}

.discount-offer {
    background: var(--color-muted);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.4;
    margin-bottom: 0 !important;
}

#testimonial-consent {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
    position: relative;
}

.checkbox-text {
    flex: 1;
}

#testimonial-consent:checked ~ .checkmark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

#testimonial-consent:checked ~ .checkmark::after {
    content: '✓';
    color: var(--color-light);
    font-weight: bold;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.discount-applied {
    margin: 1rem 0;
}

.original-price {
    font-size: 1.5rem;
    color: var(--color-light);
    text-decoration: line-through;
    opacity: 0.7;
    font-family: 'Bebas Neue', sans-serif;
}

.discount-label {
    font-size: 1rem;
    color: var(--color-muted);
    font-weight: 600;
    margin-top: 0.5rem;
}

.final-price.discounted {
    color: var(--color-muted);
}

.ai-thinking {
    animation: pulse 1.5s ease-in-out infinite;
}

.ai-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ai-dots .dot {
    width: 8px;
    height: 8px;
    background: var(--color-light);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.ai-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for pricing calculator */
@media (max-width: 768px) {
    .pricing-calculator {
        padding: 3rem 0;
    }
    
    .calculator-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .calculator-form input[type="url"] {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .result-content i,
    .error-content i {
        font-size: 2.5rem;
    }
    
    .result-content h3,
    .error-content h3 {
        font-size: 1.5rem;
    }
    
    .price-breakdown {
        padding: 1rem;
    }
    
    .total-price strong {
        font-size: 1.2rem;
    }
    
    .demo-notice {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .demo-notice i {
        align-self: flex-start;
    }
    
    .final-price {
        font-size: 2rem;
    }
    
    .price-disclaimer {
        padding: 1rem;
    }
    
    .price-disclaimer p {
        font-size: 0.9rem;
    }
    
    .discount-offer {
        padding: 0.75rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .original-price {
        font-size: 1.2rem;
    }
    
    .discount-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .calculator-form {
        padding: 1.5rem 1rem;
    }
    
    .calculator-form label {
        font-size: 1.1rem;
    }
    
    .calculator-result,
    .calculator-error {
        padding: 1.5rem;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
