:root {
    --primary: #1A1A1A;
    --accent: #F6A623;
    --text: #FFFFFF;
    --secondary-text: #B3B3B3;
    --dark-bg: #0D0D0D;
    --light-bg: #262626;
    --card-bg: #333333;
    --error-bg: #ff4d4d;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--primary);
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.logo {
    font-family: 'Rammetto One', cursive;
    color: var(--accent);
    font-size: 1.8rem;
    text-decoration: none;
}

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

/* Header & Navigation */
header {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.4s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-visible {
    transform: translateY(0);
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Enhanced Hero Section */
.hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.8)), 
        url('images/bg.webp')  
        no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-svg {
    width: 280px;
    max-width: 65%;
    height: auto;
    margin-bottom: 0;
    filter: 
        drop-shadow(0 0 15px rgba(246, 166, 35, 0.5))
        drop-shadow(0 0 30px rgba(246, 166, 35, 0.3));
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    }
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
}

/* Updated Scroll Down Button */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.scroll-down:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down:focus {
    outline: none;
}

.scroll-down-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(45deg);
    animation: arrow-bounce 2s infinite;
}

@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    color: var(--accent);
    font-family: 'Josefin Sans', sans-serif;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 25%;
}

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

.about-text {
    flex: 1;
    min-width: 300px;
    color: var(--text);
}

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

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s;
    color: var(--text);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(246, 166, 35, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 1rem;
    color: var(--accent);
}

.service-card p {
    color: var(--secondary-text);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: linear-gradient(145deg, var(--accent), #E5941A);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(246, 166, 35, 0.3);
    text-align: center;
    transition: all 0.4s;
    color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 35px rgba(246, 166, 35, 0.4);
}

.portfolio-icon {
    font-size: 3.5rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-icon {
    transform: rotate(10deg) scale(1.2);
}

.portfolio-item h3 {
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    clip-path: circle(0px at center);
    transition: clip-path 0.6s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    clip-path: circle(200px at center);
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    margin-right: 1rem;
}

.contact-detail h4 {
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.contact-detail p {
    color: var(--secondary-text);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #555;
    border-radius: 5px;
    font-family: 'Work Sans', sans-serif;
    background: var(--light-bg);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* Enhanced File Upload Styles */
.file-upload {
    position: relative;
    margin-top: 0.5rem;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-block;
    padding: 1rem 1.8rem;
    background: var(--accent);
    color: var(--dark-bg);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    border: 2px solid transparent;
}

.file-upload-label:hover {
    background: #E5941A;
    transform: translateY(-2px);
}

.file-upload-label i {
    margin-right: 8px;
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.file-name {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.file-name i {
    margin-right: 8px;
}

.file-details {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.file-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

/* Upload Progress */
.upload-progress {
    height: 6px;
    background: var(--light-bg);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.upload-progress.visible {
    display: block;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
}

/* Form Status */
.form-status {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    text-align: center;
    display: none;
}

.form-status.visible {
    display: block;
    animation: fadeIn 0.5s;
}

.form-status.success {
    background-color: #28a745;
    color: var(--text);
}

.form-status.error {
    background-color: var(--error-bg);
    color: var(--text);
}

.form-status.info {
    background-color: #17a2b8;
    color: var(--text);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced Submit Button */
.btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(145deg, var(--accent), #E5941A);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(246, 166, 35, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(246, 166, 35, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:disabled {
    background: #777;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover::after {
    left: -100%;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Service Card Blurb Styles */
.service-card .blurb {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    color: var(--secondary-text);
    text-align: left;
    margin-top: 0;
}

.service-card .blurb.visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .logo-svg {
        width: 240px;
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        background: var(--dark-bg);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .logo-svg {
        width: 200px;
        max-width: 55%;
    }
    
    .service-card {
        min-height: 200px;
    }
    
    .service-card .blurb.visible {
        max-height: 400px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        width: 180px;
        max-width: 50%;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
}