:root {
    --primary-blue: #4012cc; /* išlieka */
    --accent-beige: #ded9e2; /* šviesi, švari, artima logotipo fonui */
    --color-primary: #ef9447; /* lapės spalva */
    --color-secondary: #4012cc; /* gilesnis mėlynas tonas */
    --text-dark: #1E1E1E;
    --text-muted: #6c6c6c;
    --white-background: #ffffff;
    --autumn-brown: rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--accent-beige);
    font-family: 'Assistant', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Header */
.main-header {
    background-color: var(--white-background);
    border-bottom: 2px solid var(--autumn-brown);
    position: relative;
}

/* Navigation */
nav {
    position: relative;
}

.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-contact, 
.btn-form {
    background-color: var(--text-dark);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(81, 22, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #4012cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(81, 22, 255, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Welcome Section */
.welcome-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
}

.profile-container {
    position: relative;
    z-index: 15;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.gradient-blob:nth-child(1) {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    width: 40vw;
    height: 40vw;
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.gradient-blob:nth-child(2) {
    background: linear-gradient(135deg, var(--color-tertiary), var(--color-secondary));
    width: 35vw;
    height: 35vw;
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.gradient-blob:nth-child(3) {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    width: 30vw;
    height: 30vw;
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 3%) scale(1.05); }
    100% { transform: translate(-3%, -3%) scale(0.95); }
}

.welcome-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.profile-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.profile-image:hover {
    transform: scale(1.02);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--white-background);
}

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
        margin-bottom: 3rem;
    text-align: center;
}

.about-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-details {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-details:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background-color: var(--accent-beige);
}

.project-card {
    border: none;
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-project {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-project:hover {
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
}

/* Contacts style */
.contact-section {
    padding: 4rem 0;
    background-color: var(--accent-beige);
    text-align: center;
}

.contact-section .welcome-title {
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

.contact-section i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Footer */
.main-footer {
    padding: 2rem 0;
    border-top: 2px solid var(--autumn-brown);
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.footer-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .desktop-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    /* Mobile menu when active */
    .desktop-nav.show {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white-background);
        border: 2px solid var(--autumn-brown);
        border-radius: 8px;
        min-width: 200px;
        z-index: 1000;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .desktop-nav.show .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .desktop-nav.show .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--accent-beige);
        width: 100%;
    }
    
    .desktop-nav.show .nav-link:hover {
        background: var(--accent-beige);
    }
    
    .desktop-nav.show .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Gradient blobs for mobile */
    .gradient-blob:nth-child(1) {
        width: 80vw;
        height: 80vw;
        top: -40%;
        left: -20%;
    }

    .gradient-blob:nth-child(2) {
        width: 70vw;
        height: 70vw;
        bottom: -35%;
        right: -20%;
    }

    .gradient-blob:nth-child(3) {
        width: 60vw;
        height: 60vw;
        top: 50%;
        left: 10%;
    }

    .about-card {
        margin-bottom: 2rem;
    }

    .btn-contact {
        margin-top: 1rem;
    }

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Fix contact section on mobile */
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-section .welcome-title {
        font-size: 2rem;
    }
    
    .contact-section p {
        font-size: 1rem;
        word-break: break-word;
    }
}

/* Services section - modern card design */
/* Services Section – base (visiems ekranams) */
.services-section {
    padding: 4rem 0;
    background-color: var(--white-background);
}

.services-section .section-title {
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Kortelės */
.services-section .about-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(81, 22, 255, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-section .about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.services-section .about-card .about-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(81, 22, 255, 0.1), rgba(81, 22, 255, 0.05));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.services-section .about-card h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Boxes + check signs */
.services-section .service-features {
    list-style: none;
    padding: 0 1rem;
    margin: 0 0 2rem 0;
    flex-grow: 1;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.services-section .service-features li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(222, 217, 226, 0.5);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.services-section .service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1rem;
}

.services-section .service-features li:last-child {
    border-bottom: none;
}

.services-section .btn-details {
    background: linear-gradient(135deg, var(--primary-blue), #4012cc);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(81, 22, 255, 0.3);
}

.services-section .btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 22, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Medium screen fixes (tablets) */
@media (max-width: 991px) and (min-width: 769px) {
    .services-section .about-icon {
        width: 70px;
        height: 70px;
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }
    .services-section .about-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    .services-section .btn-details {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small mobile screens */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    .services-section .about-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    .services-section .service-features {
        max-width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    .services-section .service-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0 0.6rem 1.3rem;
        line-height: 1.4;
    }
    .services-section .service-features li:before {
        top: 0.6rem;
        font-size: 0.9rem;
    }
}

    /* Footer Mobile Styles */
    .main-footer {
        padding: 2rem 1rem;
        border-top: 2px solid var(--autumn-brown);
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-footer .nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-link {
        display: block !important;
        color: var(--primary-blue) !important;
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        font-weight: 500;
    }
    
    .copyright {
        color: var(--text-dark) !important;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .main-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }


.contact {
	background-color: #DED9E2;
}

/* Forms  */
.form-label {
    font-weight: bold;
    padding-top: 1rem;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  isolation: isolate;
  background: #ded9e2; /* prašytas fonas */
  padding: clamp(4rem, 8vw, 8rem) 0;
  overflow: hidden;
}

/* Subtilus grid raštas + gradient migla */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04)),
    radial-gradient(1200px 600px at 10% -10%, rgba(81,22,255,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, rgba(239,148,71,0.10), transparent 60%);
  background-blend-mode: multiply;
  mask-image: radial-gradient(1000px 500px at 50% 0%, black 70%, transparent 100%);
  z-index: 0;
}

/* Orbs */
.hero-bg { position:absolute; inset:0; z-index:0; pointer-events:none; }
.orb {
  position:absolute; border-radius:50%; filter: blur(60px); opacity:.45;
  transform: translate3d(0,0,0); transition: transform .2s linear;
}
.orb-1 { width:38vw; height:38vw; top:-12%; left:-10%;
  background: radial-gradient(circle at 30% 30%, var(--primary-blue), transparent 60%);
}
.orb-2 { width:32vw; height:32vw; bottom:-20%; right:-12%;
  background: radial-gradient(circle at 60% 40%, var(--color-primary), transparent 60%);
}
.orb-3 { width:22vw; height:22vw; top:40%; left:30%;
  background: radial-gradient(circle at 50% 50%, rgba(81,22,255,.6), transparent 60%);
}

/* Tekstas */
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.txt-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-bottom: 1.5rem;
}

/* CTA */
.hero-cta { display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom:1rem; }

.hero .btn-hero {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.75rem 1.2rem;
  border-radius:999px;
  font-weight:700;
  border:1.5px solid transparent;
  transition:all .25s ease;
  text-decoration:none !important;   /* pramuša bootstrap link'us */
}

.hero .btn-primary-hero {
  color:#fff !important;             /* pramuša bootstrap .btn spalvas jei jos įsikištų */
  background:linear-gradient(90deg, var(--primary-blue), var(--color-primary));
  box-shadow:0 10px 24px rgba(81,22,255,.25);
}
.hero .btn-primary-hero:hover {
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(81,22,255,.32);
}

.hero .btn-ghost-hero {
  background:rgba(255,255,255,.5);
  border-color:rgba(81,22,255,.25);
  color:var(--text-dark) !important; /* pramuša galimus paveldėjimus */
  backdrop-filter:blur(6px);
}
.hero .btn-ghost-hero:hover {
  border-color:var(--primary-blue);
  transform:translateY(-2px);
}


/* Badges */
.hero-badges {
  display:flex; gap:1rem; padding:0; margin:0; list-style:none; flex-wrap:wrap;
}
.hero-badges li {
  display:flex; align-items:center; gap:.5rem;
  padding: .45rem .8rem; border-radius:999px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(4px);
  border: 1px solid rgba(81,22,255,.15); color: var(--text-dark);
  font-weight:600; font-size:.92rem;
}
.hero-badges i { color: var(--primary-blue); }

/* Portrait kortelė su žiedu */
.hero-portrait {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 4 / 5;            /* <— fiksuojam proporciją */
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* <— nebeleis išsipūsti */
  transform: scale(1.02);
  transition: transform .5s ease;
}
.hero-portrait:hover img { transform: scale(1.05); }

.hero-portrait::before {
  content:"";
  position:absolute; inset:0; border-radius: inherit; padding:2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--color-primary));
  pointer-events:none;
}
@supports (-webkit-mask-composite: xor) or (mask-composite: exclude) {
  .hero-portrait::before{
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0; }
  .hero-badges { gap:.6rem; }
}

/* Vartotojams su reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .orb, .hero-portrait img, .btn-hero { transition: none !important; }
}
/* Užtikrinam, kad fonas nekliudytų paspaudimų */
.hero::before { pointer-events: none; z-index: 0; }
.hero-bg, .orb { pointer-events: none; }

/* Turiniui aiškiai viršuje */
.hero-inner { position: relative; z-index: 1; }

/* Kad nusiscrollintų ne po headeriu */
#projects { scroll-margin-top: 96px; } /* jei headeris ~60–96px */
