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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.loading-content {
    text-align: center;
    color: white;
}

.profile-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.loader-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.loader-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 4px solid transparent;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
}

.loader-title {
    font-size: 2.2em;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loader-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Main Container */
.main-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 30px;
    position: relative;
    background: white;
}

.hero-content {
    text-align: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 30px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #34495e);
}

.profile-image {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover .image-overlay {
    opacity: 0;
}

.profile-name {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.profile-title {
    font-size: 1.3em;
    color: #5a6c7d;
    margin-bottom: 25px;
    font-weight: 400;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge.tech {
    background: #34495e;
}

.badge.sport {
    background: #5a6c7d;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-text {
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -2px;
}

.chevron {
    width: 20px;
    height: 20px;
    border-right: 3px solid #2c3e50;
    border-bottom: 3px solid #2c3e50;
    transform: rotate(45deg);
    animation: chevronMove 2s ease-in-out infinite;
}

.chevron:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.7;
}

.chevron:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0.4;
}

@keyframes fadeInBounce {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes chevronMove {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* Content Preview */
.content-preview {
    margin-top: 30px;
    text-align: center;
    color: #2c3e50;
    opacity: 0.9;
    z-index: 2;
    position: relative;
}

.preview-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.preview-subtitle {
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    color: #5a6c7d;
}

/* About Section */
.about-section {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.about-intro {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro strong {
    color: #2c3e50;
    font-weight: 600;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 0;
}

.detail-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.detail-icon {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
}

.detail-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.detail-content p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.skills,
.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skills span,
.achievements span {
    background: #34495e;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

/* CV Section */
.cv-section {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cv-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2c3e50;
}

.cv-card.professional::before {
    background: #2c3e50;
}

.cv-card.archer::before {
    background: #34495e;
}

.cv-card.english::before {
    background: #5a6c7d;
}

.cv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.cv-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.cv-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.cv-description {
    color: #5a6c7d;
    margin-bottom: 25px;
    font-size: 1em;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}

.cv-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
    background: #34495e;
}

.link-arrow {
    transition: transform 0.3s ease;
}

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

/* Contact Section */
.contact-section {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2em;
    min-width: 60px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9em;
    color: #5a6c7d;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link.instagram:hover {
    background: #34495e;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(52, 73, 94, 0.2);
}

.social-link.facebook:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2);
}

.social-icon {
    font-size: 2.5em;
    min-width: 60px;
    text-align: center;
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 2px;
}

.social-handle {
    font-size: 1em;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 30px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-content p:last-child {
    margin-bottom: 0;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .profile-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .profile-name {
        font-size: 2.2em;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-card {
        padding: 30px 20px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge {
        font-size: 0.85em;
        padding: 6px 14px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-text {
        font-size: 1em;
    }

    .chevron {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .content-preview {
        margin-top: 40px;
    }

    .preview-title {
        font-size: 1.5em;
    }

    .preview-subtitle {
        font-size: 1em;
    }
}

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

    .hero-section {
        padding: 60px 15px 30px;
    }

    .profile-name {
        font-size: 1.8em;
    }

    .profile-title {
        font-size: 1.1em;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .about-intro {
        font-size: 1.1em;
    }

    .detail-card {
        padding: 25px 15px;
    }

    .cv-card {
        padding: 30px 20px;
    }

    .contact-item,
    .social-link {
        padding: 15px;
    }

    .skills,
    .achievements {
        justify-content: flex-start;
    }

    .content-preview {
        margin-top: 30px;
    }

    .preview-title {
        font-size: 1.3em;
    }

    .preview-subtitle {
        font-size: 0.95em;
    }
}

/* Animations for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {

    .loading-screen,
    .footer,
    .social-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .main-container {
        opacity: 1;
        transform: none;
    }
}