/* =====================================================
   RUBYLA STUDIOS - MAIN CSS
   Modern, Premium & Professional Design
   ===================================================== */

/* ============ ROOT VARIABLES ============ */
:root {
    --primary-color: #FFD700;
    --dark-bg: #0d0d0d;
    --black: #000000;
    --text-light: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent: #FFD700;
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ============ GLOBAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ NAVBAR ============ */
.navbar {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05);
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: contain;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.logo:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============ HERO SECTION ============ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(30px); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: contain;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    animation: glow 3s ease-in-out infinite;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)); }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1.5px;
}

/* ============ STAFF COUNTER SECTION ============ */
.staff-counter {
    padding: 80px 20px;
    background-color: var(--black);
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.counter-main {
    text-align: center;
    margin-bottom: 60px;
}

.counter-main h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.count {
    display: inline-block;
    color: var(--primary-color);
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.counter-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
    border-color: var(--primary-color);
}

.counter-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.counter-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ============ ABOUT SECTION ============ */
.about {
    padding: 80px 20px;
    background-color: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    transition: var(--transition);
}

.about-highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* ============ PROJECTS PAGE ============ */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 60px 0 40px;
    text-align: center;
    letter-spacing: 1px;
}

.projects-section {
    padding: 40px 0;
    min-height: 70vh;
}

.category-view {
    width: 100%;
}

/* ============ CATEGORIES GRID (4 KATEGORİ) ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.category-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transition: left 0.5s ease;
    pointer-events: none;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.25);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotateY(15deg);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.category-content {
    flex: 1;
    margin-bottom: 15px;
}

.category-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.category-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.category-arrow {
    text-align: right;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* ============ PROJECTS LIST VIEW ============ */
.projects-list-view {
    padding: 20px 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.btn-back:hover {
    background: var(--primary-color);
    color: var(--black);
    transform: translateX(-5px);
}

.category-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.project-card:hover .project-image::before {
    left: 100%;
}

/* ============ PROJECT BADGES ============ */
.dev-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4ECDC4 0%, #00BCD4 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255, 107, 107, 0.8);
    }
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.empty-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
    border: 2px dashed rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-illustration {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.empty-projects h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-projects p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============ MODAL (PROJECT DETAIL) ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    position: relative;
    border: 2px solid var(--primary-color);
    animation: slideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--text-light);
}

.project-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
}

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

.gallery-thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

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

.project-info {
    padding: 0;
}

.project-detail h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-detail p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-item p {
    color: var(--text-light);
    margin: 0;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--black);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ============ CONTACT PAGE ============ */
.contact-section {
    padding: 60px 0;
    min-height: 70vh;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

/* Social Media Section */
.social-media-section {
    margin-bottom: 80px;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--black);
    transform: scale(1.15) rotateZ(10deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* Contact Form Section */
.contact-form-section {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    animation: slideUp 0.8s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.form-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 15px;
}

/* ============ FOOTER ============ */
.footer {
    background-color: var(--black);
    border-top: 2px solid var(--primary-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: auto;
}

.footer p {
    margin: 0;
    transition: var(--transition);
}

.footer:hover p {
    color: var(--primary-color);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
    .project-detail {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 20px;
    }

    /* Categories Grid 1024px */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.95);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background-color: rgba(255, 215, 0, 0.1);
    }

    /* Hero Mobile */
    .hero {
        min-height: 60vh;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-img {
        width: 100px;
        height: 100px;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    /* Counter Mobile */
    .counter-main h2 {
        font-size: 2rem;
    }

    .counter-grid {
        grid-template-columns: 1fr;
    }

    /* Projects Grid Mobile */
    .projects-list {
        grid-template-columns: 1fr;
    }

    /* Categories Grid Mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        padding: 25px;
    }

    .category-icon {
        font-size: 3rem;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        padding: 25px;
        max-height: 95vh;
    }

    .project-detail {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 250px;
    }

    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Contact Mobile */
    .contact-form-section {
        padding: 25px;
    }

    .social-links {
        gap: 20px;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Buttons Mobile */
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
        margin: 30px 0 20px;
    }

    .counter-main h2 {
        font-size: 1.5rem;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-grid {
        gap: 15px;
    }

    .counter-card {
        padding: 20px;
    }

    .section-subtitle {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .social-links {
        gap: 15px;
    }

    .modal-content {
        padding: 15px;
    }

    .project-detail {
        gap: 20px;
    }

    .project-detail h2 {
        font-size: 1.5rem;
    }

    .gallery-main {
        height: 200px;
    }

    /* Announcements Mobile */
    .announcement-card {
        gap: 15px;
        padding: 15px;
    }

    .announcement-logo {
        width: 40px;
        height: 40px;
    }

    .announcement-info h3 {
        font-size: 1rem;
    }

    .announcement-detail-header h1 {
        font-size: 1.8rem;
    }

    .announcement-detail-content {
        padding: 20px;
    }

    .announcement-detail-content p {
        font-size: 0.95rem;
    }
}

/* ============ SMOOTH PAGE TRANSITIONS ============ */
.page {
    opacity: 0;
    animation: pageIn 0.5s ease forwards;
}

.page.active {
    opacity: 1;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ ANNOUNCEMENTS PAGE ============ */
.announcements-section {
    padding: 60px 0;
    min-height: 70vh;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.announcement-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.announcement-card:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.announcement-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: contain;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.announcement-info {
    flex: 1;
}

.announcement-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    transition: var(--transition);
}

.announcement-card:hover .announcement-info h3 {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.announcement-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.announcement-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.announcement-card:hover .announcement-arrow {
    transform: translateX(5px);
}

.empty-announcements {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ============ ANNOUNCEMENT DETAIL PAGE ============ */
.announcement-detail-section {
    padding: 60px 20px;
    min-height: 70vh;
}

.announcement-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.announcement-detail-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.announcement-detail-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.announcement-detail-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.announcement-detail-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    transition: var(--transition);
}

.announcement-detail-content p:hover {
    color: var(--text-light);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

/* ============ TEAM LAYOUT OVERRIDES (stacked cards) ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.staff-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    gap: 12px !important;
}

.staff-card .avatar {
    margin-bottom: 8px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,215,0,0.06);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    border: 3px solid var(--primary-color);
}

.avatar i.fas { font-size: 1.6rem; color: var(--primary-color); }

.staff-info { align-items: center; }

/* hide the old top/right hint/button */
.staff-hint { display: none !important; }

.staff-info .staff-name {
    color: var(--primary-color);
    font-size: 1.05rem;
    text-transform: none;
    margin: 0;
}

/* Staff title (rank) should be white for better contrast */
.staff-info .staff-title {
    color: #ffffff !important;
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
}

.back-button:hover {
    transform: translateX(-5px);
    gap: 12px;
}

.back-button i {
    transition: var(--transition);
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* ============ SCROLL BAR ============ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}
