/**
 * Innovate Tech - Main Stylesheet
 * Custom styles for the Innovate Tech website
 */

/* Base Styles */
:root {
    --primary: #3B82F6;
    --secondary: #10B981;
    --accent: #D946EF;
    --light: #FFFFFF;
    --dark: #111827;
    --gray-light: #F3F4F6;
    --gray-dark: #1F2937;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.dark body {
    background-color: var(--dark);
    color: #F9FAFB;
}

section {
    padding: 4rem 0;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

/* Animation Classes */
.card-hover {
    transition: all 0.3s;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scroll-from-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-from-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-item-pop {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-item-pop.visible {
    opacity: 1;
    transform: scale(1);
}

/* Particle animations */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 10px) rotate(90deg); }
    50% { transform: translate(0, 20px) rotate(180deg); }
    75% { transform: translate(-10px, 10px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.15);
    animation: float 20s infinite ease-in-out;
}

/* Logo grayscale effect */
.logo-grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.logo-grayscale:hover {
    filter: grayscale(0%);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background-color 0.3s, box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Form Elements */
input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    background-color: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dark input, .dark textarea, .dark select {
    background-color: var(--gray-dark);
    border-color: #4B5563;
    color: #F9FAFB;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button, .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

button.primary, .btn-primary {
    background-color: var(--primary);
    color: white;
}

button.primary:hover, .btn-primary:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
}

button.secondary, .btn-secondary {
    border: 1px solid #D1D5DB;
}

button.secondary:hover, .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border-radius: 9999px;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

#back-to-top:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Media Queries */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
}


