/* ====================
   Reset & Base Styles
   ==================== */
   :root {
    --primary-color: #f7c08a;
    --secondary-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================
        User Menu
   ==================== */

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    color: var(--white);
    font-size: 0.9rem;
}

.logout-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #e6954c;
}

/* ====================
   Header & Navigation
   ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
}

.hex-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* ====================
   Hero Section
   ==================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin-top: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
}

.floating-elements {
    position: relative;
    height: 400px;
}

.floating-elements > div {
    position: absolute;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.code-element { top: 0; left: 20%; }
.design-element { top: 50%; right: 30%; }
.mobile-element { bottom: 20%; left: 40%; }

/* ====================
   Services Section
   ==================== */
.services {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* ====================
   Projects Section
   ==================== */
.projects {
    padding: 5rem 2rem;
    background: var(--white);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 15rem;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ====================
   Contact Section
   ==================== */
.contact {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: var(--white);
    padding: 0 0.5rem;
    color: #666;
    transition: all 0.3s ease;
}

.form-group.focused label {
    top: -0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a{
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--primary-color);
}

.submit-button.success {
    background: #4CAF50;
}

/* ====================
   Footer
   ==================== */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ====================
   Animations
   ==================== */
.animate-text {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-text-delay {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

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

/* ====================
   Media Queries
   ==================== */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 2rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .code-element { top: 0; left: 20%; }
    .design-element { top: 20%; right: 100%; }
    .mobile-element { bottom: 40%; left: 40%; }

    footer {
        background: var(--secondary-color);
        color: var(--white);
        padding: 2rem;
        text-align: center;

    }
    
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .user-menu {
        flex-direction: column;
        align-items: flex-end;
    }

    .welcome-text{
        display: none;
    }
    
    .logout-btn {
        background-color: var(--primary-color);
        color: var(--secondary-color);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        cursor: pointer;
        font-size: 0.7rem;
        transition: background-color 0.3s ease;
    }
}

@media screen and (max-width: 400px){
    .hero-content p {
        font-size: 1.1rem;
    }
}
