/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header Styles */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Gallery / Work Showcase Section */
.gallery {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

/* Work Subsection Styles */
.work-subsection {
    margin-bottom: 3rem;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.subsection-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    transform: translateX(5px);
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.subsection-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.subsection-header.active .subsection-arrow {
    transform: rotate(180deg);
}

.subsection-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 0;
}

.subsection-content.active {
    max-height: 5000px;
    padding: 1rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Link Card Styles */
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    height: 100%;
    min-height: 300px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .link-card::before {
    opacity: 1;
}

.link-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.link-icon svg {
    width: 100%;
    height: 100%;
}

.github-icon {
    background: linear-gradient(135deg, #24292e 0%, #2f363d 100%);
    color: white;
}

.youtube-icon {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.linkedin-icon {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: white;
}

.medium-icon {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.facebook-icon {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fbd 100%);
    color: white;
}

.instagram-icon {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
    color: white;
}

.x-icon {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.topmate-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.gallery-item:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    transition: color 0.3s ease;
}

.gallery-item:hover .link-title {
    color: var(--primary-color);
}

.link-description {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.link-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
    display: inline-block;
}

.gallery-item:hover .link-arrow {
    transform: translateX(5px);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: var(--bg-white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer p {
    opacity: 0.8;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    display: block;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }

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

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

    .hero-description {
        font-size: 1rem;
    }

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

    .subsection-header {
        padding: 1.25rem 1.5rem;
    }

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

    .link-card {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }

    .link-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }

    .link-title {
        font-size: 1.25rem;
    }

    .link-description {
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

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

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

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .footer-social {
        gap: 1rem;
    }

    .footer-social-icon {
        width: 20px;
        height: 20px;
    }
}

