/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff; /* Light mode background */
    --primary-text: #333333; /* Light mode text */
    --accent-color: #ff6b6b; /* Bold accent color (example: coral) */
    --secondary-bg: #f8f9fa; /* Light gray for sections */
    --border-color: #e0e0e0;
    --header-font: 'Poppins', sans-serif; /* Example modern font */
    --body-font: 'Lato', sans-serif; /* Example clean body font */

    /* Dark Mode Variables (optional, can be toggled via JS) */
    --dark-bg: #1a1a1a;
    --dark-text: #e0e0e0;
    --dark-secondary-bg: #2c2c2c;
    --dark-border-color: #444444;
}

/* Add imports for Google Fonts if needed in HTML head or here */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Lato:wght@400;700&display=swap');

body {
    font-family: var(--body-font);
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* For theme toggle */
}

/* Optional Dark Mode */
body.dark-mode {
    --primary-bg: var(--dark-bg);
    --primary-text: var(--dark-text);
    --secondary-bg: var(--dark-secondary-bg);
    --border-color: var(--dark-border-color);
}

h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: darken(var(--accent-color), 10%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section:nth-child(odd) {
    background-color: var(--secondary-bg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/ChatGPT Image Mar 27, 2025, 05_56_24 PM.png') no-repeat center center/cover; /* Add a background image */
    color: #ffffff;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* For potential parallax or animations */
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    /* Placeholder for animation */
}

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    /* Placeholder for typewriter effect */
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: darken(var(--accent-color), 10%);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Navigation */
.main-nav {
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky; /* Sticky nav */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    color: var(--primary-text);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { /* Add 'active' class via JS on scroll */
    width: 100%;
}


/* About Section */
.about {
    text-align: center;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* For hover effect */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.project-card h3,
.project-card p {
    padding: 1rem;
    color: var(--primary-text);
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    padding-top: 0;
}

/* Style for the link wrapping the project card */
.project-card-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color from parent */
    display: block; /* Make the link a block element */
}

.project-card-link:hover .project-card {
    /* Apply hover effect to the card when the link is hovered */
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Services Section - Updated Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-column layout */
    gap: 30px; /* Gap between cards */
    margin-top: 2rem;
}

.service-card {
    background-color: var(--primary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.3rem; /* Slightly smaller heading */
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--primary-text);
    margin-bottom: 0; /* Remove default paragraph margin */
}

.highlight-accent {
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive adjustments for services grid */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}


/* Testimonials Section */
.testimonials blockquote {
    background-color: var(--primary-bg);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.testimonials footer {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
    text-align: right;
}

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: var(--primary-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--secondary-bg); /* Slightly different background for inputs */
    color: var(--primary-text);
}

.contact textarea {
    resize: vertical;
}

.contact button {
    width: 100%;
}

/* Social Icons Styling */
.social-icons {
    margin-top: 1.5rem;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    /* font-size: 1.2rem; Adjust size as needed */
    color: var(--primary-text); /* Inherit text color */
    transition: color 0.3s ease;
}

.social-icons a svg {
    width: 24px; /* Set SVG width */
    height: 24px; /* Set SVG height */
    vertical-align: middle; /* Align icon vertically */
}


.social-icons a:hover {
    color: var(--accent-color); /* Highlight on hover */
}


/* Footer */
footer {
    background-color: var(--dark-bg); /* Dark footer */
    color: var(--dark-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .hero {
        height: 50vh;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* Stack projects on smaller screens */
    }

    .services ul {
        grid-template-columns: 1fr;
    }
}

/* Placeholder for Scroll Animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Placeholder for Custom Cursor (requires JS) */
/* body.custom-cursor { cursor: none; } */
/* .custom-cursor-element { ... } */

/* Placeholder for Light/Dark Toggle Button */
/* .theme-toggle-button { ... } */


/* 3D Carousel Styles */
.carousel-section {
    background-color: var(--secondary-bg); /* Match other odd sections */
    text-align: center;
}

.carousel-container {
    margin-top: 3rem;
    perspective: 1000px; /* Creates the 3D space */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* Adjust height as needed */
}

.carousel {
    width: 210px; /* Adjust based on image size and desired spacing */
    height: 140px; /* Adjust based on image size */
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCarousel 30s infinite linear; /* Adjust duration for speed */
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 10px; /* Small offset */
    width: 190px; /* Slightly smaller than carousel width */
    height: 120px; /* Slightly smaller than carousel height */
    backface-visibility: hidden; /* Hide back of images */
    border: 2px solid var(--accent-color); /* Optional border */
    border-radius: 5px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Position items in a circle (5 items = 360/5 = 72 degrees apart) */
.carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(288px); } /* Adjust translateZ for radius */
.carousel-item:nth-child(2) { transform: rotateY(72deg) translateZ(288px); }
.carousel-item:nth-child(3) { transform: rotateY(144deg) translateZ(288px); }
.carousel-item:nth-child(4) { transform: rotateY(216deg) translateZ(288px); }
.carousel-item:nth-child(5) { transform: rotateY(288deg) translateZ(288px); }

@keyframes rotateCarousel {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Optional: Pause animation on hover */
.carousel-container:hover .carousel {
    animation-play-state: paused;
}
