@import url('https://fonts.googleapis.com/css2?family=Sora:wght @300;400;600;700&family=Playfair+Display:wght @700&display=swap');

:root {
    --background-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #cda45e;
    --card-bg-color: #1a1a1a;
    --font-main: 'Sora', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- Header & Nav --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.4s ease, left 0.4s ease;
}

.main-nav a:hover {
    color: white;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}


/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
    position: relative;
    z-index: 1;
}

.hero-logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 4rem;
    color: white;
}

.hero-logo span {
     color: var(--primary-color);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 1rem;
    letter-spacing: 2px;
}

.hero-subtagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: #c0c0c0;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.powered-by {
    font-style: italic;
    color: #999;
    margin: 0 5px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 25px;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .hero-logo {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-top: 0.8rem;
    }

    .hero-subtagline {
        font-size: 1rem;
        margin-top: 0.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 70px 0;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    #hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .scroll-down {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero-logo {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-subtagline {
        font-size: 0.9rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 0 10px;
    }
}

/* --- About Section --- */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image:hover .about-image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-style: italic;
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.about-image:hover .overlay-text {
    transform: translateY(0);
}

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

.service-card {
    background-color: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    line-height: 1.6;
}

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

#portfolio .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-intro {
    max-width: 800px;
}

.portfolio-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.portfolio-cta {
    margin-top: 2rem;
}

.portfolio-cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: black;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #b8924a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-input {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #555;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
}
.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}
.form-label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
}
.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    color: white;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #111;
    transition: left 0.4s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* IP Properties link styling */
.ip-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ip-link:hover {
    color: #e6c68c;
}