@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Outfit:wght@400;700;900&display=swap');

:root {
    --bg-dark: #050505;
    --accent-purple: #9d00ff;
    --accent-blue: #00d2ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-clip: text;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--bg-dark);
}

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.text-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    color: transparent;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

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

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    border-radius: 0; /* Aligning with editorial sharp edges */
}

/* Button Component */
.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(157, 0, 255, 0.5);
}

/* Layout & Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    border-radius: 40px; /* Restore rounded pill look for desktop */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    nav {
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0;
        padding: 1rem;
        justify-content: center;
    }
    .nav-links {
        display: none !important;
    }
    .logo {
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.photo-main {
    padding: 0;
    overflow: hidden;
    border-radius: 30px;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.photo-main div {
    height: 600px;
    background: url('assets/karmen-award.png') no-repeat center 10%/cover;
    filter: brightness(0.9);
}

.floating-photo {
    position: absolute;
    z-index: 2;
    padding: 5px;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-content {
        order: 1;
    }
    .hero-content p {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-visual {
        order: 2;
        margin-top: 3rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .photo-main div {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .photo-main div {
        height: 350px;
    }
    .floating-photo {
        width: 100px !important;
        height: 130px !important;
    }
}

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

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

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .excellence-grid {
        grid-template-columns: 1fr;
    }
}

/* Services and other grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.achieve-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 500px;
}

@media (max-width: 768px) {
    .achieve-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .achieve-card div:first-child {
        height: 300px;
    }
    .achieve-card div:last-child {
        padding: 3rem 2rem !important;
    }
}

/* Photo Treatment */
.photo-pro-filter {
    filter: contrast(1.1) brightness(1.05) saturate(0.9) sepia(0.1);
    position: relative;
    overflow: hidden;
}

.photo-pro-filter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, rgba(0, 210, 255, 0.05));
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.crop-container {
    padding: 0;
    position: relative;
    border-radius: 0; /* Removing rounded corners for editorial look */
    overflow: hidden;
    height: 450px;
}

.crop-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Editorial Grid Utilities */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.hero-large-image {
    grid-column: 7 / span 6;
    height: 85vh;
    background-size: cover;
    background-position: center 10%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
    z-index: 1;
}

@media (max-width: 992px) {
    .editorial-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    .hero-large-image {
        width: 100% !important;
        height: 60vh !important;
        clip-path: none !important;
        order: 2;
    }
    .hero-content {
        text-align: center;
        padding: 4rem 1rem !important;
        order: 1;
        width: 100% !important;
        overflow-x: hidden;
    }
    .hero-content p {
        margin: 0 auto 3rem !important;
        max-width: 100% !important;
    }
    .hero-content > div {
        flex-direction: column;
        gap: 1.5rem !important;
        align-items: center !important;
    }
    .hero-content .btn-primary {
        width: 100%;
    }
    .hero-detail-image {
        display: none;
    }
}

/* Services Refresh */
.services-editorial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

.service-card-premium {
    padding: 5rem 3rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card-premium:hover {
    background: rgba(157, 0, 255, 0.03);
}

.service-card-premium h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-number {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.05;
    font-family: 'Outfit', sans-serif;
}

/* Animations Refinement */
@keyframes revealFromBottom {
    from {
        clip-path: inset(100% 0 0 0);
        transform: translateY(50px);
    }
    to {
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
}

.animate-reveal {
    animation: revealFromBottom 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes fadeInUpSlide {
    from {
        opacity: 0;
        transform: translateY(40px) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.animate-fade-up-slide {
    animation: fadeInUpSlide 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s ease forwards;
}
