/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a89058;
    --bg-color: #080808;
    --secondary-bg: #262626;
    --text-color: #fff;
    --accent-color: #61b752;
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.5s;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
}

/* Container */
.container {
    padding: 10px 10%;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.logo {
    width: 140px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    transition: right var(--transition-speed);
}

nav ul li {
    margin: 10px 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    position: relative;
    transition: transform var(--transition-speed), text-shadow var(--transition-speed);
}

nav ul li a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--primary-color);
}

nav ul li a::after {
    content: "";
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width var(--transition-speed);
}

nav ul li a:hover::after {
    width: 100%;
}

nav .fas {
    display: none;
    cursor: pointer;
}

/* Header */
#header {
    width: 100%;
    height: 100vh;
    background: url('images/A4.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Overlay */
#header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(168, 144, 88, 0.3), rgba(8, 8, 8, 0.3));
    animation: gradientShift 10s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-text {
    margin-top: 20%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-text p {
    font-size: 24px;
    letter-spacing: 2px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.header-text h1 span {
    color: var(--primary-color);
}

/* Intersection Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Animations (for initial load effects) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade {
    animation: fadeIn var(--transition-speed) forwards;
}

.animate-slide {
    animation: slideUp var(--transition-speed) forwards;
}

.animate-pop {
    animation: popIn var(--transition-speed) forwards;
}

/* About Section */
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Tabs */
.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-speed);
}

.tab-links:hover {
    color: var(--primary-color);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: width var(--transition-speed);
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul {
    list-style: none;
}

.tab-contents ul li {
    margin: 10px 0;
}

.tab-contents ul li span {
    color: var(--primary-color);
    font-size: 14px;
}

/* Hide tab contents by default */
.tab-contents {
    display: none;
}

/* Services Section */
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.services-list div {
    background: var(--secondary-bg);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-bottom var(--transition-speed);
}

.services-list div a:hover {
    border-bottom: 1px solid var(--primary-color);
}

.services-list div:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
}

/* Portfolio Section */
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform var(--transition-speed), filter var(--transition-speed);
}

.work:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.layer {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), var(--primary-color));
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    transition: opacity var(--transition-speed);
}

.work:hover .layer {
    opacity: 1;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 24px;
}

.layer p {
    margin-bottom: 20px;
    font-size: 14px;
}

.layer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    transition: transform var(--transition-speed);
}

/* Buttons */
.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--primary-color);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: transparent;
    text-align: center;
    transition: background var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

/* Contact Section */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
    font-size: 16px;
}

.contact-left p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color);
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: none;
    outline: none;
    background: var(--secondary-bg);
    padding: 15px;
    margin: 15px 0;
    color: var(--text-color);
    font-size: 18px;
    border-radius: 6px;
    transition: background var(--transition-speed);
}

form input:focus,
form textarea:focus {
    background: #333;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

/* Footer with Animated Gradient Background */
footer {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-bg));
    background-size: 200% 200%;
    animation: gradientBG 5s ease infinite;
    font-weight: 300;
    margin-top: 20px;
    font-size: 14px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 100;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top i {
    color: var(--bg-color);
    font-size: 20px;
}

/* Responsive Styles */
@media only screen and (max-width: 600px) {
    #header {
        background: url('images/A4-2.png') center/cover no-repeat;
        background-attachment: fixed;
    }

    .header-text {
        margin-top: 50%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: var(--primary-color);
        position: fixed;
        top: 0;
        right: -200px;
        height: 100vh;
        width: 200px;
        padding-top: 50px;
        z-index: 2;
        flex-direction: column;
    }

    nav ul li {
        margin: 25px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    footer {
        font-size: 14px;
    }
}

/* Message style */
#msg {
    color: var(--accent-color);
    margin-top: -40px;
    display: block;
    font-size: 16px;
    text-align: center;
}
