/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #1A1A1C;
    color: #ffffff;
    line-height: 1.6;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    position: absolute;
    width: 100%;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
}

.nav::after,
.nav::before {
    content: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.nav .logo {
    flex-shrink: 0;
    width: 150px;
    height: 58px;
    object-fit: contain;
}

.nav .logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav nav a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fcfcfc;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

.nav nav a:hover {
    color: #bbdaff;
}

.nav nav a.btn,
.nav .btn {
    padding: 8px 18px;
    border: 2px solid #27ffB7;
    border-radius: 6px;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #27ffb7;
    color: #000;
    border-radius: 50%;
    font-size: 16px;
    transition: transform 0.3s, background 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: #78a9ff;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 180px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero::after {
    content: none;
}

.hero h1 {
    font-size: 36px;
    max-width: 900px;
    margin: 0 auto 40px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: #78a9ff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
}

.cta {
    background: #27ffb7;
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    transition: background 0.3s;
    position: relative;
    z-index: 1;
}

.cta:hover {
    background: #78a9ff;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
   .about {
       display: flex;
       gap: 60px;
       padding: 100px 60px;
       background: #ffffff;
       color: #000;
       align-items: center;  /* Add this - vertically centers everything */
       justify-content: center;  /* Add this - horizontally centers everything */
   }

   .about-text {
       flex: 0 0 60%;  /* Add this - text takes 45% of width */
       max-width: 60%;  /* Add this - ensures text doesn't exceed 45% */
   }

   .about-img {
       flex: 1;  /* Add this - image takes remaining space */
       display: flex;
       align-items: center;
       justify-content: center;
   }

   .about h2 {
       color: #7aa7ff;
       margin-bottom: 20px;
       font-family: 'Kalam', cursive;
       font-weight: 600;
       font-size: 36px;
   }

   .about-img img {
       width: 300px;  /* Fixed width */
       height: 416px;  /* Fixed height */
       object-fit: cover;  /* Ensures image fills the space nicely */
       border-radius: 16px;
       box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 0 6px #f4f7ff;
       transition: transform 0.3s ease, box-shadow 0.3s ease;
   }

   @media (hover: hover) {
       .about-img img:hover {
           transform: translateY(-6px);
           box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), 0 0 0 6px #e6edff;
       }
   }

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 100px 60px;
    position: relative;
    min-height: 600px;
    overflow: hidden;
    text-align: center;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/paslaugos.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.services h2 {
    color: #7aa7ff;
    margin-bottom: 60px;
    font-family: 'Kalam', cursive;
    font-weight: 600;
    font-size: 36px;
    position: relative;
    z-index: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.card {
    border: 3px solid #3fffd8;
    padding: 40px 25px;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 15px rgba(63, 255, 216, 0.35);
}

.card-title {
    line-height: 1.4;
    text-align: center;
    font-weight: 600;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
}

.card-more {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease, margin-top 0.4s ease;
    font-weight: 400;
    font-size: 15px;
    scrollbar-width: thin;
    scrollbar-color: #3fffd8 transparent;
}

.card-more::-webkit-scrollbar {
    width: 6px;
}

.card-more::-webkit-scrollbar-thumb {
    background-color: #3fffd8;
    border-radius: 10px;
}

.card.active .card-more {
    max-height: 220px;
    opacity: 1;
    margin-top: 20px;
    overflow-y: auto;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio {
    background: #ffffff;
    color: #000;
    padding: 100px 60px;
    text-align: center;
}

.portfolio h2 {
    color: #7aa7ff;
    margin-bottom: 60px;
    font-family: 'Kalam', cursive;
    font-weight: 600;
    font-size: 36px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.work {
    background: #ddd;
    width: 100%;
    padding-top: 75%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    cursor: pointer;
    transition: filter 0.4s, transform 0.3s;
    border-radius: 8px;
}

.work:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    z-index: 9999;
    overflow-y: auto;
    scroll-behavior: smooth;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    width: 100%;
    max-width: 1920px;
    display: flex;
    justify-content: center;
}

.lightbox-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
    position: fixed;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 120px 60px 15px;
    position: relative;
    overflow: hidden;
    font-family: 'Barlow Condensed', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/kontaktai.png");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.6);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    flex: 1;
}

.contact h2 {
    font-family: 'Kalam', cursive;
    font-weight: 600;
    font-size: 36px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #7aa7ff;
}

.intro {
    font-size: 30px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
}

.sub {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 40px;
    color: #fcfcfc
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid #27ffb7;
    border-radius: 40px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.contact-item img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 4px rgba(122, 167, 255, 0.6))
            drop-shadow(0 0 10px rgba(39, 255, 183, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-item:hover {
    background: #7aa7ff;
    color: #0b1020;
    border-color: #7aa7ff;
}

.contact-item:hover img {
    filter: none;
    transform: scale(1.1);
}

.contact-item span {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.contact-item strong {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.contact-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.contact-cta p {
    font-size: 17px;
    opacity: 0.9;
    color: #fcfcfc;
}

.contact-cta-btn {
    background: linear-gradient(135deg, #27ffb7, #78a9ff);
    color: #0b1020;
    padding: 16px 42px;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(39, 255, 183, 0.45);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: transparent;
    text-align: center;
    padding: 20px 20px 40px 20px;
    position: relative;
    color: #bdbdbd;
    z-index: 2;
    margin-top: 150px;
}

footer p {
    margin: 0;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

input,
textarea {
    padding: 12px;
    border-radius: 6px;
    border: none;
}

button {
    background: #27ffb7;
    border: none;
    padding: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border-radius: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
}

button:hover {
    background: #78a9ff;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE - TABLETS (900px)
   ======================================== */
@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .social-icons {
        justify-content: center;
        margin-left: -28px;
    }

    .hero {
        padding-top: 320px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .contact {
        padding: 120px 20px 20px;
        min-height: auto;
    }

    footer {
        margin-top: 60px;
        padding: 15px 20px 20px 20px;
    }
}

/* ========================================
   RESPONSIVE - TABLETS/MOBILE (768px)
   ======================================== */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    .nav nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .nav a {
        margin-left: 0;
        font-size: 16px;
    }

    .logo {
        margin-bottom: 10px;
        margin-left: -28px;
    }

    .social-icons {
        gap: 10px;
        justify-content: center;
        margin-top: 4px;
        margin-right: -28px;
    }

    .about {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }

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

    .about-img img {
        max-width: 280px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 0 4px #f4f7ff;
    }

    .card.active .card-more {
        max-height: 300px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .work {
        padding-top: 75%;
    }

    .lightbox-img {
        max-height: 80%;
    }

    .contact {
        padding: 100px 16px 15px !important;
        min-height: auto !important;
    }

    .contact h2 {
        font-size: 32px;
    }

    .intro {
        font-size: 20px;
    }

    footer {
        margin-top: 40px !important;
        padding: 10px 16px 15px 16px !important;
    }

    footer p {
        font-size: 13px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (600px)
   ======================================== */
@media (max-width: 600px) {
    .nav-container {
        gap: 10px;
        padding: 10px 16px;
    }

    .nav .logo {
        margin-bottom: 6px;
        margin-right: -62px;
    }

    .nav .logo img {
        max-width: 100px;
    }

    .nav nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;

    }

    .nav nav a {
        font-size: 14px;
        padding: 8px 24px;
        width: auto;
        min-width: 160px;
        text-align: center;
        display: inline-block;
    }

    .nav nav a.btn {
        padding: 8px 24px;
        font-size: 14px;
        border-width: 2px;
        min-width: 160px;
    }

    .social-icons {
        gap: 10px;
        justify-content: center;
        margin-top: 4px;
        margin-right: -28px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero {
        padding-top: 360px !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .contact {
        padding: 100px 16px 15px !important;
        min-height: auto !important;
    }

    footer {
        margin-top: 40px !important;
        padding: 10px 16px 15px 16px !important;
    }

    footer p {
        font-size: 13px;
    }
}
