:root {
    --primary-blue: #0b1d3d;
    --accent: #00c6d4;
    --bg-white: #ffffff;
    --text-black: #1a1a1a;
    --text-gray: #4a5568;
    --light-gray: #f2f5f8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at center, #93c5fd, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

/* Glow per sectiune */
.navbar,
.hero,
.services,
.portfolio,
.contact,
.footer {
    position: relative;
    isolation: isolate;
}

.navbar::before,
.hero::before,
.services::before,
.portfolio::before,
.contact::before,
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, #93c5fd, transparent 70%);
    opacity: 0.25;
    pointer-events: none;
}

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

h1, h2, h3 {
    color: var(--primary-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Aurora Button */
.btn-aurora {
    position: relative;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

@keyframes aurora-glow {
    0%   { box-shadow: 0 0 16px rgba(96, 165, 250, 0.6), 0 0 40px rgba(147, 197, 253, 0.4); }
    50%  { box-shadow: 0 0 28px rgba(59, 130, 246, 0.9), 0 0 60px rgba(147, 197, 253, 0.6); }
    100% { box-shadow: 0 0 16px rgba(96, 165, 250, 0.6), 0 0 40px rgba(147, 197, 253, 0.4); }
}

.btn-aurora span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: var(--primary-blue);
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(147, 197, 253, 0.4);
    transition: background 0.3s ease;
    animation: aurora-glow 3s ease-in-out infinite;
}

.btn-aurora:hover span {
    background: #f8faff;
}

/* Navbar aurora — albastru inchis */
.navbar .btn-aurora span {
    background: var(--primary-blue);
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.3);
    animation: aurora-glow-dark 3s ease-in-out infinite;
}

@keyframes aurora-glow-dark {
    0%   { box-shadow: 0 0 16px rgba(147, 197, 253, 0.5), 0 0 40px rgba(96, 165, 250, 0.4); }
    50%  { box-shadow: 0 0 28px rgba(147, 197, 253, 0.85), 0 0 60px rgba(59, 130, 246, 0.5); }
    100% { box-shadow: 0 0 16px rgba(147, 197, 253, 0.5), 0 0 40px rgba(96, 165, 250, 0.4); }
}

.navbar .btn-aurora:hover span {
    background: #0d2350;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(11, 29, 61, 0.2);
}

.btn-primary:hover {
    background-color: #0f2a57;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 29, 61, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: #fff;
    color: var(--primary-blue);
    border: 2px solid #fff;
    font-weight: 700;
}

.btn-white:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    padding: 10px 0;
    background: radial-gradient(circle at 50% 50%, rgba(147,197,253,0.35) 0%, transparent 70%), #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lang-switch {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 20px;
    padding: 3px;
    cursor: pointer;
    user-select: none;
}

.lang-opt {
    width: 32px;
    text-align: center;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    color: rgba(147, 197, 253, 0.4);
    transition: color 0.25s;
    border-radius: 16px;
}

.lang-opt.active {
    color: #93c5fd;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 195px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.04);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 24px 30px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 18px;
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(11,29,61,0.1);
}

/* Hero */
.hero {
    padding: 220px 0 70px;
    min-height: calc(100vh - 0px);
    background: radial-gradient(circle at 50% 50%, rgba(147,197,253,0.35) 0%, transparent 70%), #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,198,212,0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 19px;
    color: var(--text-gray);
    margin-bottom: 44px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 12px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: #ffffff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-accent-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    border-radius: 9999px;
    margin: 12px auto 0;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 17px;
    margin-bottom: 60px;
}

/* Services */
.services {
    padding: 110px 0;
    background: radial-gradient(circle at 50% 50%, rgba(147,197,253,0.3) 0%, transparent 70%), #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.services-grid .service-card {
    grid-column: span 2;
}

.services-grid .service-card:nth-child(4) {
    grid-column: 2 / 4;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 4 / 6;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(11, 29, 61, 0.1);
}

@keyframes bounce-icon {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-12px); }
    50%  { transform: translateY(-6px); }
    70%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.service-card:hover .icon {
    animation: bounce-icon 0.6s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    font-size: 36px;
    margin-bottom: 24px;
    background: var(--light-gray);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cascada carduri servicii */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.35s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.45s; }

/* Portfolio */
.portfolio {
    padding: 70px 0 110px;
    background: radial-gradient(circle at 50% 50%, rgba(147,197,253,0.3) 0%, transparent 70%), #ffffff;
}

/* Cascada carduri portofoliu */
.portfolio-grid .portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-grid .portfolio-card:nth-child(2) { transition-delay: 0.2s; }
.portfolio-grid .portfolio-card:nth-child(3) { transition-delay: 0.35s; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.35s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(11, 29, 61, 0.12);
}

.portfolio-empty {
    border: 2px dashed rgba(11,29,61,0.12);
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.portfolio-empty:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-img {
    height: 420px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    position: relative;
    background-position: top center;
    background-size: cover;
}

.portfolio-img-alt {
    position: absolute;
    inset: 0;
    background-size: 100% auto;
    background-position: top center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover .portfolio-img-alt {
    opacity: 1;
}

.portfolio-img-stacked {
    background: none !important;
    height: auto !important;
    flex-direction: column;
    padding: 0;
    align-items: stretch;
    overflow: hidden;
}

.portfolio-img-top,
.portfolio-img-bottom {
    height: 210px;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.portfolio-img-stacked .portfolio-tag {
    position: absolute;
    top: 16px;
    right: 16px;
}

.portfolio-tag {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.portfolio-link {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.portfolio-card:hover .portfolio-link {
    letter-spacing: 0.5px;
}

/* Contact */
.contact {
    padding: 110px 0;
    background: radial-gradient(circle at 50% 50%, rgba(147,197,253,0.3) 0%, transparent 70%), #ffffff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,198,212,0.08) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    border-radius: 50%;
}

.contact-form {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

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

.contact-form .input-aurora {
    position: relative;
}

.contact-form .input-aurora::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent), var(--primary-blue), var(--accent), var(--primary-blue));
    background-size: 200% auto;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: aurora-shift 4s linear infinite paused;
}

.contact-form .input-aurora:focus-within::before {
    opacity: 0.8;
    animation-play-state: running;
}

.contact-form input,
.contact-form textarea {
    position: relative;
    z-index: 1;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #ffffff;
    color: var(--text-black);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    width: 100%;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,198,212,0.1);
}

.contact-form button {
    align-self: center;
    margin-top: 8px;
}

/* Footer */
.footer {
    background: radial-gradient(circle at 50% 50%, rgba(147,197,253,0.3) 0%, transparent 70%), #ffffff;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 50px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-logo {
    height: 195px;
}

.footer-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

/* Footer contact info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.footer-contact-info a {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.3s ease;
    text-align: center;
    justify-content: center;
}

.footer-contact-info a:hover {
    color: var(--accent);
}

.footer-contact-info i {
    font-size: 13px;
    color: var(--accent);
}

/* Animated Dock */
.dock {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    background: transparent;
    border: none;
    padding: 10px 4px;
    margin-top: 14px;
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 32px;
    text-decoration: none;
    transition: transform 0.15s ease;
    transform-origin: bottom center;
    flex-shrink: 0;
    background: transparent;
}

.dock-item.instagram-link {
    color: #e1306c;
}

.dock-item.whatsapp-link {
    color: #25D366;
}

.dock-item.email-link {
    color: #60a5fa;
}

.dock-item.phone-link {
    color: #34d399;
}

.dock-item:hover {
    filter: brightness(1.2);
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.footer-social a.instagram-link {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border: none;
    color: #fff;
}

.footer-social a.instagram-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(188,24,136,0.35);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.footer-legal {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer-legal li {
    position: relative;
    padding-right: 10px;
}

.footer-legal li::before {
    content: '·';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 700;
}

.footer-legal li:last-child::before {
    display: none;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-gray);
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.footer-copyright {
    font-size: 12px;
    color: rgba(0,0,0,0.35);
    text-align: right;
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 10px;
    width: 100%;
}


/* Responsive */
@media (max-width: 900px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .hero { padding: 150px 0 50px; }
    .section-title { font-size: 30px; }
    .nav-links { display: none; }
    .navbar .btn-aurora { display: inline-flex; }
    .hamburger { display: none; }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .services-grid .service-card,
    .services-grid .service-card:nth-child(4) {
        grid-column: auto;
    }
    .services-grid .service-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - 7px);
        margin: 0 auto;
    }
    .service-card {
        padding: 22px 18px;
    }
    .service-card .icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        margin-bottom: 14px;
        border-radius: 14px;
    }
    .service-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .service-card p {
        font-size: 13px;
    }
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-links { gap: 40px; }

    /* Navbar mobile layout */
    .navbar {
        padding: 4px 0;
    }
    .navbar .container {
        flex-wrap: wrap;
        gap: 0;
    }
    .lang-wrap {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .lang-switch {
        position: static;
        transform: none;
    }

    /* Portfolio mobile */
    .portfolio-grid {
        gap: 20px;
    }
    .portfolio-img {
        height: 220px;
        background-size: cover !important;
        background-position: center top !important;
    }
    .portfolio-img.portfolio-img-stacked {
        height: auto !important;
    }
    .portfolio-img-top,
    .portfolio-img-bottom {
        height: 160px;
    }
    .portfolio-info {
        padding: 18px;
    }
    .portfolio-info h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    .portfolio-info p {
        font-size: 13px;
        margin-bottom: 12px;
    }
}
