/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Scroll reveal classes */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section */
/* Add at the start of the file */
:root {
    --primary-color: #2F2F2F;
    --hover-color: #1a1a1a;
    --text-color: #333;
    --border-color: #ddd;
    --whatsapp-color: #25D366;
    --snapchat-color: #FFFC00;
}

/* Update color references to use variables */
.hero-section {
    background-color: var(--primary-color);
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    text-align: center;
    color: black;
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.2);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    position: relative;
}

.grid-item {
    padding: 0;
}

.profile-video {
    width: 100%;
    aspect-ratio: 2/5;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-title {
    text-align: right;
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
    padding-right: 2rem;
}

/* About section */
.about-text {
    padding: 0 15%;
    line-height: 1.8;
    text-align: justify;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.project-desc {
    display: flex;
    align-items: center;
    padding: 2rem;
}

.right-aligned {
    text-align: right;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.social-icons a {
    font-size: 2.5rem;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.fa-whatsapp {
    color: #25D366;
}

.fa-snapchat-ghost {
    color: #FFFC00;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 0 10%;
    }

    .project-desc {
        padding: 1rem;
    }

    .right-aligned {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-text {
        padding: 0 5%;
    }

    .projects-grid {
        padding: 1rem;
    }
}

/* Sections */
.section {
    padding: 5rem 2rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2F2F2F;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

/* Skills section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2F2F2F;
    outline: none;
}

button {
    background-color: #2F2F2F;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1a1a1a;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.social-icons a {
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Add smooth scrolling to the root element */
html {
    scroll-behavior: smooth;
}

/* Optimize animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}