/* 
   Tooltopia - AI-Driven App Development Website
   Color Scheme: Modern AI-focused palette with gradients
*/

:root {
    /* Primary colors */
    --primary: #6e00ff;          /* Deep purple for AI theme */
    --secondary: #00e5ff;        /* Bright cyan for tech feel */
    --accent: #ff3d71;           /* Pink-red for accents */
    
    /* Neutral colors */
    --dark: #151a30;             /* Dark blue-purple for backgrounds */
    --darker: #0c1023;           /* Darker shade for contrast */
    --light: #f5f6fa;            /* Light gray-white for text */
    --medium: #778ca3;           /* Medium gray for secondary text */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6e00ff 0%, #8a2be2 100%);
    --gradient-secondary: linear-gradient(135deg, #00e5ff 0%, #00a3ff 100%);
    --gradient-accent: linear-gradient(135deg, #ff3d71 0%, #ff6b6b 100%);
    --gradient-dark: linear-gradient(135deg, #151a30 0%, #0c1023 100%);
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--darker);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--medium);
}

.highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Links & Buttons */
a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(110, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 0, 255, 0.6);
    color: var(--light);
}

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

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

.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Header & Navigation */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 16, 35, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 1px;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: 1rem;
}

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

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 50%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    z-index: 1;
    position: relative;
}

.ai-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.2rem;
}

/* About Section */
.about {
    position: relative;
    background-color: var(--dark);
}

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.2) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(21, 26, 48, 0.5);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 0, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 0, 255, 0.1) 0%, transparent 100%);
    z-index: -1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(110, 0, 255, 0.3);
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

/* Statistics Section */
.statistics {
    background: var(--gradient-dark);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* Works Section */
.works {
    background-color: var(--darker);
    position: relative;
    overflow: hidden;
}

.works::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.work-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-image {
    height: 250px;
    width: 100%;
    position: relative;
}

.work-image.placeholder {
    background: linear-gradient(135deg, #1e2542 0%, #2a3158 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 3rem;
}

.work-image.placeholder::before {
    content: '\f1c5';
    font-family: 'Font Awesome 5 Free';
    opacity: 0.3;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 16, 35, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

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

.overlay h3 {
    color: var(--light);
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.overlay p {
    color: var(--medium);
    margin-bottom: 20px;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.work-item:hover .overlay h3,
.work-item:hover .overlay p,
.work-item:hover .overlay .btn {
    transform: translateY(0);
}

/* Features Section */
.features {
    background-color: var(--dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="1" cy="1" r="1" fill="%23ffffff10"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary);
    min-width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Get App Section */
.get-app {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.get-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="3" cy="3" r="3" fill="%23ffffff10"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.get-app-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.get-app h2 {
    color: var(--light);
    margin-bottom: 20px;
}

.get-app p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.store-buttons a {
    display: inline-block;
    transition: all 0.3s ease;
}

.store-buttons a:hover {
    transform: translateY(-5px);
}

.store-buttons img {
    height: 60px;
}

/* Contact Section */
.contact {
    background-color: var(--darker);
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(110, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.contact-form {
    background: rgba(21, 26, 48, 0.5);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(110, 0, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(110, 0, 255, 0.2);
    background: rgba(12, 16, 35, 0.7);
    color: var(--light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(110, 0, 255, 0.1);
}

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

/* Footer */
footer {
    background-color: var(--dark);
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    color: var(--medium);
}

.footer-links h3,
.footer-social h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--medium);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(110, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-newsletter form {
    display: flex;
    margin-top: 20px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(110, 0, 255, 0.2);
    background: rgba(12, 16, 35, 0.7);
    color: var(--light);
    font-family: var(--font-primary);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-newsletter button {
    padding: 0 20px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--medium);
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 20px;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .footer-newsletter button {
        border-radius: 8px;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 70px 0;
    }
    
    .hero {
        padding: 120px 0 70px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}
