/* style.css - Premium Corporate Design for ASAS */

:root {
    --primary: #0a2342;
    --primary-light: #16365a;
    --secondary: #c99c33;
    /* Luxury Gold */
    --secondary-hover: #b38a2b;
    --accent: #1abc9c;
    --white: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --bg-dark: #0a2342;
    --glass: rgba(255, 255, 255, 0.9);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    padding: 0;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    height: 400px;
    width: auto;
    border-radius: 0;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3c72 100%);
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 35, 66, 0.8) 0%, rgba(10, 35, 66, 0.4) 100%),
        url('../assets/projects/radamis.png') no-repeat center/cover;
    opacity: 0.4;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    background: rgba(201, 156, 51, 0.2);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid var(--secondary);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, var(--secondary), #f1c40f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.hero p {
    font-size: 1.25rem;
    opacity: 1;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 156, 51, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Marquee Section */
.moving-customers {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fcfcfc, #f8f9fa);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 600;
}

.marquee {
    overflow: hidden;
    user-select: none;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 5rem;
    min-width: fit-content;
    align-items: center;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 2.5rem));
    }

    /* Moves exactly half way for seamless loop */
}

.customer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%) contrast(0.8);
}

.customer-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.customer-item img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.customer-item span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Section General */
.section {
    padding: 6rem 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: inherit;
}

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.check-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Montserrat';
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.02);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Projects Gallery */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-img {
    height: 300px;
}

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

.project-info {
    padding: 1.5rem;
    background: var(--white);
}

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

/* Upgraded Bento Social Gallery */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 1.5rem;
}

.social-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    transition: var(--transition);
}

/* Bento Sizing */
.social-card:nth-child(1) {
    grid-column: span 2;
}

.social-card:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
    height: 100%;
}

.social-card:nth-child(3) {
    grid-column: span 1;
}

.social-card:nth-child(4) {
    grid-column: span 1;
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s;
}

.social-card:hover img {
    transform: scale(1.15) rotate(1deg);
    opacity: 1;
}

/* Electrical Glow Effect */
.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--secondary);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: inset 0 0 20px rgba(201, 156, 51, 0.3), 0 0 20px rgba(201, 156, 51, 0.3);
}

.social-card:hover::before {
    opacity: 1;
    box-shadow: inset 0 0 40px rgba(201, 156, 51, 0.5), 0 0 30px rgba(201, 156, 51, 0.4);
}

.social-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(5, 25, 51, 1) 0%,
            rgba(5, 25, 51, 0.8) 30%,
            rgba(5, 25, 51, 0.2) 60%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    z-index: 5;
    transition: var(--transition);
}

.social-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.meta-tag {
    background: rgba(201, 156, 51, 0.15);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(201, 156, 51, 0.3);
}

.meta-tag.location {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-content h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.social-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.tech-scope {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.scope-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scope-item i {
    color: var(--secondary);
    font-size: 0.6rem;
}

/* Technical 'Link' Icon */
.social-link-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    opacity: 0.5;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-card:hover .social-link-icon {
    transform: translate(5px, -5px);
    opacity: 1;
    color: var(--secondary);
}

/* Contact Section Refinement */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8rem;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-detail-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 0.2rem;
}

.contact-detail-item small {
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

#contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(201, 156, 51, 0.1);
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem 0;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 200px;
    margin-bottom: 1.5rem;
    filter: brightness(1.2);
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

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

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    nav {
        display: none;
    }

    /* Could add a mobile menu later */
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    #contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}