/* 
    ESKMEDYA - Premium Digital Agency Styles 
    Aesthetic: Modern, Dark, Bold, Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-black: #050505;
    --bg-dark: #0f0f0f;
    --accent: #ffffff;
    --highlight: #00f2ff; /* Neon cyan */
    --text-muted: #888888;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.text-neon {
    color: var(--highlight);
    text-shadow: 0 0 5px var(--highlight), 0 0 10px var(--highlight), 0 0 20px var(--highlight);
    animation: neonPulse 2s infinite alternate;
}

.bg-neon {
    background-color: var(--highlight) !important;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 5px var(--highlight), 0 0 10px var(--highlight); }
    to { text-shadow: 0 0 10px var(--highlight), 0 0 20px var(--highlight), 0 0 40px var(--highlight); }
}

/* Tech Core V2 - Legendary Cyber Core */
.tech-core {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-circle {
    position: absolute;
    border: 1px solid rgba(0, 255, 242, 0.2);
    border-radius: 50%;
    animation: rotateHub 10s linear infinite;
}

.core-circle:nth-child(1) { width: 100%; height: 100%; border-style: dashed; animation-duration: 20s; }
.core-circle:nth-child(2) { width: 80%; height: 80%; border-width: 2px; border-color: rgba(0, 255, 242, 0.4); animation-direction: reverse; }
.core-circle:nth-child(3) { width: 60%; height: 60%; border-style: double; animation-duration: 15s; }

.core-center {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    box-shadow: 0 0 50px var(--highlight);
    animation: pulseCore 2s ease-in-out infinite;
}

.core-scan-ray {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--highlight), transparent);
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: scanRay 4s linear infinite;
}

.core-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--highlight);
    text-shadow: 0 0 10px var(--highlight);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes rotateHub {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseCore {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 80px var(--highlight); }
}

@keyframes scanRay {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Service Box Square Style */
.service-box {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--highlight) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Fixes */
@media (max-width: 991.98px) {
    .hero {
        padding-top: 120px !important;
        text-align: center;
    }
    .tech-core {
        width: 250px;
        height: 250px;
        margin: 50px auto 0;
    }
    .display-1 {
        font-size: 3.5rem !important;
    }
    .service-box {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .display-1 {
        font-size: 2.8rem !important;
    }
    .section-padding {
        padding: 60px 0 !important;
    }
    .gap-5 {
        gap: 2rem !important;
    }
    .service-link {
        justify-content: center;
    }
}

/* Marquee Animation */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Logo Styling */
.logo-main {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}
.navbar-brand:hover .logo-main {
    transform: scale(1.05);
}
@media (max-width: 767px) {
    .logo-main {
        height: 50px !important;
    }
}

/* Service Box Square Refinement */
.service-box {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
@media (max-width: 991px) {
    .service-box {
        aspect-ratio: auto !important;
        min-height: 350px;
    }
}

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    color: #a0a0a0;
}

label {
    color: #ffffff;
}

.text-muted {
    color: #888888 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* Navbar */
.navbar {
    padding: 15px 0;
    background: transparent;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}
.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}
.nav-link {
    font-weight: 500;
    color: #fff !important;
    margin: 0 15px;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.nav-link:hover, .nav-link.active {
    opacity: 1;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 30px;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Premium Button */
.btn-premium {
    background: #fff;
    color: #000;
    padding: 15px 35px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid #fff;
    transition: all 0.4s;
}
.btn-premium:hover {
    background: transparent;
    color: #fff;
}

/* Glass Card */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Service Box */
.service-box i {
    font-size: 3rem;
    margin-bottom: 25px;
    display: block;
    background: linear-gradient(45deg, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-box h4 { margin-bottom: 15px; }

/* Section Styling */
.section-padding { padding: 120px 0; }
.section-title h2 { font-size: 3.5rem; margin-bottom: 20px; }
.section-title p { color: var(--text-muted); margin-bottom: 60px; max-width: 700px; }

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
}
.portfolio-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.1); }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* Responsive */
@media (max-width: 991px) {
    .hero h1 { font-size: 3.5rem; }
    .section-title h2 { font-size: 2.5rem; }
}
