/* ==================== MAGSTUDIO MAIN - STYLES ==================== */

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

:root {
    --purple-vibrant: #6c5ce7;
    --purple-deep: #5b4cff;
    --purple-light: #a29bfe;
    --pink-medium: #ff8fab;
    --pink-dark: #fb6f92;
    --yellow-bright: #ffe156;
    --yellow-gold: #ffd000;
    --orange-warm: #f59e0b;

    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray-700: #404060;
    --gray-600: #666;
    --gray-500: #888;
    --gray-400: #aaa;
    --gray-300: #ccc;
    --gray-200: #e8e8e8;
    --gray-100: #f5f5f7;
    --white: #ffffff;

    --gradient-purple: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 50%, #5b4cff 100%);
    --gradient-pink: linear-gradient(135deg, #ffc2d1 0%, #ff8fab 50%, #fb6f92 100%);
    --gradient-yellow: linear-gradient(135deg, #fff176 0%, #ffe156 50%, #ffd000 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.2);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

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

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 18px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s var(--ease-out-back);
}

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

.logo-img { height: 44px; width: auto; }

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a:not(.btn-nav) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-600);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:not(.btn-nav):hover { color: var(--purple-vibrant); }
.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.nav-links .btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
    transition: all 0.3s var(--ease-out-back);
    white-space: nowrap;
    text-decoration: none;
}

.nav-links .btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.4s var(--ease-out-expo);
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

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

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--purple-vibrant);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--purple-vibrant) 0%, var(--pink-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-back);
    border: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--white);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--purple-vibrant);
    color: var(--purple-vibrant);
    transform: translateY(-4px);
}

.hero-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    top: -15%; right: -10%;
    animation: float 12s ease-in-out infinite;
}

.shape-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(251, 111, 146, 0.1) 0%, transparent 70%);
    bottom: -10%; left: -5%;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 225, 86, 0.08) 0%, transparent 70%);
    top: 30%; left: 10%;
    animation: float 10s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
}

/* ==================== SERVICES VISUAL ==================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--purple-vibrant);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.services-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    line-height: 1.2;
}

.text-accent {
    color: var(--purple-vibrant);
}

.services-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .services-visual-grid { grid-template-columns: 1fr; }
}

.service-visual-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.5s var(--ease-out-expo);
}

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

.sv-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: transform 0.5s var(--ease-out-expo);
}

.sv-3d .sv-bg { background: linear-gradient(180deg, #fff9e6 0%, #fff3cc 100%); }
.sv-mkt .sv-bg { background: linear-gradient(180deg, #fff0f3 0%, #ffe0e6 100%); }
.sv-dev .sv-bg { background: linear-gradient(180deg, #f0f0ff 0%, #e6e6ff 100%); }

.service-visual-card:hover .sv-bg {
    transform: scale(1.05);
}

.sv-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    width: 100%;
}

.sv-number {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.08;
    line-height: 1;
}

.sv-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sv-icon svg { width: 30px; height: 30px; }

.sv-3d .sv-icon { background: rgba(245, 158, 11, 0.15); color: var(--orange-warm); }
.sv-mkt .sv-icon { background: rgba(251, 111, 146, 0.15); color: var(--pink-dark); }
.sv-dev .sv-icon { background: rgba(108, 92, 231, 0.15); color: var(--purple-vibrant); }

.service-visual-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.service-visual-card > .sv-content > p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sv-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease-out-expo);
}

.sv-3d .sv-link { color: var(--orange-warm); }
.sv-mkt .sv-link { color: var(--pink-dark); }
.sv-dev .sv-link { color: var(--purple-vibrant); }

.service-visual-card:hover .sv-link {
    opacity: 1;
    transform: translateX(0);
}

.sv-link svg { width: 18px; height: 18px; }

/* ==================== FEATURES HIGHLIGHT ==================== */
.features-highlight {
    padding: 100px 0;
    background: var(--gray-100);
}

.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .features-row { grid-template-columns: 1fr; }
}

.feature-block {
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.4s var(--ease-out-expo);
}

.feature-block:hover {
    transform: translateY(-8px);
}

.fb-pink { background: linear-gradient(135deg, #ffc2d1 0%, #ffb3c6 100%); }
.fb-yellow { background: linear-gradient(135deg, #fff3b0 0%, #ffe566 100%); }
.fb-purple { background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%); }

.fb-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.fb-icon svg {
    width: 32px;
    height: 32px;
    color: var(--dark);
}

.feature-block h3 {
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1.3;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 35px;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.about-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 5px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.about-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-purple);
    border-radius: 33px;
    z-index: -1;
    opacity: 0.3;
}

.about-card-inner {
    text-align: center;
}

.about-card-inner img {
    width: 100px;
    margin-bottom: 20px;
}

.about-card-inner span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

/* ==================== PROCESS SECTION ==================== */
.process-section {
    padding: 120px 0;
    background: var(--gray-100);
}

.process-header {
    text-align: center;
    margin-bottom: 70px;
}

.process-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
}

.process-step {
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.process-step h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.process-line {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-light), var(--purple-vibrant));
    margin-top: 30px;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .process-line {
        width: 2px;
        height: 40px;
        flex: 0 0 40px;
        background: linear-gradient(180deg, var(--purple-light), var(--purple-vibrant));
        margin: 0;
    }
}

/* ==================== SERVICES DETAIL ==================== */
.services-detail {
    padding: 120px 0;
    background: var(--white);
}

.detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .detail-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .detail-right .detail-visual { order: -1; }
}

.detail-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.tag-3d { background: rgba(245, 158, 11, 0.15); color: var(--orange-warm); }
.tag-mkt { background: rgba(251, 111, 146, 0.15); color: var(--pink-dark); }
.tag-dev { background: rgba(108, 92, 231, 0.15); color: var(--purple-vibrant); }

.detail-text h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.detail-list {
    list-style: none;
    margin-bottom: 30px;
}

.detail-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--gray-600);
    font-size: 1rem;
}

.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--purple-vibrant);
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.3s ease;
}

.link-3d { color: var(--orange-warm); }
.link-mkt { color: var(--pink-dark); }
.link-dev { color: var(--purple-vibrant); }

.detail-link:hover { gap: 15px; }

.detail-link svg { width: 20px; height: 20px; }

.detail-visual {
    aspect-ratio: 4/3;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.visual-3d { background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%); }
.visual-mkt { background: linear-gradient(135deg, #fff0f3 0%, #ffd6e0 100%); }
.visual-dev { background: linear-gradient(135deg, #f0f0ff 0%, #ddd6fe 100%); }

.visual-shape {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.5;
}

.visual-3d .visual-shape { background: var(--gradient-yellow); }
.visual-mkt .visual-shape { background: var(--gradient-pink); }
.visual-dev .visual-shape { background: var(--gradient-purple); }

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.cta-card {
    background: var(--gradient-dark);
    border-radius: 30px;
    padding: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 50%; height: 150%;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.3) 0%, transparent 60%);
}

.cta-content { position: relative; z-index: 2; }

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    color: var(--white);
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--gray-400);
}

.cta-actions { position: relative; z-index: 2; }

.btn-light {
    background: var(--white);
    color: var(--purple-vibrant);
    padding: 18px 36px;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

.btn-light:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-main { flex-direction: column; gap: 50px; }
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-brand .footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand .footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

@media (max-width: 600px) {
    .footer-links { flex-wrap: wrap; gap: 40px; }
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--purple-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-bottom .admin-link { color: inherit; }

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--purple-light); }
