@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00a9e2;
    --accent-hover: #0088b9;
    --border-color: #333333;
    
    /* Typography */
    --main-font-family: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Layout */
    --container-width: 1200px;
    --card-border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    color: var(--text-color);
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #00bfff; /* Blue border */
    box-shadow: 0 0 10px #00bfff; /* Blue glow */
    object-fit: cover;
}

.nav-bar {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(to bottom, rgba(11, 12, 15, 0.9), rgba(11, 12, 15, 1));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 169, 226, 0.5);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 20px;
}

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

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Projects Section */
#projects {
    padding: 4rem 0;
    background-color: var(--bg-color);
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    justify-content: center;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* Changed to visible to allow details to expand */
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-description {
    margin-bottom: 2rem;
}

.project-description p {
    margin-bottom: 10px;
}

.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.view-details-btn, .btn {
    background-color: #00bfff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.view-details-btn:hover, .btn:hover {
    background-color: #009acd;
}

.project-details {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    padding: 20px;
}

.project-details.active {
    display: block;
    max-height: 1000px; /* Adjust as needed */
    opacity: 1;
}

.details-section {
    margin-bottom: 2rem;
}

.details-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.details-section ul {
    list-style-type: none;
    padding: 0;
}

.details-section li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.details-section li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.collaboration-models .models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.model-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.model-box h5 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.model-box p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.hide-details-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.hide-details-btn:hover {
    background-color: var(--accent-hover);
}

.advantage-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.advantage-item i {
    margin-right: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

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

    .collaboration-models .models-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
    }
}


@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
    }

    .nav-bar.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
        cursor: pointer;
    }

    .hamburger div {
        width: 25px;
        height: 2px;
        background: var(--text-color);
        margin: 6px 0;
        transition: 0.3s ease;
    }

    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .line2 {
        opacity: 0;
    }

    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

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

/* Contact Form Styles */
#contact {
    padding: 4rem 0;
    background-color: var(--bg-color);
    text-align: center;
}

#contact .section-title {
    margin-bottom: 1rem;
}

#contact .section-subtitle {
    margin-bottom: 3rem;
}

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

.success-message {
    margin-top: 1.5rem;
    color: #4CAF50;
    font-size: 1rem;
    text-align: center;
    display: none; /* Hidden by default */
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-group {
        flex: none;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Avatar and Logo Styles */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}