/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #007acc;
    --accent-purple: #6a0dad;
    --accent-green: #00bc8c;
    --border-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem;
}

/* Photo */
.photo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-tertiary);
    background: var(--bg-tertiary);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .photo-overlay i {
        font-size: 2rem;
        color: white;
    }

.photo-container:hover .photo-overlay {
    opacity: 1;
}

/* Profile Info */
.profile-info {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-title {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .nav-item:hover,
    .nav-item.active {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

    .nav-item i {
        width: 20px;
        text-align: center;
    }

/* Quick Contacts */
.quick-contacts {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .contact-link:hover {
        background: var(--accent-blue);
        color: white;
        transform: translateY(-2px);
    }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 2rem 4rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Directions Grid */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.direction-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .direction-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.direction-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .direction-icon i {
        font-size: 1.5rem;
        color: white;
    }

.direction-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.direction-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Technologies */
.tech-category {
    margin-bottom: 3rem;
}

.tech-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

    .tech-category-title i {
        color: var(--accent-blue);
    }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .tech-tag:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .tech-tag.unity {
        background: linear-gradient(135deg, var(--accent-purple), #8a2be2);
    }

    .tech-tag.dotnet {
        background: linear-gradient(135deg, var(--accent-blue), #0094ff);
    }

/* Skills */
.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

    .skill-item i {
        font-size: 1.5rem;
        color: var(--accent-blue);
        margin-top: 0.2rem;
    }

    .skill-item h4 {
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .skill-item p {
        color: var(--text-secondary);
    }

/* Contacts */
.contacts-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .contact-icon i {
        font-size: 1.2rem;
        color: var(--accent-blue);
    }

.contact-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .contact-info a:hover {
        color: var(--accent-blue);
    }

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    margin-left: 320px;
}

    .footer p {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }

    .main-content {
        margin-left: 280px;
        padding: 2rem;
    }

    .footer {
        margin-left: 280px;
    }
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .footer {
        margin-left: 0;
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 1rem;
    align-items: center;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .mobile-menu-btn:hover {
        background: var(--bg-tertiary);
    }

.mobile-title {
    margin-left: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Sidebar Mobile Styles */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

        .sidebar.mobile-open {
            left: 0;
        }

    .mobile-overlay.mobile-open {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 5rem 1rem 2rem; /* Extra top padding for mobile header */
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .footer {
        position: relative;
        margin-left: 0;
        margin-top: 2rem;
    }

    /* Adjust sections for mobile */
    .section-header h2 {
        font-size: 2rem;
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-tags {
        gap: 0.5rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Photo adjustments for mobile */
    .photo-container {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.3rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-content {
        padding: 5rem 0.5rem 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .direction-card {
        padding: 1.5rem;
    }

    .skill-item {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }
}

/* Ensure content is properly spaced on mobile */
.layout-container {
    min-height: 100vh;
}

/* Remove body overflow hidden for mobile to allow scrolling */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

/* Sidebar Close Button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .sidebar-close-btn:hover {
        background: var(--bg-tertiary);
    }

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: block;
    }
}

/* Custom Scrollbar Styles for all elements */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* Specific styles for sidebar scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-secondary);
}

/* Specific styles for main content scrollbar */
.main-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
}

/* Ensure scrollbars are visible only when needed */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
}

.main-content {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* About Section Enhancements */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.professional-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-text {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

    .highlight-text i:first-child {
        position: absolute;
        left: 1rem;
        top: 1rem;
        color: var(--accent-blue);
        opacity: 0.3;
    }

    .highlight-text span {
        font-style: italic;
        color: var(--text-secondary);
        margin-left: 2rem;
    }

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.achievement-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

    .achievement-card:hover {
        transform: translateY(-5px);
    }

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

    .achievement-icon i {
        font-size: 1.5rem;
        color: white;
    }

.achievement-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Social Links */
.social-section {
    text-align: center;
    padding: 2rem 0;
}

    .social-section h3 {
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--accent-blue);
        transform: translateY(-2px);
    }

/* CTA Section */
.cta-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cta-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 122, 204, 0.3);
    }

/* Responsive */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

    .platform-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

.platform-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .platform-icon i {
        font-size: 1.3rem;
        color: white;
    }

.platform-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tech Stack Section */
.tech-stack-section {
    margin: 3rem 0;
}

    .tech-stack-section h3 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--text-primary);
        font-size: 1.5rem;
    }

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-stack-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

    .tech-stack-item:hover {
        transform: translateY(-2px);
    }

    .tech-stack-item i {
        font-size: 1.5rem;
        color: var(--accent-blue);
        margin-top: 0.2rem;
    }

    .tech-stack-item h4 {
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .tech-stack-item p {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

/* Social Links Updates */
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--accent-blue);
        transform: translateY(-2px);
    }

/* Responsive */
@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 200px;
        justify-content: center;
    }
}

/* Detailed Directions Styles */
.directions-detailed {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.direction-detailed-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .direction-detailed-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.direction-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--bg-tertiary), transparent);
}

.direction-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .direction-icon i {
        font-size: 1.8rem;
        color: white;
    }

.direction-title h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.direction-title p {
    color: var(--text-secondary);
    margin: 0;
}

.direction-content {
    padding: 0 2rem 2rem;
}

.tech-stack {
    margin-bottom: 2rem;
}

    .tech-stack h4 {
        margin-bottom: 1rem;
        color: var(--text-primary);
        font-size: 1.1rem;
    }

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-item {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .tech-item:hover {
        background: var(--accent-blue);
        transform: translateY(-2px);
    }

.direction-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

    .feature:hover {
        transform: translateX(5px);
    }

    .feature i {
        font-size: 1.3rem;
        color: var(--accent-blue);
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

    .feature h5 {
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        font-size: 1rem;
    }

    .feature p {
        color: var(--text-secondary);
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .direction-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem 1rem;
    }

    .direction-icon {
        width: 60px;
        height: 60px;
    }

        .direction-icon i {
            font-size: 1.5rem;
        }

    .direction-content {
        padding: 0 1rem 1.5rem;
    }

    .direction-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature {
        padding: 1rem;
    }

    .tech-items {
        gap: 0.5rem;
    }

    .tech-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .direction-header {
        padding: 1rem;
    }

    .direction-content {
        padding: 0 0.5rem 1rem;
    }

    .tech-items {
        justify-content: center;
    }
}

/* Specialization Section Styles */
.specialization-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

    .specialization-section h4 {
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        font-size: 1.1rem;
        text-align: center;
    }

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.specialization-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

    .specialization-item:hover {
        transform: translateY(-3px);
        background: var(--accent-blue);
    }

        .specialization-item:hover i,
        .specialization-item:hover span {
            color: white;
        }

    .specialization-item i {
        font-size: 1.5rem;
        color: var(--accent-blue);
        transition: color 0.3s ease;
    }

    .specialization-item span {
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
        line-height: 1.3;
    }

/* Update direction features grid for 3 columns */
.direction-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Responsive Design for Specialization */
@media (max-width: 768px) {
    .specialization-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .specialization-item {
        padding: 1rem 0.5rem;
    }

        .specialization-item i {
            font-size: 1.3rem;
        }

        .specialization-item span {
            font-size: 0.8rem;
        }

    .direction-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .specialization-grid {
        grid-template-columns: 1fr;
    }

    .specialization-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem;
    }

        .specialization-item i {
            margin-right: 0.5rem;
        }
}

/* Technologies Detailed Styles */
.technologies-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .tech-category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary), transparent);
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .category-icon i {
        font-size: 1.3rem;
        color: white;
    }

.tech-category-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.tech-category-content {
    padding: 1.5rem;
}

.tech-subcategory {
    margin-bottom: 1.5rem;
}

    .tech-subcategory:last-child {
        margin-bottom: 0;
    }

    .tech-subcategory h4 {
        margin-bottom: 0.8rem;
        color: var(--text-primary);
        font-size: 1rem;
        font-weight: 600;
    }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .tech-tag:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    /* Special tech tag styles */
    .tech-tag.unity {
        background: linear-gradient(135deg, var(--accent-purple), #8a2be2);
        border-color: var(--accent-purple);
    }

    .tech-tag.dotnet {
        background: linear-gradient(135deg, var(--accent-blue), #0094ff);
        border-color: var(--accent-blue);
    }

    .tech-tag:hover.unity {
        background: linear-gradient(135deg, #8a2be2, var(--accent-purple));
    }

    .tech-tag:hover.dotnet {
        background: linear-gradient(135deg, #0094ff, var(--accent-blue));
    }

/* Responsive Design */
@media (max-width: 768px) {
    .technologies-detailed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-category-header {
        padding: 1rem;
    }

    .tech-category-content {
        padding: 1rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

        .category-icon i {
            font-size: 1.1rem;
        }

    .tech-category-header h3 {
        font-size: 1.1rem;
    }

    .tech-tags {
        gap: 0.4rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .tech-subcategory h4 {
        text-align: center;
    }

    .tech-tags {
        justify-content: center;
    }
}

/* Competencies Detailed Styles */
.competencies-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.competency-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .competency-category:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

.competency-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary), transparent);
    border-bottom: 1px solid var(--border-color);
}

.competency-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .competency-icon i {
        font-size: 1.3rem;
        color: white;
    }

.competency-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.competency-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.competency-item {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

    .competency-item:hover {
        transform: translateX(5px);
    }

    .competency-item h4 {
        margin-bottom: 1rem;
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
    }

.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.competency-tag {
    background: rgba(0, 122, 204, 0.1);
    color: var(--accent-blue);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 204, 0.3);
}

.competency-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .competency-header {
        padding: 1rem;
    }

    .competency-content {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .competency-item {
        padding: 1rem;
    }

    .competency-icon {
        width: 40px;
        height: 40px;
    }

        .competency-icon i {
            font-size: 1.1rem;
        }

    .competency-header h3 {
        font-size: 1.1rem;
    }

    .competency-item h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .competency-tags {
        justify-content: center;
    }

    .competency-item {
        text-align: center;
    }

        .competency-item:hover {
            transform: translateY(-3px);
        }
}

/* Contacts Detailed Styles */
.contacts-detailed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

    .contact-category h3 {
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        font-size: 1.4rem;
        text-align: center;
    }

/* Основные контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .contact-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-icon i {
        font-size: 1.3rem;
        color: var(--accent-blue);
    }

.contact-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

    .contact-info a:hover {
        color: var(--accent-purple);
    }

.contact-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Социальные профили */
.social-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.social-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

    .social-profile-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        background: var(--bg-secondary);
    }

.social-profile-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .social-profile-icon.github {
        background: linear-gradient(135deg, #333, #6e5494);
    }

    .social-profile-icon.youtube {
        background: linear-gradient(135deg, #ff0000, #cc0000);
    }

    .social-profile-icon.vk {
        background: linear-gradient(135deg, #4a76a8, #2a5885);
    }

    .social-profile-icon i {
        font-size: 1.5rem;
        color: white;
    }

.social-profile-info {
    flex: 1;
}

    .social-profile-info h4 {
        margin-bottom: 0.3rem;
        color: var(--text-primary);
    }

    .social-profile-info p {
        color: var(--text-secondary);
        font-weight: 500;
        margin-bottom: 0.3rem;
    }

    .social-profile-info span {
        color: var(--text-secondary);
        font-size: 0.8rem;
    }

.social-external {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Форма обратной связи */
.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-group label {
        color: var(--text-primary);
        font-weight: 500;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 122, 204, 0.3);
    }

.form-info {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

    .form-info h4 {
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .form-info p {
        color: var(--text-secondary);
        line-height: 1.5;
        margin: 0;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .contact-category {
        padding: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .social-profiles-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .social-profile-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-category {
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .social-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .social-profile-info {
        text-align: center;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    }

    .scroll-to-top:active {
        transform: translateY(-1px);
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* На очень маленьких экранах делаем еще меньше */
    @media (max-width: 480px) {
        .scroll-to-top {
            bottom: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
    }
}
/* Projects Section */
.projects-section {
    margin-bottom: 4rem;
}

.projects-title, .reviews-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.projects-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Project Cards */
.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.8), rgba(106, 13, 173, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

    .project-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        color: var(--text-primary);
    }

    .project-content p {
        color: var(--text-secondary);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Review Cards */
.review-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

    .review-card:hover {
        transform: translateY(-3px);
    }

.review-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
}

    .review-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.review-card:hover .review-image img {
    transform: scale(1.03);
}

.review-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover .review-overlay {
    opacity: 1;
}

.review-overlay i {
    font-size: 2rem;
    color: white;
}

.review-info {
    padding: 1rem;
    text-align: center;
}

.review-badge {
    background: var(--accent-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Links */
.portfolio-link, .reviews-link {
    text-align: center;
    margin-top: 2rem;
}

.portfolio-btn, .reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .portfolio-btn:hover, .reviews-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        color: white;
        text-decoration: none;
    }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: #bbb;
    }

/* Responsive */
@media (max-width: 768px) {
    .projects-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }

    .project-image, .review-image {
        height: 180px;
    }

    .modal-content {
        width: 95%;
    }
}

/* Portfolio Links Grid */
.portfolio-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

    .portfolio-link-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border-color: var(--accent-blue);
    }

.portfolio-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

    .portfolio-icon.github {
        background: #333;
    }

    .portfolio-icon.appstore {
        background: #000;
    }

    .portfolio-icon.googleplay {
        background: linear-gradient(135deg, #4285F4, #34A853);
    }

    .portfolio-icon.rustore {
        background: linear-gradient(135deg, #FF3C00, #FF6A00);
    }

    .portfolio-icon.yandex {
        background: #FC3F1D;
    }

.portfolio-link-content {
    flex: 1;
}

    .portfolio-link-content h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
        color: var(--text-primary);
    }

    .portfolio-link-content p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0;
    }

.link-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.portfolio-link-card:hover .link-arrow {
    transform: translateX(3px);
    color: var(--accent-blue);
}

/* Status indicator for Google Play (coming soon) */
.portfolio-link-card:has(.portfolio-icon.googleplay) {
    position: relative;
}

    .portfolio-link-card:has(.portfolio-icon.googleplay)::after {
        content: "Coming Soon";
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--accent-purple);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
    }

/* Responsive */
@media (max-width: 768px) {
    .portfolio-links-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-link-card {
        padding: 1.2rem;
    }

    .portfolio-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

.link-url {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    display: block;
}