/* CYAD Website - Simple & Clean Design */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Simple Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Simple card hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.15);
}

/* Simple button hover */
.btn-3d {
    transition: all 0.2s ease;
}

.btn-3d:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(6, 182, 212, 0.2);
}

/* Subtle glow */
.glow {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.glow-hover:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Simple fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Stagger items */
.stagger-item {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Focus styles */
input:focus,
button:focus,
a:focus,
textarea:focus,
select:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Simple hover lift */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(6, 182, 212, 0.3), 
        transparent
    );
    margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    nav .flex {
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    /* Mobile typography */
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    /* Mobile spacing */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Mobile grid */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Mobile buttons */
    .flex.gap-4 {
        flex-direction: column;
    }
    
    .flex.gap-4 a,
    .flex.gap-4 button {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile cards */
    .card-hover:hover {
        transform: translateY(-2px);
    }
    
    /* Mobile tables */
    table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
    
    /* Mobile images */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    /* Extra small devices */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Stack stats */
    .flex.gap-8 {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Smaller padding */
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom background colors */
.bg-\[#0f172a\] {
    background-color: #0f172a;
}

.bg-\[#1e293b\] {
    background-color: #1e293b;
}

.text-\[#0f172a\] {
    color: #0f172a;
}

/* Simple neon effect */
.neon {
    color: #06b6d4;
}

/* Clean button styles */
button, a.btn, .btn {
    transition: all 0.2s ease;
}

button:hover, a.btn:hover, .btn:hover {
    transform: translateY(-1px);
}

/* Dropdown menu styles */
.relative.group:hover .absolute {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.relative.group .absolute {
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(-5px);
}

/* Navbar link active indicator animation */
nav a .absolute {
    transition: all 0.3s ease;
}

/* Smooth underline animation on hover */
nav a:not(.bg-gradient-to-r):hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #06b6d4;
    transition: width 0.3s ease;
}

nav a:not(.bg-gradient-to-r):hover::before {
    width: 80%;
}

/* Smooth navbar logo hover */
nav img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

nav img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

/* Mobile dropdown support */
@media (max-width: 768px) {
    .relative.group .absolute {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .relative.group:hover .absolute,
    .relative.group:focus-within .absolute {
        display: block;
    }
}
