/* assets/css/index.css */
/* Styles specifically for the homepage */

/* 1. Variables & Base Styles
-------------------------------------------------- */
:root {
    /* Re-declaring for clarity, though they should be inherited from main.css */
    --primary: #0071e3;
    --primary-dark: #0062c4;
    --secondary: #86868b;
    --light: #f5f5f7;
    --dark: #1d1d1f;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;
}

.homepage-wrapper {
    position: relative;
}

/* Background Gradient Effect */
.homepage-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh;
    background: linear-gradient(160deg, rgba(0, 113, 227, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Hero Section
-------------------------------------------------- */
.hero {
    padding: 100px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #0071e3 0%, #00a2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.4);
}

.secondary-button {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.secondary-button:hover {
    background: rgba(0, 113, 227, 0.08);
    transform: translateY(-2px);
}

/* 3. Devices Showcase & 3D Animation
-------------------------------------------------- */
.devices-showcase {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

.device-3d {
    perspective: 1500px;
    margin: 60px auto;
    width: 300px;
    height: 300px;
    position: relative;
}

.device-model {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateDevice 20s infinite linear;
}

.device-model div {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f4ff, #e6eeff);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1), 0 20px 50px rgba(0, 113, 227, 0.2);
    backface-visibility: hidden;
}

.front { transform: translateZ(25px); }
.back { transform: rotateY(180deg) translateZ(25px); }
.top { transform: rotateX(90deg) translateZ(25px); }
.bottom { transform: rotateX(-90deg) translateZ(25px); }
.left { transform: rotateY(-90deg) translateZ(25px); }
.right { transform: rotateY(90deg) translateZ(25px); }

.screen {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.camera-notch {
    position: absolute;
    top: 10px;
    width: 100px;
    height: 20px;
    background: var(--dark);
    border-radius: 10px;
    z-index: 2;
}

.screen-content {
    text-align: center;
    z-index: 1;
    margin-top: 20px;
}
.screen-content i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}
.screen-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.screen-content p {
    font-size: 12px;
    color: var(--secondary);
}

@keyframes rotateDevice {
    from { transform: rotateX(-10deg) rotateY(0deg); }
    to { transform: rotateX(-10deg) rotateY(360deg); }
}

/* 4. How It Works Section
-------------------------------------------------- */
.process {
    padding: 80px 0;
    background: white;
    position: relative;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.process-step p {
    color: var(--secondary);
}

/* 5. Features Section
-------------------------------------------------- */
.features {
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.feature-card p {
    color: var(--secondary);
}

/* 6. CTA Section
-------------------------------------------------- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0071e3 0%, #00a2ff 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 Q50,30 100,0 L100,100 Q50,70 0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.white-button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.white-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 7. Animations
-------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 8. Responsive Design
-------------------------------------------------- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-header h2 { font-size: 2rem; }
    .device-3d { width: 250px; height: 250px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .cta-content h2 { font-size: 2rem; }
    .device-3d { width: 220px; height: 220px; }
}
