/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #f87171;
    --secondary-color: #1a1a1a;
    --accent-color: #ef4444;
    --text-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-gray: #a3a3a3;
    --text-muted: #737373;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --border-color: rgba(239, 68, 68, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 0 20px rgba(239, 68, 68, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('./assets/hero.jpg');
    background-size: cover;
    background-position: 65% -20px;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(239, 68, 68, 0.25) 100%);
    backdrop-filter: blur(2px);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 68, 68, 0.15);
    z-index: 0;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.5);
    z-index: 0;
}

.hero-overlay .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.2);
    line-height: 1.2;
}

.hero-divider {
    width: 120px;
    height: 2px;
    background: var(--primary-color);
    margin: 2.5rem auto;
    position: relative;
    opacity: 1;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: justify;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: var(--bg-card);
    color: var(--text-light);
    position: relative;
}

.experience-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.experience-text {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-weight: 300;
    text-align: justify;
}

.motto {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-weight: 400;
}

.motto strong {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Section Title */
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Video Section */
.video-section {
    background: var(--bg-dark);
    padding: 6rem 0;
}

.video-container {
    position: relative;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    overflow: hidden; /* Keeps the child image within the rounded corners */
}

.video-thumbnail-link {
    display: block;
    position: relative;
    line-height: 0; /* Removes bottom space under the image */
}

.video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.03);
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    color: var(--text-light);
    font-size: 3rem;
    border-radius: 8px;
    opacity: 1;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.video-thumbnail-link:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.play-button-overlay i {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-thumbnail-link:hover .play-button-overlay i {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-card);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem;
    background: var(--bg-dark);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    min-height: 220px;
    cursor: pointer;
}

.contact-item:hover,
.contact-item:focus {
    background: var(--bg-card);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-red);
    border-color: rgba(239, 68, 68, 0.3);
    outline: none;
}

.contact-item:active {
    transform: translateY(-4px);
}

.contact-item i {
    font-size: 2.75rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
}

.contact-item span {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    word-break: break-all;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-darker);
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.6;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: 70% -30px;
    }

    .hero-title {
        letter-spacing: 0.1em;
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-divider {
        width: 100px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }

    .about,
    .experience,
    .video-section,
    .contact {
        padding: 3.5rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }

    .contact-item {
        padding: 2rem;
        gap: 1rem;
        min-height: auto;
    }

    .contact-item i {
        font-size: 2.25rem;
    }

    .contact-item span {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        background-position: 67% 0px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        letter-spacing: 0.08em;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .hero-divider {
        width: 70px;
        height: 2px;
        margin: 1.5rem auto;
    }

    .section-title {
        margin-bottom: 2rem;
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        padding-bottom: 1rem;
    }

    .section-title::after {
        width: 60px;
    }

    .contact-item {
        padding: 1.75rem;
        gap: 0.75rem;
    }

    .contact-item i {
        font-size: 1.75rem;
    }

    .contact-item span {
        font-size: 0.85rem;
    }

    .about-text,
    .experience-text {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .motto {
        font-size: clamp(1rem, 2vw, 1.4rem);
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }
}
