:root {
    --ash-grey: #2F2F2F;
    --electric-violet: #8F00FF;
    --light-grey: #E0E0E0;
    --dark-grey: #1A1A1A;
    --text-grey: #B0B0B0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--ash-grey);
    color: var(--light-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background-color: rgba(47, 47, 47, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--electric-violet);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--electric-violet);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--electric-violet);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--light-grey);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--electric-violet);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ash-grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--electric-violet);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70vh;
    height: 70vh;
    background: radial-gradient(circle, var(--electric-violet) 0%, rgba(143, 0, 255, 0) 70%);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0.3; }
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.accent-button {
    background-color: var(--electric-violet);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(143, 0, 255, 0.3);
}

.accent-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(143, 0, 255, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

/* About Section */
.about {
    padding: 5rem 5%;
    display: flex;
    gap: 3rem;
    align-items: center;
    background-color: var(--dark-grey);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.about-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--electric-violet);
    border-radius: 10px;
    top: 15px;
    left: 15px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--electric-violet);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-grey);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light-grey);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--electric-violet);
    color: var(--electric-violet);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: var(--electric-violet);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}


.portfolio-item {
    background-color: var(--dark-grey);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light-grey);
}

.portfolio-info p {
    color: var(--text-grey);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    background-color: rgba(143, 0, 255, 0.2);
    color: var(--electric-violet);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--dark-grey);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--electric-violet);
}

.contact-info p {
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    color: var(--light-grey);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.contact-social a:hover {
    color: var(--electric-violet);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-grey);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--ash-grey);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--light-grey);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Form Status */
#formStatus {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

#formStatus.success {
    background-color: rgba(0, 255, 0, 0.1);
    color: lightgreen;
    display: block;
}

#formStatus.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: lightcoral;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--ash-grey);
    color: var(--text-grey);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--light-grey);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--dark-grey);
    z-index: 90;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.3s ease;
}

.mobile-menu a {
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1.2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mobile-social-icons a {
    color: var(--light-grey);
    font-size: 1.2rem;
}

/* Square Image Class */
.square-image {
    width: 200px; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 10px; 
    border: 3px solid var(--electric-violet); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        height: auto;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .about {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
    }
    .square-image {
        width: 150px;
        height: 150px;
    }

}