:root {
    --primary: #bb86fc;
    --primary-dark: #9d4edd;
    --secondary: #03dac6;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text: #e0e0e0;
    --text-muted: #888;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--dark-bg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

h1 {
    color: var(--primary);
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 300;
}

.app {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.app h2 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.app-icon {
    width: 100px;
    height: 100px;
    background-color: #333;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.app-logo {
    width: 216px;
    height: 40px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.screenshots {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
    height: 220px;
}

.screenshot {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.4s ease-in-out;
}

.vertical-screenshots {
    height: 340px;
}

.vertical-screenshots .screenshot {
    flex: 0 0 calc(33.333% - 10px);
}

.vertical-screenshots .screenshot img {
    object-fit: contain;
}

.screenshot:hover img {
    transform: scale(1.08);
}

ul {
    list-style-type: none;
    margin: 15px 0;
}

ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.links-grid a {
    background-color: rgba(187, 134, 252, 0.1);
    padding: 8px 15px;
    border-radius: var(--radius);
    text-align: center;
    transition: background-color 0.3s ease;
}

.links-grid a:hover {
    background-color: rgba(187, 134, 252, 0.2);
    text-decoration: none;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#privacy-policy {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
    display: none;
}

#privacy-policy h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

#privacy-policy h3 {
    color: var(--secondary);
    margin: 25px 0 15px;
}

#cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--card-bg);
    color: var(--text);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.5s ease;
}

@keyframes slide-up {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-consent button {
    background-color: var(--primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    width: 100%;
}

#cookie-consent button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.contact-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    color: var(--text);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    display: none;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.contact-tooltip h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-tooltip p {
    margin-bottom: 20px;
}

.contact-tooltip .buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.contact-tooltip button {
    flex: 1;
    background-color: var(--primary);
    color: #000;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-tooltip button.cancel {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.contact-tooltip button:hover {
    transform: translateY(-2px);
}

.contact-tooltip button.cancel:hover {
    background-color: rgba(187, 134, 252, 0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    animation: fade-bg 0.3s ease;
}

@keyframes fade-bg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .screenshots {
        flex-direction: column;
        height: auto;
    }
    
    .screenshot {
        height: 180px;
        margin-bottom: 10px;
    }
    
    .vertical-screenshots {
        height: auto;
    }
    
    .vertical-screenshots .screenshot {
        flex: 1;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.main-nav {
    display: flex;
    gap: 30px;
    padding: 10px 25px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: var(--radius);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

.portfolio-header {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
    z-index: 0;
}

.portfolio-header h2 {
    display: inline-block;
    background-color: var(--dark-bg);
    padding: 0 30px;
    position: relative;
    color: var(--secondary);
    font-size: 2rem;
    z-index: 1;
}

.hero-section {
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 60px;
    background: linear-gradient(135deg, rgba(30,30,30,0.9) 0%, rgba(20,20,20,0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-section h2::before {
    content: '⚡';
    font-size: 1.8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.hero-card {
    background-color: rgba(40, 40, 40, 0.6);
    border-radius: var(--radius);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    border-left: 3px solid var(--secondary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, transparent 150%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left-color: var(--primary);
}

.hero-card:hover::after {
    opacity: 0.05;
}

.hero-card h3 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card h3::before {
    font-size: 1.2rem;
}

.hero-card:nth-child(1) h3::before {
    content: '🤖';
}

.hero-card:nth-child(2) h3::before {
    content: '🔍';
}

.hero-card:nth-child(3) h3::before {
    content: '🚀';
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.feature-item {
    background-color: rgba(40, 40, 40, 0.5);
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-title {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hidden {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slide-in-left 0.6s ease forwards;
}

.slide-in-right {
    animation: slide-in-right 0.6s ease forwards;
}

.slide-up {
    animation: slide-up 0.6s ease forwards;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: none;
}

.portfolio-card:hover::before {
    transform: none;
}

.tech-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(187, 134, 252, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    color: var(--secondary);
}

.tech-badges {
    margin-top: 10px;
    margin-bottom: 15px;
} 