/* ================================
   ძირითადი სტილი მთლიანი საიტისთვის
================================== */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8f0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ================================
   საერთო — ჰედერი (ნავიგაცია)
================================== */

.div1 {
    background-color: #e6ffe6;
    padding: 15px 20px;
    text-align: center;
    border-radius: 10px;
    max-width: 960px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 150, 0, 0.1);
    flex-wrap: wrap;
}

.div1 a {
    color: #2e8b57;
    text-decoration: none;
    margin: 0 15px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.div1 a:hover {
    color: #006400;
    transform: translateY(-2px);
}

.divlogo {
    margin-right: auto;
    display: flex;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
    vertical-align: middle;
}


/* ================================
   📄 გვერდი #2: ჩემს შესახებ (aboutme.html) და #4 კონტაქტი (kontaqti.html)
================================== */

.profile-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 150, 0, 0.15);
    padding: 40px;
    max-width: 800px;
    text-align: center;
    border: 1px solid #c8e6c9;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto 60px auto;
}

.profile-card h1 {
    color: #2e8b57;
    font-size: 2.5em;
    margin-bottom: 25px;
    border-bottom: 3px solid #90ee90;
    padding-bottom: 15px;
    display: inline-block;
}

.profile-text {
    color: #444444;
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 25px;
}

.highlight {
    color: #008000;
    font-weight: bold;
    background-color: #e0ffe0;
    padding: 3px 6px;
    border-radius: 4px;
}

.section-divider {
    border-top: 2px dashed #d0f0c0;
    margin: 35px 0;
    width: 90%;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.image-container img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #90ee90;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-container img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 128, 0, 0.25);
}

.profile-card p.profile-text a {
    color: #008000;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.profile-card p.profile-text a:hover {
    color: #4CAF50;
    text-decoration: underline;
}


/* ================================
   გვერდი #:3 ნამუშევრები (namushevrebi.html)
================================== */

.projects-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1; /* ეს აუცილებელია, რომ ფუტერი ყოველთვის ბოლოს იყოს */
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: #2e8b57;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #90ee90;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
}

.project-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 150, 0, 0.15);
    padding: 25px;
    text-align: left;
    border: 1px solid #c8e6c9;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 150, 0, 0.25);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #a5d6a7;
}

.project-card h3 {
    margin: 10px 0 10px;
    color: #2e8b57;
    font-size: 1.6em;
    text-align: center;
}

.project-card p {
    color: #555;
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.button-link {
    display: inline-block;
    padding: 12px 25px;
    margin-top: auto;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2);
}

.button-link:hover {
    background-color: #2e8b57;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 128, 0, 0.3);
}


/* ================================
   გვერდი #5: ბლოგი (blog.html)
================================== */

.blog-section {
    flex-grow: 1; /* ეს აუცილებელია, რომ ფუტერი ყოველთვის ბოლოს იყოს */
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.blog-post { /* `section`-ის ნაცვლად `blog-post` გამოვიყენე უკეთესი სემანტიკისთვის */
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 150, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #c8e6c9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 150, 0, 0.18);
}

.blog-post h2 {
    color: #2e8b57;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0ffe0;
    padding-bottom: 10px;
}

.blog-post p {
    color: #444;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid #a5d6a7;
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.1);
}

strong {
    color: #008000;
}

code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #c0392b;
}


/* ================================
   ფუტერი
================================== */

.footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    font-size: 1em;
    font-weight: 500;
}


/* ================================
   📱 RESPONSIVE — მობილური ეკრანებისთვის
================================== */

@media (max-width: 768px) {
    .div1 {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        margin: 15px auto;
    }

    .div1 a {
        margin: 8px 0;
        font-size: 15px;
    }

    .divlogo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .logo {
        height: 45px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .project-card {
        width: 95%;
        margin: 0 auto;
        padding: 20px;
    }

    .project-card img {
        height: 180px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }

    .profile-card {
        padding: 25px;
        margin: 20px 15px;
    }

    .profile-card h1 {
        font-size: 2em;
    }

    .profile-text {
        font-size: 1em;
    }

    .image-container img {
        width: 110px;
        height: 110px;
    }

    .blog-post {
        padding: 20px;
        margin-bottom: 20px;
    }
    .blog-section {
        padding: 0 15px;
    }

    .blog-post h2 {
        font-size: 1.8em;
    }

    .blog-post p {
        font-size: 0.95em;
    }
}