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

:root {
    /* Cores da logo Digital Dog */
    --primary-blue: #00bcd4; /* Azul ciano da logo */
    --dark-blue: #0a0e1a; /* Background mais escuro e tecnológico */
    --darker-blue: #03050a; /* Azul mais escuro para contrastes */
    --light-blue: #88ddff; /* Azul claro para textos e destaques */
    --glow-blue: rgba(0, 188, 212, 0.5); /* Efeito de brilho */
    --gradient-orange: #ff6b35; /* Laranja do degradê dos óculos */
    --gradient-pink: #ff1744; /* Rosa do degradê dos óculos */
    
    /* Cores complementares */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    
    /* Tipografia */
    --font-heading: 'Space Grotesk', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaçamento */
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Bordas */
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Sombras */
    --shadow-lg: 0 10px 15px -3px rgba(0, 188, 212, 0.1), 0 4px 6px -4px rgba(0, 188, 212, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 188, 212, 0.1), 0 8px 10px -6px rgba(0, 188, 212, 0.1);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--gradient-orange) 0%, var(--gradient-pink) 100%);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-300);
    background-color: var(--dark-blue);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--light-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--darker-blue) 0%, var(--darker-blue) 80%, #000000 100%); /* Darker hero background to match other sections */
    overflow: hidden;
}


#tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#portfolio-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's behind content */
}

#portfolio-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's behind content */
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

/* Ajuste para desktop - logo e headline mais para cima */
@media (min-width: 1024px) {
    .hero-container {
        align-items: flex-start;
        padding-top: 8vh; /* Mais para cima no desktop */
    }
    
    .hero-logo {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
}

.hero-content {
    max-width: 1000px;
}

.hero-logo {
    margin-bottom: var(--space-lg);
    margin-top: 0;
}

.hero-logo-img {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.4));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.highlight-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientAnimation 3s ease-in-out infinite;
}

@keyframes gradientAnimation {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-blue);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-blue);
    font-weight: 500;
    background: rgba(0, 188, 212, 0.08);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 188, 212, 0.15);
    transition: all 0.3s ease;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--light-blue);
}

.feature-item:hover {
    background: rgba(0, 188, 212, 0.12);
    border-color: rgba(0, 188, 212, 0.25);
    transform: translateY(-1px);
}

.contact-item i {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    background: transparent;
    color: var(--light-blue);
    border: 2px solid var(--primary-blue);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-blue);
}

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

.mockup-container {
    position: relative;
    perspective: 1000px;
}

.device-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    animation: deviceFloat 4s ease-in-out infinite;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

@keyframes deviceFloat {
    0%, 100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-10px); }
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--darker-blue);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: var(--space-lg);
}

.vet-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    height: 40px;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.preview-text {
    height: 20px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 0.25rem;
    animation: shimmer 1.5s ease-in-out infinite;
}

.preview-text.small {
    height: 15px;
    width: 70%;
}

.preview-cta {
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-top: auto;
    animation: glow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.6); }
}

/* Sections */
.services, .portfolio, .pricing, .about, .contact {
    padding: var(--space-3xl) 0;
    position: relative;
}

.services {
    background-color: var(--darker-blue);
    overflow: hidden;
    background-image: linear-gradient(0deg, transparent 70%, #000000 100%), /* New gradient for top transition */
                      linear-gradient(180deg, var(--darker-blue) 70%, #000000 100%); /* Fade to black to match hero-services transition */
    background-size: 100% 100%, 100% 100%; /* Two gradients, both covering full size */
    background-position: top, bottom; /* Position top gradient at top, bottom gradient at bottom */
    background-repeat: no-repeat, no-repeat; /* Both gradients don't repeat */
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none; /* Removed illumination */
    pointer-events: none;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.portfolio {
    background-color: var(--darker-blue);
    overflow: hidden;
    background-image: linear-gradient(0deg, transparent 70%, #000000 100%); /* Start with black and fade to transparent to match hero-services transition */
    background-size: 100% 100%;
    background-position: top;
    background-repeat: no-repeat;
}



.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none; /* Removed illumination */
    pointer-events: none;
    z-index: 0;
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

/* Pricing Section */
.pricing {
    background-color: var(--darker-blue);
    overflow: hidden;
    background-image: linear-gradient(180deg, transparent 30%, rgba(0, 188, 212, 0.02) 100%);
    background-size: 100% 100%;
    background-position: top;
    background-repeat: no-repeat;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 188, 212, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pricing .container {
    position: relative;
    z-index: 1;
}

.pricing-content {
    text-align: center;
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(77, 208, 225, 0.03) 100%);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 188, 212, 0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
}

.pricing-header {
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, transparent 100%);
}

.price-tag {
    margin-bottom: var(--space-md);
}

.price-prefix {
    display: block;
    color: var(--light-blue);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-suffix {
    display: block;
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 400;
}

.pricing-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-features {
    padding: 0 var(--space-xl);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.pricing-features .feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(0, 188, 212, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
}

.pricing-features .feature-item:hover {
    background: rgba(0, 188, 212, 0.05);
    border-color: rgba(0, 188, 212, 0.2);
    transform: translateX(5px);
}

.pricing-features .feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.pricing-features .feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
    font-size: 1rem;
}

.feature-desc {
    color: var(--light-blue);
    font-size: 0.875rem;
}

.pricing-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    margin: 0 var(--space-xl) var(--space-xl);
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-lg);
}

.notice-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--gradient-orange);
    margin-top: 2px;
}

.notice-icon svg {
    width: 100%;
    height: 100%;
}

.pricing-notice p {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.pricing-cta {
    padding: var(--space-xl);
    text-align: center;
}

.pricing-button {
    width: 100%;
    max-width: 400px;
    justify-content: center;
    font-size: 1rem;
    padding: var(--space-lg) var(--space-xl);
}

.about {
    background-color: var(--darker-blue);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none; /* Removed illumination */
    pointer-events: none;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.contact {
    background: linear-gradient(180deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    border-top: 3px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(0, 188, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255, 107, 53, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.contact .container {
    position: relative;
    z-index: 1;
}


.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-pre-title {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
        border-color: var(--primary-blue);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
        border-color: var(--light-blue);
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--light-blue);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.04) 0%, rgba(77, 208, 225, 0.02) 100%);
    border-left: 3px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}


.service-card.featured {
    border-left: 5px solid var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(77, 208, 225, 0.04) 100%);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.2);
}

.service-badge {
    position: absolute;
    top: -15px;
    right: var(--space-lg);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-blue);
    stroke: var(--primary-blue);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.5);
    transform: scale(1.05);
}

.service-card:hover .service-icon svg {
    color: var(--white);
    stroke: var(--white);
}

.service-content {
    flex: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

.service-description {
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.service-features li {
    background: rgba(0, 188, 212, 0.1);
    color: var(--light-blue);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    border: 1px solid rgba(0, 188, 212, 0.2);
    transition: all 0.2s ease;
}

.service-features li:hover {
    background: rgba(0, 188, 212, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.portfolio-item {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(77, 208, 225, 0.05) 100%);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1583337130417-3346a1be7dee?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.portfolio-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: all 0.3s ease;
}

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

.portfolio-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    transform: scale(1.05);
}

.portfolio-content {
    padding: var(--space-xl);
}

.portfolio-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--light-blue);
    margin-bottom: var(--space-lg);
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* BACKUP - Shuffle Portfolio Styles */

/* Shuffle Portfolio Styles */
.shuffle-portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.shuffle-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 900px; /* Reverted to original desktop height */
    perspective: 1000px;
    margin: 0 auto;
    z-index: 2;
}

.shuffle-stack {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
    overflow: visible;
    perspective: 1000px;
    transform-style: preserve-3d;
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling and pinch zoom, block horizontal pan */
}

.shuffle-stack:active {
    cursor: grabbing;
}

/* Mobile Navigation Buttons */
.mobile-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: none;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 20;
    pointer-events: none;
}

.nav-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent; /* Changed to transparent */
    border: 3px solid var(--primary-blue); /* Increased border width and set to primary blue */
    color: var(--primary-blue); /* Set color to primary blue for the SVG stroke */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
}

.nav-button:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.4);
}

.nav-button:active {
    transform: scale(0.95);
    background: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.6);
    border-color: var(--primary-blue);
    transition: all 0.1s ease;
}

/* Animação de piscada para os botões */
.nav-button.flash {
    background: var(--primary-blue) !important;
    animation: buttonFlash 0.2s ease-out;
}

@keyframes buttonFlash {
    0% {
        background: var(--primary-blue);
        transform: scale(0.95);
    }
    50% {
        background: var(--primary-blue);
        transform: scale(1.05);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

.nav-button svg {
    width: 24px;
    height: 24px;
}

/* Show buttons only on mobile */
@media (max-width: 768px) {
    .mobile-nav-buttons {
        display: flex;
    }
    
    .shuffle-stack {
        cursor: default; /* Remove grab cursor on mobile */
    }
    
    .shuffle-controls .drag-hint {
        display: none !important; /* Hide drag hint text on mobile since we have navigation buttons */
    }
    
    .drag-hint {
        display: none !important; /* Hide drag hint text on mobile since we have navigation buttons */
    }
}

.portfolio-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(77, 208, 225, 0.05) 100%);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 188, 212, 0.1);
    cursor: pointer;
    overflow: hidden;
    /* Enhanced anti-flicker optimizations */
    backface-visibility: hidden;
    transform-origin: center center;
    will-change: transform, opacity;
    -webkit-transform: translateZ(0); /* Force GPU acceleration */
    transform: translateZ(0); /* Force GPU acceleration */
    /* Additional mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Improve rendering performance */
    contain: layout style paint;
}

.portfolio-card.active {
    z-index: 10;
    transform: translateY(0) translateX(0) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 188, 212, 0.3);
    border-color: var(--primary-blue);
}

/* Hide tags on non-active cards for cleaner look */
.portfolio-card:not(.active) .portfolio-tags {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-card:not(.active) .portfolio-content h3 {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.portfolio-card:not(.active) .portfolio-content p {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.portfolio-card.active .portfolio-tags {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
}

.portfolio-card.active .portfolio-content h3,
.portfolio-card.active .portfolio-content p {
    opacity: 1;
    transition: opacity 0.3s ease 0.1s;
}

.portfolio-card.shuffle-out {
    transform: translateX(-150%) rotateY(-45deg);
    opacity: 0;
    z-index: 0;
}

.portfolio-card.shuffle-in {
    transform: translateX(150%) rotateY(45deg);
    opacity: 0;
    z-index: 0;
    animation: shuffleIn 0.6s ease-out forwards;
}

@keyframes shuffleIn {
    0% {
        transform: translateX(150%) rotateY(45deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

/* Drag functionality styles */
.portfolio-card {
    cursor: grab;
}

.portfolio-card:active {
    cursor: grabbing;
}

/* ✅ IMPROVED: Optimized dragging state for natural 1:1 feel */
.portfolio-card.dragging {
    cursor: grabbing !important;
    z-index: 15;
    transition: none !important;
    user-select: none;
    filter: brightness(1.02); /* ✅ Minimal brightness change for subtle feedback */
    transform-origin: center center; /* ✅ Ensure transforms feel natural */
    pointer-events: none; /* Improve drag performance */
    /* ✅ Hardware acceleration for smooth dragging */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.shuffle-stack.shuffle-dragging {
    user-select: none;
}

/* ✅ IMPROVED: More subtle swipe feedback that doesn't interfere with drag feel */
.portfolio-card.swipe-right {
    box-shadow: 
        1px 0 12px rgba(0, 255, 150, 0.2), 
        0 8px 24px rgba(0, 188, 212, 0.15),
        0 0 20px rgba(0, 255, 150, 0.15);
    transition: box-shadow 0.1s ease-out; /* ✅ Quick, smooth feedback */
}

.portfolio-card.swipe-left {
    box-shadow: 
        -1px 0 12px rgba(255, 100, 150, 0.2), 
        0 8px 24px rgba(255, 107, 53, 0.15),
        0 0 20px rgba(255, 100, 150, 0.15);
    transition: box-shadow 0.1s ease-out; /* ✅ Quick, smooth feedback */
}

/* Enhanced drag animations */
.portfolio-card {
    will-change: transform, opacity;
    cursor: grab;
    touch-action: auto; /* Changed from pan-x to auto to allow vertical scrolling */
}

.portfolio-card:hover:not(.dragging) {
    transform: translateY(-2px) scale(1.01);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother hover transition */
}

/* Disable hover effects on touch devices to prevent performance issues */
@media (hover: none) {
    .portfolio-card:hover:not(.dragging) {
        transform: none;
    }
}

.portfolio-card.active:hover:not(.dragging) {
    transform: translateY(-4px) scale(1.015); /* Reduced scale change for smoother performance */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Disable active hover on touch devices */
@media (hover: none) {
    .portfolio-card.active:hover:not(.dragging) {
        transform: translateY(0) scale(1.02); /* Keep base active scale only */
    }
}

/* Stack effect for all cards */
.shuffle-stack .portfolio-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    cursor: grab;
    pointer-events: all;
    z-index: 1;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, z-index;
}

.shuffle-stack .portfolio-card.active {
    z-index: 15;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 188, 212, 0.3);
}

/* Prevent image dragging that might interfere */
.portfolio-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Better visual feedback during drag */
.portfolio-card.dragging {
    z-index: 100 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 50px rgba(0, 188, 212, 0.2);
    filter: brightness(1.1) saturate(1.2);
    transform-style: preserve-3d;
    /* Disable transitions during drag for better performance */
    transition: none !important;
    cursor: grabbing !important;
}

/* Screenshot Placeholder Styles */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.browser-bar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.browser-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
    margin-left: 8px;
}

.screenshot-content {
    padding: 24px;
    height: calc(100% - 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(77, 208, 225, 0.05) 0%, transparent 50%);
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

/* Remove padding when there's a real screenshot image */
.screenshot-content:has(.screenshot-image) {
    padding: 0;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.placeholder-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 16px;
}

.placeholder-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.placeholder-features span {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

/* Hover effect for placeholder */
.portfolio-card:hover .screenshot-placeholder {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.portfolio-card:hover .placeholder-text {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced smooth transitions for non-dragging states with mobile optimization */
.portfolio-card:not(.dragging) {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* Smoother, slower easing */
                box-shadow 0.4s ease, 
                filter 0.4s ease,
                z-index 0s ease 0.1s; /* Delayed z-index to prevent flickering */
}

/* Reduced animation complexity on mobile devices */
@media (max-width: 768px), (pointer: coarse) {
    .portfolio-card:not(.dragging) {
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    box-shadow 0.3s ease,
                    filter 0.3s ease;
    }
}

/* Enhanced stagger animation keyframes - smoother and slower */
@keyframes stackStagger {
    0% {
        transform: translateY(15px) scale(0.96);
        opacity: 0;
    }
    30% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile-optimized version with reduced complexity */
@media (max-width: 768px), (pointer: coarse) {
    @keyframes stackStagger {
        0% {
            transform: translateY(10px) scale(0.97);
            opacity: 0;
        }
        50% {
            opacity: 0.6;
        }
        100% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
}

/* Clean reset state for perfect positioning - slower and smoother */
.portfolio-card.stack-reset {
    animation: stackStagger 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Faster reset on mobile to maintain responsiveness */
@media (max-width: 768px), (pointer: coarse) {
    .portfolio-card.stack-reset {
        animation: stackStagger 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

/* Enhanced active card emphasis */
.portfolio-card.active.enhanced {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3), 
        0 0 40px rgba(0, 188, 212, 0.3),
        0 0 80px rgba(0, 188, 212, 0.1);
    border-color: var(--primary-blue);
    transform: translateZ(20px); /* 3D pop effect */
}

.card-preview {
    height: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .card-preview img {
    transform: scale(1.05);
}

.card-info {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-info p {
    color: var(--light-blue);
    margin-bottom: var(--space-lg);
    font-weight: 500;
    font-size: 1rem;
}

.result-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(77, 208, 225, 0.1) 100%);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 188, 212, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

/* Shuffle Controls */
.shuffle-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
}

.drag-hint {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--light-blue);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: var(--space-sm);
}

.drag-hint .drag-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-blue);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.shuffle-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.shuffle-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.2);
    border: 2px solid rgba(0, 188, 212, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 12px rgba(0, 188, 212, 0.4);
    transform: scale(1.2);
}

.shuffle-play-pause {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}

.shuffle-play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.shuffle-play-pause:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.shuffle-play-pause.paused {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.shuffle-play-pause.paused:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.shuffle-play-pause svg {
    width: 20px;
    height: 20px;
}

/* Portfolio Summary */
.portfolio-summary {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(77, 208, 225, 0.03) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.summary-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.summary-stats .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.summary-stats .stat-label {
    color: var(--light-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.cta-portfolio {
    margin-top: var(--space-xl);
}

.portfolio-cta {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.portfolio-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.portfolio-cta .cta-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.portfolio-cta:hover .cta-arrow {
    transform: translateX(5px);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.about-text {
    max-width: 100%;
    overflow: hidden;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(77, 208, 225, 0.03) 100%);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-blue);
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.digital-dog-illustration {
    position: relative;
    padding: var(--space-2xl);
}

.about-logo {
    max-width: 100%;
    width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 188, 212, 0.3)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
}

.contact-info {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(77, 208, 225, 0.03) 100%);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--light-blue);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.contact-logo {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-logo-img {
    max-width: 100%;
    width: 280px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 10px 20px rgba(0, 188, 212, 0.2));
    transition: all 0.3s ease;
}

.contact-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 188, 212, 0.3));
}

.contact-icon {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.contact-form {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(77, 208, 225, 0.05) 100%);
    backdrop-filter: blur(15px);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.4), 0 4px 20px rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
}

.form-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.submit-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.form-submit:hover .submit-arrow {
    transform: translateX(4px);
}

.form-message {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

#form-success-message {
    margin-top: var(--space-lg);
    margin-bottom: 0;
}

.form-message-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--darker-blue) 0%, #000000 100%);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 3px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 188, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(77, 208, 225, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-xl);
}

.footer-section {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(77, 208, 225, 0.02) 100%);
    border: 1px solid rgba(0, 188, 212, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}


.footer-logo img {
    height: 80px;
    margin-bottom: var(--space-md);
}

.footer-logo p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 188, 212, 0.1);
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 50%;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
    transform: translateY(-2px);
}

.social-link i {
    width: 20px;
    height: 20px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--light-blue);
}

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

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 188, 212, 0.2);
    padding-top: var(--space-lg);
    text-align: center;
    margin-top: var(--space-xl);
}

.footer-bottom p {
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: var(--space-xl) 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero-container {
        padding: var(--space-lg) var(--space-lg) var(--space-xl);
        justify-content: flex-start;
        align-items: flex-start;
        min-height: 100vh;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 100vh;
        padding-top: var(--space-lg);
    }

    .hero-logo {
        margin-top: 0;
        margin-bottom: var(--space-lg);
    }

    .hero-logo-img {
        height: 100px;
    }

    .hero-visual {
        order: -1;
        margin-bottom: var(--space-2xl);
    }

    .device-mockup {
        width: 250px;
        height: 500px;
        transform: none;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .services-grid {
        gap: var(--space-lg);
    }

    .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-lg);
    }

    .service-features {
        justify-content: center;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

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

    /* Responsive Shuffle Portfolio */
    .shuffle-container {
        max-width: 500px;
        height: 750px; /* Adjusted for original desktop aspect ratio (2:3 for 500px width) */
    }

    .shuffle-controls {
        gap: var(--space-lg);
    }

    .shuffle-play-pause {
        width: 45px;
        height: 45px;
    }

    .shuffle-play-pause svg {
        width: 18px;
        height: 18px;
    }

    .portfolio-summary {
        padding: var(--space-xl);
    }

    .summary-stats .stat-number {
        font-size: 2rem;
    }

    .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .about-text .section-title {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card,
    .contact-form {
        padding: var(--space-lg);
    }

    .about-logo {
        width: 280px;
    }

    .contact-logo-img {
        width: 180px;
    }

    /* Mobile Shuffle Portfolio */
    .shuffle-container {
        max-width: 380px;
        height: 570px; /* Adjusted for original desktop aspect ratio (2:3 for 380px width) */
    }

    .card-preview {
        height: 240px;
    }

    .card-info {
        padding: var(--space-lg);
    }

    .card-info h3 {
        font-size: 1.25rem;
    }

    .card-info p {
        font-size: 0.9rem;
    }

    .result-stats {
        gap: 0.5rem;
    }

    .stat {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .summary-stats .stat-number {
        font-size: 1.75rem;
    }

    .portfolio-cta {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }

    .hero-features {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
        margin-bottom: var(--space-lg);
    }

    .hero-features .feature-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.cta-primary:focus,
.cta-secondary:focus,
.portfolio-btn:focus,
.form-submit:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:active {
    animation: whatsappClick 0.3s ease-out;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    }
}

@keyframes whatsappClick {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 15px 40px rgba(255, 107, 53, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-blue);
}

/* Performance optimizations for low-end mobile devices */
@media (max-width: 768px) and (max-device-pixel-ratio: 1.5) {
    .portfolio-card {
        /* Disable complex shadows on low-end devices */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
    
    .portfolio-card.active {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 188, 212, 0.2);
    }
    
    /* Simplify backdrop filters */
    .card-info {
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.95);
    }
}

/* Ultra-low performance mode for very weak devices */
@media (max-width: 480px) and (max-device-pixel-ratio: 1) {
    .portfolio-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        filter: none; /* Remove all filters */
    }
    
    .portfolio-card.active {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    /* Disable blur effects entirely */
    .card-info {
        backdrop-filter: none;
        background: rgba(15, 23, 42, 1); /* Solid background */
    }
}

/* Additional performance optimization for battery saving mode */
@media (prefers-reduced-motion: reduce), (prefers-color-scheme: no-preference) {
    .portfolio-card {
        will-change: auto; /* Don't force GPU layers when motion is reduced */
    }
}

/* Optimize for devices with limited processing power */
@supports not (backdrop-filter: blur(10px)) {
    .card-info {
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.95);
    }
    
    .contact-form {
        backdrop-filter: none;
        background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(77, 208, 225, 0.05) 100%);
    }
}

/* Dynamic performance optimization classes */
.low-performance .portfolio-card {
    /* Simplified shadows for low-performance devices */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.low-performance .portfolio-card.active {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.low-performance .portfolio-card:not(.dragging) {
    /* Faster, simpler transitions */
    transition: transform 0.3s ease !important;
}

.low-performance .card-info {
    /* Remove all blur effects */
    backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.95) !important;
}

.low-fps .portfolio-card {
    /* Ultra-simple mode for very low FPS */
    box-shadow: none !important;
    border: 2px solid rgba(0, 188, 212, 0.5);
}

.low-fps .portfolio-card.active {
    border-color: var(--primary-blue);
}

.low-fps .portfolio-card:not(.dragging) {
    /* Minimal transitions */
    transition: transform 0.2s linear, border-color 0.2s ease !important;
}

/* Mobile-specific optimizations */
.mobile-device .portfolio-card.dragging {
    filter: none !important; /* Remove brightness filter on mobile */
}

.mobile-device .card-preview img {
    /* Disable hover scale on mobile */
    transform: none !important;
}

/* Throttle animations on battery saver mode */
@media (prefers-reduced-data: reduce) {
    .portfolio-card {
        background: rgba(0, 188, 212, 0.05) !important;
    }
    
    .portfolio-card:not(.dragging) {
        transition-duration: 0.1s !important;
    }
}

/* Pricing Section Responsive Styles */
@media (max-width: 768px) {
    .pricing-card {
        margin: 0 var(--space-lg) var(--space-2xl);
    }
    
    .pricing-header {
        padding: var(--space-lg) var(--space-lg) var(--space-md);
    }
    
    .price-value {
        font-size: 2.75rem;
    }
    
    .pricing-badge {
        position: static;
        display: inline-block;
        margin-top: var(--space-md);
    }
    
    .pricing-features {
        padding: 0 var(--space-lg);
    }
    
    .pricing-features .feature-item {
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .pricing-notice {
        margin: 0 var(--space-lg) var(--space-lg);
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .pricing-cta {
        padding: var(--space-lg);
    }
    
    .pricing-button {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .price-value {
        font-size: 2.25rem;
    }
    
    .feature-grid {
        gap: var(--space-md);
    }
    
    .pricing-features .feature-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .pricing-features .feature-icon {
        align-self: center;
    }
}
