/* ========================================
   TechIcee - Shared Styles
   Consistent styling across all pages
   ======================================== */

/* CSS Variables */
:root {
    --primary: #1E3A5F;
    --navy: #0A1628;
    --dark: #0D1B2A;
    --accent: #00B4D8;
    --accent-glow: rgba(0, 180, 216, 0.3);
    --warm: #FF6B35;
    --success: #10B981;
    --text: #334155;
    --text-light: #64748B;
    --light: #F1F5F9;
    --lighter: #FFFFFF;
    --gradient-accent: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #0A1628 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Page Transitions */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    opacity: 0;
    animation: fadeInPage 0.6s ease forwards;
    overflow-x: hidden;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ENHANCED FOOTER STYLES
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--dark) 0%, #050A12 100%);
    padding: 100px 0 40px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.4);
}

.footer-brand .logo-text {
    font-size: 32px;
    color: var(--lighter);
    font-weight: 800;
    background: linear-gradient(135deg, var(--lighter) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand>p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lighter);
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg,
.social-link span {
    position: relative;
    z-index: 1;
}

.footer-column h4 {
    color: var(--lighter);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 16px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-column ul li a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.footer-column ul li a:hover::before {
    width: 100%;
}

/* Newsletter Section in Footer */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 48px;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lighter);
    margin-bottom: 8px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    color: var(--lighter);
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--gradient-accent);
    color: var(--lighter);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 80px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-logo img {
        width: 52px;
        height: 52px;
    }

    .footer-brand .logo-text {
        font-size: 26px;
    }
}

/* ========================================
   SHARED BUTTON STYLES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--lighter);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: var(--lighter);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--lighter);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--lighter);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--gradient-warm);
    color: var(--lighter);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* ========================================
   LOADING & CURSOR EFFECTS
   ======================================== */
* {
    cursor: default;
}

a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
.clickable {
    cursor: pointer;
}

input,
textarea,
select {
    cursor: text;
}

/* Custom Selection */
::selection {
    background: var(--accent);
    color: var(--lighter);
}

::-moz-selection {
    background: var(--accent);
    color: var(--lighter);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.filter_logo {
    filter: brightness(100);
}

/* Hide mobile drawer scrollbar across pages */
@media (max-width: 992px) {
    .navbar .nav-links {
        left: auto !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .navbar .nav-links::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }
}
