/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --bg-color: #000000;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Logo styles */
.logo-container {
    position: fixed;
    top: -40px;
    left: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo-image {
    height: 200px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #4CAF50;
}

.nav-links a.active {
    color: #4CAF50;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme toggle button styles */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.theme-toggle:hover {
    color: #4CAF50;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Featured Projects */
.featured-projects {
    padding: 5rem 2rem;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 1rem;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    display: block;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 10px;
}

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

.project-image {
    height: 200px;
    background-color: var(--accent-color);
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.project-card h3, 
.project-card p {
    width: 100%;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1.5rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Theme colors */
:root[data-theme="light"] {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #f0f0f0;
    --bg-color: #ffffff;
    --text-color: #000000;
    --card-bg: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --bg-color: #000000;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.9);
    }

    .navbar-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .project-card {
        margin-bottom: 20px;
    }

    .project-image {
        height: 180px;
    }

    .featured-projects {
        padding: 3rem 1rem;
    }

    .featured-projects h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Portfolio Grid Styles */
.portfolio-section {
    padding: 5rem 2rem;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 20px;
}

.portfolio-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-overlay {
    padding: 1.5rem;
}

.portfolio-overlay h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.portfolio-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;  /* Change to single column */
        gap: 1.5rem;  /* Reduce gap for mobile */
        padding: 0 15px;  /* Adjust padding for mobile */
    }

    .portfolio-item {
        margin-bottom: 20px;  /* Add space between items */
    }

    .portfolio-img {
        height: 180px;  /* Slightly reduce image height for mobile */
    }

    .portfolio-section {
        padding: 3rem 1rem;  /* Adjust section padding for mobile */
    }

    .portfolio-section h1 {
        font-size: 2rem;  /* Reduce heading size for mobile */
        margin-bottom: 2rem;
        text-align: center;
    }
}

.project-card .hover-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 90%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.project-card .hover-content h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.project-card .hover-content p {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    color: white;
}
  