/* About Cards Layout */
:root {
    --content-width: 80%;
    --cards-width: 90.2%;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: var(--cards-width);
    margin: 30px auto 0 auto;
}

@media (min-width: 1800px) {
    .about-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-cards.main-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.about-cards.main-cards {
    grid-template-columns: repeat(2, 1fr) !important;
}

.about-card {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 32px 28px;
    min-height: 160px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 32px rgba(106, 17, 203, 0.18);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.4em;
    color: #e0d7ff;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 8px;
}

.about-card h3::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s, transform 0.3s;
}

.about-card:hover h3::after {
    opacity: 1;
    transform: scaleX(1);
}

.about-card p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.16em;
    text-align: left;
}

@media (max-width: 900px) {
    .about-cards {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 24px;
    }

    .about-cards.main-cards {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .about-cards {
        width: 95%;
    }
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 0, 0, 0.35);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav ul li:first-child {
    margin-right: auto;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header nav ul li a:hover {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.3), rgba(37, 117, 252, 0.3));
    color: #e0d7ff;
    text-shadow: 0 2px 8px rgba(106, 17, 203, 0.4);
}

header nav ul li a::after {
    content: '';
    display: block;
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s, transform 0.3s;
}

header nav ul li a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 100px 20px 100px 20px;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('/media/Cat_backround.png') center/cover no-repeat;
    position: relative;
    border-bottom: 8px solid rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.hero-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#hero h1 {
    font-size: 4em;
    margin: 15px 0 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e0d7ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

#hero p {
    font-size: 1.5em;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.8em;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 40px auto 0 auto;
    padding: 15px 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6a11cb, #2575fc, transparent);
    border-radius: 0 0 8px 8px;
}

/* Portfolio Section */
#portfolio {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-btn {
    background: #833AB4;
    background: rgba(234, 234, 234, 0.1);
    padding: 20px 40px;
    border-radius: 12px;
    border: 4px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
#about {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #fff;
}

/* Social Buttons */
.social a {
    display: inline-block;
    margin: 0 10px;
    color: #fff;
    font-size: 1.5em;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid #fff;
}

.social a:hover {
    background: #fff;
    color: #2575fc;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Accordion Buttons */
.accordion {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    padding: 15px 20px;
    width: var(--content-width);
    margin: 10px auto;
    border-radius: 12px;
    text-align: left;
    font-weight: bold;
    transition: background 0.3s;
}

.accordion:first-of-type {
    margin-top: 80px;
}

.accordion:last-of-type {
    margin-bottom: 80px;
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.2);
}

.accordion.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Panel Content */
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
    width: var(--content-width);
    margin: 0 auto 10px auto;
    padding: 15px 20px;
    border-radius: 12px;
}

.panel p {
    margin: 0;
    padding: 5px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

.panel p.tight {
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #0a0a0a;
    background: #EEAECA;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: block;
}


.panel p.tight {
    margin: 0;
    line-height: 1.6;
    text-align: justify;
}
/* Gallery Grid */
/* Gallery Grid - Horizontal Scroll */
.gallery-grid {
    display: flex;
    gap: 24px;
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 17, 203, 0.6) rgba(255, 255, 255, 0.1);
}

.gallery-grid::-webkit-scrollbar {
    height: 12px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #7a21db, #3585fc);
}

.gallery-item {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(106, 17, 203, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    color: #e0d7ff;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.95em;
    color: #fff;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .gallery-item {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .gallery-item {
        width: 250px;
        height: 250px;
    }
    
    .gallery-grid {
        padding: 10px;
        gap: 16px;
    }
}

/* MOBILE OPTIMIZATION (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --content-width: 95% !important;
        --cards-width: 95% !important;
    }

    /* Header */
    header {
        padding: 8px 12px;
    }

    header nav ul {
        gap: 8px;
        flex-wrap: wrap;
    }

    header nav ul li a {
        padding: 8px 12px;
        font-size: 0.85em;
        letter-spacing: 0.2px;
    }

    /* Hero Section */
    #hero {
        padding: 60px 15px 60px 15px;
    }

    #hero h1 {
        font-size: 2em !important;
    }

    .hero-subtitle {
        font-size: 1em !important;
    }

    /* About Cards */
    .about-cards {
        grid-template-columns: 1fr !important;
        width: 95% !important;
        gap: 16px !important;
        margin: 15px auto 0 auto !important;
    }

    .about-card {
        padding: 20px 16px !important;
        min-height: auto !important;
        border-radius: 12px;
    }

    .about-card h3 {
        font-size: 1.1em !important;
        margin-bottom: 12px !important;
    }

    .about-card p {
        font-size: 0.95em !important;
        line-height: 1.5 !important;
    }

    /* Gallery */
    .gallery-grid {
        gap: 12px !important;
        padding: 15px !important;
        scroll-padding: 15px;
    }

    .gallery-item {
        flex: 0 0 calc((100vw - 60px) / 1.5) !important;
        aspect-ratio: 3 / 2 !important;
        border-radius: 8px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
    }

    .gallery-overlay h4 {
        font-size: 1.05em !important;
    }

    /* Social Buttons */
    .social-buttons {
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    .social-icon-btn {
        width: 100px !important;
        min-height: 80px !important;
        padding: 12px 16px !important;
        font-size: 0.85em !important;
        gap: 8px !important;
    }

    .social-icon-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Text */
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.8em !important; }
    h2 { font-size: 1.4em !important; }
    h3 { font-size: 1.1em !important; }
    p { font-size: 0.95em !important; }

    /* Sections */
    section {
        padding: 40px 15px !important;
    }

    /* Accordion */
    .accordion {
        font-size: 0.9em !important;
        padding: 12px 15px !important;
        width: 95% !important;
        margin: 8px auto !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .accordion:first-of-type {
        margin-top: 40px !important;
    }

    .accordion:last-of-type {
        margin-bottom: 40px !important;
    }

    .panel {
        width: 95% !important;
        padding: 12px 15px !important;
        margin: 0 auto 8px auto !important;
    }

    .panel p {
        padding: 5px 0 !important;
        font-size: 0.9em !important;
        line-height: 1.5 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    }

    .panel {
        padding: 15px !important;
    }

    /* Footer */
    footer {
        padding: 20px 15px !important;
        font-size: 0.9em !important;
    }
}
