/* Basic Styles */
body {
    direction: ltr;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f0f0f0;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #f0f0f0;
}

h1, h2 {
    font-weight: 300;
}

/* Header & Video */
header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.header-content {
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 30px; 
}

.blur-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    z-index: -1;
}

.header-content h1, .header-content p, .cta-button {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 4em;
    margin-bottom: 0.2em;
}

.header-content p {
    font-size: 1.5em;
    margin-top: 0;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    background-color: transparent;
    color: #f0f0f0;
    border: 2px solid #f0f0f0;
    padding: 15px 30px;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #f0f0f0;
    color: #121212;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    font-size: 1.1em;
    font-weight: 300;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff5722;
}

/* General Sections */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff5722;
    margin: 10px auto 0;
}

/* Resume Button */
.resume-button {
    background-color: #ff5722;
    color: #f0f0f0;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: inline-block;
}

.resume-button:hover {
    background-color: #e04a1e;
}

/* New Portfolio Section Styles */
.portfolio-selection {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.portfolio-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3em;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-decoration: none;
}

.portfolio-category-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #121212;
    border-color: #f0f0f0;
}

.portfolio-category-button i {
    margin-right: 10px;
    font-size: 1.5em;
}

/* Portfolio Section with Categories (old styles - will be used on other pages) */
.portfolio-category-title {
    font-size: 1.8em;
    margin-top: 60px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.portfolio-category-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff5722;
    margin: 10px auto 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    margin: 0;
}

.overlay p {
    font-weight: 300;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}

#contact-form input,
#contact-form textarea {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #f0f0f0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1em;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #888;
}

.submit-button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #e04a1e;
}

/* Social Media Section */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: #f0f0f0;
    font-size: 2.2em;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff5722;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    font-size: 0.9em;
    color: #888;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    /* Header and Main Content */
    .header-content h1 {
        font-size: 2.5em;
    }
    .header-content p {
        font-size: 1.2em;
    }
    .blur-box {
        width: 85%;
        padding: 20px;
    }
    
    /* Navigation Menu */
    .nav-links {
        flex-direction: column;
    }
    .nav-links li {
        margin: 5px 0;
    }
    .section {
        padding: 60px 5%;
    }

    /* Portfolio Buttons */
    .portfolio-selection {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }
    .portfolio-category-button {
        width: calc(100% - 20px);
        box-sizing: border-box;
        font-size: 1.1em;
        padding: 12px 20px;
        margin: 0 auto;
    }
    .portfolio-category-button i {
        font-size: 1.1em;
    }

    /* Social Media Icons */
    .social-links a {
        font-size: 1.8em;
    }
    
    /* Contact Form */
    #contact-form {
        width: 90%;
    }
}