:root {
    --primary: #007AFF;
    --dark: #121212;
    --light: #ffffff;
    --gray: #f4f4f4;
}

body { font-family: 'Inter', sans-serif; margin: 0; line-height: 1.6; color: var(--dark); }

/* Hero Section */
.hero { background: var(--dark); color: var(--light); padding-top: 100px ; min-height: 80vh; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(18, 18, 18, 0.8); /* Semi-transparent dark */
    backdrop-filter: blur(10px);      /* Modern glass effect */
    box-sizing: border-box;  
}
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: white; text-decoration: none; font-weight: 500; }

.hero-content { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-text span { color: var(--primary); }

.hero-image { flex: 1; display: flex; justify-content: center; }

/* Placeholderio nustatymai */
.image-placeholder {
    width: 350px;           /* Galite keisti šį skaičių pagal poreikį */
    height: 350px;          /* Padarome kvadratą */
    margin: 0 auto;         /* Centruojame */
    overflow: hidden;       /* Nukerpame viską, kas išlenda už ribų */
    border-radius: 20px;    /* Suapvaliname kampus */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee; /* Pilkas fonas, kol nuotrauka kraunasi */
}

/* Pačios nuotraukos pritaikymas */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Svarbiausia dalis: užpildo vietą neiškraipant proporcijų */
}


/* Buttons */
.btn { padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; }
.primary { background: var(--primary); color: white; border: none; }
.secondary { border: 1px solid white; color: white; margin-left: 1rem; }
.btn:hover { opacity: 0.8; transform: translateY(-2px); }

/* Layout */
.section { padding: 5rem 10%; }
.gray-bg { background: var(--gray); }
.dark-bg { background: var(--dark); color: white; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.timeline .item { border-left: 2px solid var(--primary); padding-left: 2rem; margin-bottom: 3rem; }

/* Portfolio tinklelis */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px); /* Pakyla į viršų užvedus pelę */
}

.portfolio-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efektas užvedus ant nuotraukos */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 39, 0.8); /* Jūsų tamsiai žalia spalva su permatomumu */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.portfolio-info p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}


/* Contact Form Styling */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 3rem;
    text-align: left;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: #1e1e1e; /* Slightly lighter than the dark-bg */
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea {
    resize: vertical;
}

/* Floating Label Logic */
.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s;
}

/* Move label up when input is focused or has content */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--dark);
    padding: 0 5px;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--primary);
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #888; /* Subtle gray by default */
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--primary); /* Glows with your brand color */
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(0, 122, 255, 0.1); /* Subtle blue tint on hover */
}


@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .secondary { margin: 1rem 0 0 0; }
}

