/* Color Variables */
:root {
    --blue-marguerite: #6367cc;
    --meteorite: #432579;
    --hippie-green: #658655;
    --contessa: #c6687f;
    --nepal: #8c9bbc;
    --daisy-bush: #542a93;
    --twine: #c5a363;
    --gun-powder: #40435e;
    --kimberly: #796299;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #2c2c2c;
    --light-text: #6c757d;
    
    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, var(--meteorite) 0%, var(--daisy-bush) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--blue-marguerite) 0%, var(--kimberly) 100%);
    --gradient-accent: linear-gradient(135deg, var(--twine) 0%, var(--contessa) 100%);
    --gradient-light: linear-gradient(135deg, var(--nepal) 0%, var(--white) 100%);
}

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

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden; 
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%; 
}

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

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

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--meteorite);
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 20px auto;
    border-radius: 2px;
}

/* Header Styles */
header {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--meteorite);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.tagline {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--light-text);
    margin-top: 5px;
    text-transform: uppercase;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--gun-powder);
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

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

nav ul li a:hover {
    color: var(--blue-marguerite);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--meteorite);
    cursor: pointer;
}

/* Hero Section */
.hero {
    color: var(--white);
    padding: 0;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1; 
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(197, 163, 99, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 103, 204, 0.4);
}

.cta-button:hover::before {
    width: 100%;
}

.model-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    z-index: 100;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--twine);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--light-bg);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 250px;
    background-color: var(--nepal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 0.3;
}

.portfolio-image i {
    font-size: 60px;
    color: var(--white);
    z-index: 2;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image i {
    transform: scale(1.2);
}

.portfolio-info {
    padding: 25px;
    position: relative;
    height: 180px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--meteorite);
}

.portfolio-info p {
    color: var(--light-text);
    font-size: 15px;
    margin-bottom: 15px;
    /* FIX: Added standard property line-clamp for compatibility */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-image {
    /* Fix size for perfect circle */
    flex: 0 0 350px;
    width: 350px;
    height: 350px;
    
    /* Circle styling */
    border-radius: 50%;
    background: var(--gradient-secondary);
    border: 5px solid var(--white);
    
    /* Flexbox for centering content */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
    /* Shadows and margins */
    box-shadow: 0 15px 30px rgba(99, 103, 204, 0.3);
    margin: 0 auto; 
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(99, 103, 204, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 3s infinite ease-in-out;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.about-image i {
    font-size: 120px;
    color: var(--white);
    opacity: 0.8;
    z-index: 1;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--meteorite);
}

.about-text p {
    margin-bottom: 25px;
    color: var(--light-text);
    line-height: 1.8;
}

.skills {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--gun-powder);
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 5px;
    position: relative;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: -1;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.service-item:hover::before {
    height: 100%;
}

.service-item:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-item:hover h3,
.service-item:hover p {
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--meteorite);
    transition: color 0.4s ease;
}

.service-item p {
    color: var(--light-text);
    transition: color 0.4s ease;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--meteorite);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--light-text);
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gun-powder);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 103, 204, 0.3);
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gun-powder);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-marguerite);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 103, 204, 0.1);
    background: var(--white);
}

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

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(67, 37, 121, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.4s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 163, 99, 0.3);
}

.submit-btn:hover::before {
    width: 100%;
}

/* Footer Styles */
footer {
    background: var(--gun-powder);
    color: var(--white);
    padding: 80px 0 25px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--twine);
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--twine);
}

/* About Column */
.footer-about {
    min-width: 300px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
    color: var(--white);
}

/* Links Columns */
.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 16px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
    padding: 4px 0;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    opacity: 1;
    transform: translateX(8px);
    color: var(--twine);
}

/* Contact Column */
.footer-contact {
    min-width: 280px;
}

.contact-info p {
    margin-bottom: 18px;
    opacity: 0.8;
    line-height: 1.7;
    font-size: 15px;
    padding-right: 10px;
    color: var(--white);
}

.contact-email {
    word-break: break-all;
    font-weight: 500;
    color: var(--white);
}

.contact-portfolio {
    color: var(--white);
}

.contact-portfolio a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-portfolio a:hover {
    opacity: 1;
    color: var(--twine);
    text-decoration: underline;
}

.contact-location {
    line-height: 1.6 !important;
    font-style: normal;
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    font-size: 15px;
    opacity: 0.7;
    margin-top: 20px;
    color: var(--white);
}

/* Portfolio Detail Specific Styles */
body.portfolio-detail-page {
    background-color: #f5f5f5;
    padding-top: 20px;
}

@media (max-width: 768px) {
    body.portfolio-detail-page {
        background-color: #f5f5f5;
        padding-top: 70px;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    color: var(--gun-powder);
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--meteorite);
}

.detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.detail-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--meteorite);
    margin-bottom: 10px;
}

.detail-header p {
    color: var(--light-text);
    font-size: 18px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.viewer-container {
    flex: 2;
    min-width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#model-viewer-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.viewer-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.viewer-fallback i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.viewer-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.item-info {
    flex: 1;
    min-width: 300px;
}

.item-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--meteorite);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--twine);
    padding-bottom: 10px;
}

.info-block {
    margin-bottom: 30px;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gun-powder);
    margin-bottom: 10px;
}

.info-block p, .info-block span {
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.8;
}

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

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .viewer-container {
        height: 450px;
    }
    
    /* Art Stations Responsive */
    .art-stations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        
        margin-left: -15px;
    }
    
    .art-station-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Layout Changes */
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-area {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    /* --- FIXED: Mobile Circle Size --- */
    .about-image {
        width: 280px;
        height: 280px;
        flex: 0 0 280px;
        margin-bottom: 40px;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        width: 100%;
        min-width: auto;
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 12px 15px;
    }

    .form-group textarea {
        height: 120px;
    }
    
    /* Footer Center Alignment & Vertical Stack */
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .footer-col {
        width: 100%;
        min-width: auto;
        margin-bottom: 35px;
        align-items: center;
    }
    
    .footer-about p {
        text-align: center;
    }
    
    .footer-col h3 {
        margin-bottom: 25px;
        align-self: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info p {
        padding-right: 0;
        justify-content: center;
        text-align: center;
    }
    
    .footer-links ul, 
    .footer-services ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 30px;
        right: 20px;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .model-controls {
        bottom: 80px;
    }

    /* Art Stations Mobile */
    .art-station-card {
        padding: 30px 20px;
    }
    
    .art-station-icon {
        width: 80px;
        height: 80px;
    }
    
    .art-station-icon i {
        font-size: 36px;
    }
    
    .art-station-content h3 {
        font-size: 24px;
    }
    
    .resume-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .resume-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Mobile Responsive Fixes for Portfolio Detail Page */
    .portfolio-detail-page .container {
        padding: 20px 15px;
    }
    
    .portfolio-detail-page .detail-header {
        margin-bottom: 30px;
    }
    
    .portfolio-detail-page .detail-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .portfolio-detail-page .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .portfolio-detail-page .viewer-container {
        height: 350px;
        width: 100%;
        min-width: 100%;
        order: 1;
    }
    
    .portfolio-detail-page .item-info {
        order: 2;
        width: 100%;
        min-width: 100%;
    }
    
    .portfolio-detail-page .info-block {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .portfolio-detail-page .info-block h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .portfolio-detail-page .portfolio-tags {
        justify-content: flex-start;
    }
    
    .portfolio-detail-page .tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Fix for Sketchfab iframe on mobile */
    .portfolio-detail-page .viewer-container iframe {
        height: 100%;
        width: 100%;
    }
    
    /* Fix for Three.js canvas on mobile */
    .portfolio-detail-page #model-viewer-canvas {
        width: 100% !important;
        height: 400px !important;
    }
    
    /* Adjust viewer controls for mobile */
    .portfolio-detail-page .viewer-controls {
        bottom: 15px;
        right: 15px;
    }
    
    .portfolio-detail-page .control-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* --- FIX: REMOVE HORIZONTAL SCROLLBAR ON MOBILE --- */
    
    .portfolio-grid {
        /* Override grid to be flex column on tiny screens to stop overflow */
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .portfolio-item {
        width: 100%;
        margin: 0;
    }
    
    /* Fix Services Grid Overflow */
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* Fix Contact Section Overflow */
    .contact-content, 
    .contact-info, 
    .contact-form {
        min-width: 0 !important; /* Critical: Overrides the 300px limit */
        width: 100% !important;
    }

    /* Fix Footer Overflow */
    .footer-about, 
    .footer-contact {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    /* General Text Adjustments */
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .model-controls {
        bottom: 100px;
    }
    
    /* Additional Mobile Footer Fixes */
    footer {
        padding: 60px 0 20px;
    }
    
    .footer-col h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .footer-about p,
    .footer-links ul li a,
    .footer-services ul li a,
    .contact-info p {
        font-size: 14px;
        color: var(--white);
    }
    
    .copyright {
        padding-top: 30px;
        margin-top: 15px;
        color: var(--white);
    }

    .resume-btn {
        min-width: 100%;
    }
    
    .portfolio-detail-page .viewer-container {
        height: 300px;
    }
    
    .portfolio-detail-page .detail-header h1 {
        font-size: 28px;
    }
    
    .portfolio-detail-page .back-link {
        margin-bottom: 20px;
        font-size: 14px;
    }
}

/* Art Stations Section */
.art-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    justify-items: center;
}

.art-station-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    max-width: 500px;
    width: 100%;
}

.art-station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: -1;
}

.art-station-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.art-station-card:hover::before {
    height: 100%;
}

.art-station-card:hover .art-station-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.art-station-card:hover h3,
.art-station-card:hover p {
    color: var(--white);
}

.art-station-card:hover .art-station-link {
    color: var(--white);
    transform: translateX(10px);
}

/* Resume Card Specific Styles */
.resume-card {
    cursor: default; 
}

.resume-card:hover .resume-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Resume Actions */
.resume-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    justify-content: center;
}

.view-resume {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(99, 103, 204, 0.3);
}

.view-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 103, 204, 0.4);
    background: var(--gradient-primary);
}

.download-resume {
    background: transparent;
    color: var(--blue-marguerite);
    border: 2px solid var(--blue-marguerite);
}

.download-resume:hover {
    background: var(--blue-marguerite);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 103, 204, 0.3);
}

/* Hover effects for resume card buttons */
.art-station-card:hover .view-resume {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.art-station-card:hover .download-resume {
    background: rgba(255, 255, 255, 0.9);
    color: var(--meteorite);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.art-station-card:hover .download-resume:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.art-station-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.art-station-icon i {
    font-size: 48px;
    color: var(--white);
}

.art-station-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--meteorite);
    transition: color 0.4s ease;
}

.art-station-content p {
    color: var(--light-text);
    margin-bottom: 25px;
    line-height: 1.7;
    transition: color 0.4s ease;
}

.art-station-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--blue-marguerite);
    font-weight: 600;
    transition: all 0.4s ease;
}

.art-station-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.art-station-card:hover .art-station-link i {
    transform: translateX(5px);
}

/* --- BUTTON GROUP STYLES --- */

/* Wrapper to align buttons side-by-side */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensures they stack nicely on mobile */
    margin-top: 10px;
}

/* Reset the default animation on the buttons so we can control it better */
.hero-buttons .cta-button {
    margin: 0; /* Remove default margins to let flexbox handle spacing */
}

/* Add a slight delay to the second button for a nice effect */
.hero-buttons .cta-button.artstation-btn {
    animation-delay: 0.6s; 
}

/* Optional: "Outline" style for the ArtStation button to distinguish it */
.cta-button.artstation-btn {
    background: transparent;
    border: 2px solid var(--twine); /* Uses your theme's gold color */
    box-shadow: none;
}

/* Fill the button with the gradient when hovered */
.cta-button.artstation-btn::before {
    background: var(--gradient-accent);
}

.cta-button.artstation-btn:hover {
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(197, 163, 99, 0.3);
}

/* --- DISCLAIMER BOX STYLES --- */

.disclaimer-block {
    background-color: #fff9f0; /* Light yellow/cream background */
    border-left: 4px solid var(--twine); /* Gold border on the left */
    position: relative;
}

.disclaimer-block h3 {
    color: var(--meteorite); /* Dark Purple */
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-block h3 i {
    color: var(--twine); /* Gold icon */
}

.disclaimer-block p {
    font-size: 14px !important;
    margin-bottom: 10px;
}

.highlight-text {
    color: var(--daisy-bush);
    margin-top: 10px;
}

.contact-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--gradient-secondary); /* Purple gradient */
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 103, 204, 0.2);
}

.contact-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 103, 204, 0.4);
    color: var(--white);
}

/* Dark Mode / Mobile adjustments for disclaimer */
@media (max-width: 768px) {
    .disclaimer-block {
        margin-top: 20px;
    }
}