/* AAS AL BARNAWIY ELECTRONICS ENTERPRISE - Main Stylesheet */

:root {
    --solar-yellow: #6fff00;
    --deep-blue: #1E3A8A;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 14px;
}

/* Typography */
h1,h2{
     font-size: 20px;
    font-weight: 600;
}
h4 {
    font-size: 16px;
    font-weight: 600;
}

h5 {
    font-size: 15px;
    font-weight: 500;
}

h6 {
    font-size: 14px;
    font-weight: 500;
}

p {
    font-size: 13px;
}

.small-text {
    font-size: 13px;
}

.large-text {
    font-size: 16px;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-spinner.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-grey);
    border-top: 4px solid var(--solar-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--deep-blue), #2563EB) !important;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(30, 58, 138, 0.95) !important;
    transform: translateY(-2px);
}

.navbar-brand {
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: perspective(100px) rotateX(5deg);
    transition: transform 0.3s ease;
    font-weight: 600;
}

.navbar-brand:hover {
    transform: perspective(100px) rotateX(0deg) scale(1.05);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    margin: 0 5px;
    font-size: 13px;
    font-weight: 500;
    
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--solar-yellow);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 10px;
    animation: fadeInDown 0.3s ease;
}
.dropdown-item{
    font-size: 12px;
    color: var(--deep-blue);
    font-weight: 600;

}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-blue), var(--solar-yellow));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%236fff00" opacity="0.3"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0deg);
}

.card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-img-top {
    transition: transform 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    min-height: 48px;
    font-size: 13px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-blue), #2563EB);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--solar-yellow), #FCD34D);
    border: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #333;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
    animation: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1F2937, var(--deep-blue)) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--solar-yellow), #FCD34D, var(--solar-yellow));
}

.footer-link {
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
}

.footer-link:hover {
    color: var(--solar-yellow) !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.2);
}

/* Form Styles */
.form-floating {
    position: relative;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 48px;
}

.form-control:focus {
    border-color: var(--solar-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    transform: translateY(-2px);
}

/* Accordion */
.accordion-button {
    background: var(--light-grey);
    border: none;
    border-radius: 10px !important;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--solar-yellow);
    color: #333;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .btn {
        min-width: 100px;
        min-height: 44px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .navbar-brand {
        font-size: 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
     .nav-link{
        padding-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        text-align: center;
        padding: 20px 0;
    }
    
    .footer-link {
        font-size: 13px;
    }
    .nav-link{
        padding-bottom: 15px;
    }
}