/* Base Styles */
:root {
    /* Unified with main site palette */
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --secondary-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --primary-color: #3B82F6;
    --dark-bg: #121212;
    --light-text: #ffffff;
    --dark-text: #333333;
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-text);
    line-height: 1.6;
    background-color: var(--dark-bg);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 20px;
    z-index: 10;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    background: #3B82F6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

.nav ul li {
    margin: 0 20px;
}

.nav ul li a {
    position: relative;
    font-weight: 600;
    padding: 5px 0;
    color: var(--light-text);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gradient);
    transition: width 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

/* Projects Header */
.projects-header {
    padding: 150px 20px 80px;
    text-align: center;
}

.projects-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.projects-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.project {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 25px;
}

.project-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tech {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.view-project {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-gradient);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-project:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-content {
    text-align: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-text);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-content p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .projects-header {
        padding: 120px 20px 60px;
    }
    
    .projects-header h1 {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .nav ul li {
        margin: 0 10px;
    }
    
    .projects-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
}