/* ============================================
   MODERN LAYOUT STYLESHEET
   Georgian Computer Society Website
   Clean, Modern, Responsive Layout
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: #cc5500;
    text-decoration: underline;
}

a:active {
    color: #993300;
}

/* === LAYOUT CONTAINER === */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, #003366 0%, #0066cc 50%, #003366 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-banner {
    padding: 30px 20px;
    text-align: center;
}

.header-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeSlide 1s ease-out;
}

.header-subtitle {
    font-size: 1.1rem;
    color: #ffcc00;
    letter-spacing: 1px;
    animation: fadeIn 2s ease-out;
}

/* === NAVIGATION === */
.main-nav {
    background: #0066cc;
    border-top: 2px solid #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #ffcc00;
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none !important;
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher a {
    display: block;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher img {
    width: 30px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: #ffcc00;
    color: #003366;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.mobile-menu-toggle:before {
    content: "☰ ";
    font-size: 1.2rem;
}

/* === MAIN CONTENT AREA === */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    padding: 20px;
    min-height: 500px;
}

/* === SIDEBAR LEFT (Navigation) === */
.sidebar-left {
    background: #f9f9f9;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-header {
    background: linear-gradient(135deg, #bbddff 0%, #99ccff 100%);
    padding: 12px 15px;
    font-weight: bold;
    color: #003366;
    border-bottom: 2px solid #ffcc00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header:before {
    content: "»";
    color: #ff6600;
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #333 !important;
    transition: all 0.3s ease;
    padding-left: 30px;
    position: relative;
    text-decoration: none !important;
}

.sidebar-menu a:before {
    content: "›";
    position: absolute;
    left: 15px;
    color: #ff6600;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: #bbddff;
    padding-left: 35px;
    text-decoration: none !important;
    color: #0066cc !important;
}

.sidebar-menu a:hover:before {
    left: 18px;
    color: #0066cc;
}

/* === MAIN CONTENT === */
.main-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffcc00;
}

.content-header h1 {
    color: #003366;
    font-size: 2rem;
    margin-bottom: 10px;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    color: #0066cc;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bbddff;
}

.content-section h3 {
    color: #003366;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style: none;
}

.content-section li {
    margin-bottom: 8px;
    padding-left: 10px;
    position: relative;
}

/* === SIDEBAR RIGHT (Projects) === */
.sidebar-right {
    background: #f9f9f9;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.project-box {
    background: #bbddff;
    border-radius: 5px;
    padding: 15px;
    margin: 15px;
    border-left: 4px solid #ff6600;
    transition: all 0.3s ease;
}

.project-box:hover {
    background: #cce6ff;
}

.project-box h3 {
    color: #003366;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.project-box h3 a {
    color: #ff6600 !important;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.project-box h3 a:hover {
    color: #0066cc !important;
    text-decoration: underline !important;
}

.project-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.project-box a {
    color: #ff6600 !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.project-box a:hover {
    color: #0066cc !important;
    text-decoration: underline !important;
}

/* === FOOTER === */
.site-footer {
    background: #003366;
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ffffff !important;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-section a:hover {
    opacity: 1;
    color: #ffcc00 !important;
    text-decoration: underline !important;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #cc5500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    color: white !important;
}

.btn-primary {
    background: #0066cc;
}

.btn-primary:hover {
    background: #0052a3;
    color: white !important;
    text-decoration: none !important;
}

/* === ANIMATIONS === */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media screen and (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 200px 1fr 250px;
        gap: 15px;
        padding: 15px;
    }

    .header-title {
        font-size: 2rem;
    }

    .main-content {
        padding: 20px;
    }
}

/* Small Tablet */
@media screen and (max-width: 768px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-left,
    .sidebar-right {
        position: static;
        display: none;
    }

    .sidebar-left.mobile-visible,
    .sidebar-right.mobile-visible {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.mobile-visible {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .language-switcher {
        margin-top: 10px;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .header-banner {
        padding: 20px 15px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .header-banner {
        padding: 15px 10px;
    }

    .main-content {
        padding: 15px 10px;
    }

    .site-container {
        box-shadow: none;
    }

    .main-content-wrapper {
        padding: 10px;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .sidebar-left,
    .sidebar-right,
    .mobile-menu-toggle,
    .main-nav {
        display: none;
    }

    .main-content-wrapper {
        grid-template-columns: 1fr;
    }

    .site-container {
        box-shadow: none;
    }

    body {
        background: white;
    }
}
