/* 
========================================
   Virex Media - Main Stylesheet
======================================== 
*/

:root {
    --primary-color: #06b6d4;
    /* Cyan */
    --secondary-color: #d946ef;
    /* Magenta */
    --bg-color: #0b0f1a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f8fafc;
    /* Off-White */
    --text-muted: #94a3b8;
    /* Light Gray */
    --gradient-main: linear-gradient(135deg, #06b6d4 0%, #d946ef 100%);
    --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(217, 70, 239, 0.5));
    --navbar-height: 80px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --container-width: 1200px;
    --border-radius: 16px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.gradient-text {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
    background-clip: padding-box;
}

.btn-primary::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 ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5), 0 0 15px rgba(217, 70, 239, 0.3);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn i {
    margin-left: 8px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-link.btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--navbar-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Abstract Shapes */
.shape {
    position: absolute;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

/* Services Section */
.section {
    padding: 100px 0;
}

/* Vision Section Refinement */
.vision {
    background: rgba(6, 182, 212, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vision-container {
    max-width: 900px !important;
    text-align: center;
}

.vision-content {
    padding: 20px;
}

.vision-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-top: 1.5rem;
    font-weight: 300;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

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

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.3);
}

.service-card:hover::after {
    opacity: 0.03;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--gradient-main);
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.about-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: var(--glass-border);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 50px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card-item {
    background: rgba(15, 23, 42, 0.5);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-card-item:hover {
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.link-btn {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

.link-btn:hover {
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Footer */
.footer {
    background: #060912;
    padding: 80px 0 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.footer-brand p {
    margin-top: 8px;
    /* Slightly tighter for better grouping */
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0;
    padding-left: 2px;
}

.footer h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

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

.social-icons a:hover {
    background: var(--gradient-main);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* 
   Showcase Slider Styles
*/
.showcase-section {
    padding-bottom: 50px;
    background: linear-gradient(to bottom, var(--bg-color), #0b1120);
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Preserve aspect ratio */
    min-width: 100%;
    min-height: 100%;
    background-color: #0b1120;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Floating Hero Posts */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-posts-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-posts-container.left {
    left: 5%;
}

.hero-posts-container.right {
    right: 5%;
}

.floating-post {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0.6;
    transition: 0.5s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.floating-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Diagonal Layout - Left */
.p1 {
    top: 15%;
    left: 0;
    transform: rotate(-10deg);
    animation: float1 6s infinite ease-in-out;
}

.p2 {
    top: 45%;
    left: 40%;
    transform: rotate(5deg);
    animation: float2 8s infinite ease-in-out;
}

.p3 {
    top: 75%;
    left: 10%;
    transform: rotate(-5deg);
    animation: float1 7s infinite ease-in-out;
}

/* Diagonal Layout - Right */
.p4 {
    top: 10%;
    right: 10%;
    transform: rotate(8deg);
    animation: float2 6s infinite ease-in-out;
}

.p5 {
    top: 40%;
    right: 45%;
    transform: rotate(-6deg);
    animation: float1 8s infinite ease-in-out;
}

.p6 {
    top: 70%;
    right: 5%;
    transform: rotate(12deg);
    animation: float2 7s infinite ease-in-out;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-15px) rotate(-8deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(15px) rotate(8deg);
    }
}

/* Responsive Media Queries */
/* Hide hero posts on mobile to avoid clutter */
@media (max-width: 1200px) {
    .hero-posts-container {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    .footer-brand p {
        margin: 20px auto;
    }

    .slider-container {
        height: 300px;
        /* Reduced height for mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    .vision .section-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
    }

    .slider-container {
        height: 250px;
    }

    .section {
        padding: 60px 0;
    }

    .service-card {
        padding: 25px 20px;
    }
}