/* assets/index.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0ea5e9;
    --light: #f8fafc;
    --gray: #94a3b8;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--primary);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Navigation - Smaller Size */
header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: headerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    color: var(--accent);
}

.logo-icon {
    color: var(--accent);
    transition: transform 0.4s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

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

/* Desktop CTA Button - Top Right */
.desktop-cta {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

.desktop-cta:hover {
    background-color: #0284c7;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Controls Container */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

/* Mobile CTA Button */
.mobile-cta {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    display: none;
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

.mobile-cta:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

/* Enhanced Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    animation: fadeInRight 0.6s ease-out 0.4s both;
    position: relative;
    z-index: 1002;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Enhanced Professional Mobile Drawer - MINIMALIST */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 1000;
    padding: 25px 20px;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-logo span {
    color: var(--accent);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.05);
}

.drawer-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.drawer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.drawer-nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.drawer-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.08), transparent);
    transition: left 0.7s ease;
}

.drawer-nav-links a:hover::before {
    left: 100%;
}

.drawer-nav-links a:hover {
    background-color: rgba(14, 165, 233, 0.05);
    transform: translateX(5px);
    color: var(--accent);
}

.drawer-nav-links a i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.15);
    letter-spacing: 0.5px;
}

.drawer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.drawer-footer {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.drawer-social-links a {
    color: var(--light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.drawer-social-links a:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    transform: translateY(-2px) scale(1.05);
}

.drawer-copyright {
    text-align: center;
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Hero Section - Adjusted for smaller header */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Showcase Section */
.showcase {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    letter-spacing: 0.5px;
}

.section-title span {
    color: var(--accent);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.showcase-card {
    background-color: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.showcase-card:nth-child(1) {
    animation-delay: 0.3s;
}

.showcase-card:nth-child(2) {
    animation-delay: 0.5s;
}

.showcase-card:nth-child(3) {
    animation-delay: 0.7s;
}

.showcase-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(14, 165, 233, 0.3);
}

.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: var(--transition);
}

.showcase-card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.tech-tag:hover {
    background-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.card-link:hover {
    gap: 12px;
}

/* Admin Panel Preview */
.admin-preview {
    padding: 100px 0;
    background-color: var(--secondary);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.preview-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.preview-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.preview-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.preview-content {
    flex: 1;
}

.preview-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.preview-content p {
    color: var(--gray);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.4s; }
.feature-list li:nth-child(2) { animation-delay: 0.5s; }
.feature-list li:nth-child(3) { animation-delay: 0.6s; }
.feature-list li:nth-child(4) { animation-delay: 0.7s; }
.feature-list li:nth-child(5) { animation-delay: 0.8s; }
.feature-list li:nth-child(6) { animation-delay: 0.9s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-list i {
    color: var(--accent);
    background-color: rgba(14, 165, 233, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-list li:hover i {
    background-color: rgba(14, 165, 233, 0.2);
    transform: rotate(15deg) scale(1.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.5s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group:nth-child(4) { animation-delay: 0.7s; }

.form-control {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px) scale(1.1);
    background-color: rgba(14, 165, 233, 0.1);
}

.copyright {
    text-align: center;
    color: var(--gray);
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .preview-container {
        flex-direction: column;
    }
    
    .preview-image {
        transform: perspective(1000px) rotateX(5deg);
    }
    
    .preview-image:hover {
        transform: perspective(1000px) rotateX(0deg);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop elements on mobile */
    .desktop-cta {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Show mobile elements */
    .mobile-controls {
        display: flex;
    }
    
    .mobile-cta {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Even smaller header on mobile */
    header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    @media (max-width: 380px) {
        .mobile-drawer {
            width: 85%;
            max-width: 280px;
            padding: 20px 15px;
        }
        
        .drawer-nav-links a {
            padding: 10px 12px;
            font-size: 0.9rem;
        }
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-cta {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .preview-image {
        transform: none;
    }
    
    .mobile-drawer {
        width: 75%;
    }
}

/* Floating animation for CTA buttons */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero .desktop-cta {
    animation: fadeInUp 0.8s ease-out 0.6s forwards, float 3s ease-in-out infinite 1s;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Additional CSS for JavaScript animations */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}