/* Reset and basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #111; /* Dark background for Meshwarp */
    color: #fff;
}

/* Navigation */
header {
    background-color: #111;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-family: "Arial", sans-serif;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #111;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: #a64ca6; /* Purple accent */
    margin-bottom: 1rem;
}
.hero-text sH1{
    font-size: 2.0rem;
    color: #a64ca6; /* Purple accent */
    margin-top: 1.0rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.hero .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #a64ca6; /* Purple accent */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
/* Hero Section */
.hero {
    position: relative;
    height: 90vh; /* almost full viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #111; /* dark background */
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-text {
    position: relative;
    z-index: 10; /* text above the 3D canvas */
    text-align: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* lets you interact with canvas below */
}

/* Preloader */
#preloader {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #a64ca6;
    z-index: 20;
}

/* Portfolio Section */
#portfolio {
    padding: 4rem 2rem;
    background-color: #222;
    text-align: center;
}

#portfolio h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.portfolio-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Rounded corners */
    object-fit: cover;   /* Crop images nicely */
    transition: transform 0.3s ease; /* For hover effect */
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}
.portfolio-item {
    background-color: #333;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #a64ca6;
}

.portfolio-item img {
    max-width: 100%;
    border-radius: 5px;
}

.portfolio-item h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #fff;
}

/* CTA Section */
.cta {
    text-align: center;
    margin: 3rem 0;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cta .btn {
    padding: 0.5rem 1rem;
    background-color: #a64ca6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #111;
    color: #ccc;
}

footer .social-links a {
    margin: 0 1rem;
    color: #a64ca6;
    text-decoration: none;
}