@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #050505;
    /* Deep Obsidian */
    --second-bg-color: #0a0a0a;
    /* Slightly lighter obsidian */
    --text-color: #e6e6e6;
    /* Softened white */
    --main-color: #FFD700;
    /* Brighter Royal Gold */
    --hover-color: #ffea70;
    --glass-bg: rgba(255, 255, 255, 0.03);
    /* More subtle glass */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    /* Deeper shadow */
    --glow: 0 0 35px rgba(255, 215, 0, 0.25);
    /* Enhanced glow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Premium Background Textured Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(50, 50, 50, 0.1), transparent 40%);
    z-index: -2;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bg-color), var(--main-color), var(--bg-color));
    border-radius: 5px;
}

/* Typography & General */
h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

section {
    min-height: 100vh;
    padding: 8rem 9% 4rem;
    /* Slightly reduced padding */
}

span {
    color: var(--main-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 9%;
    /* Compact Header */
    background: rgba(5, 5, 5, 0.9);
    /* Match new bg */
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: var(--glass-border);
    transition: 0.4s;
}

.logo {
    font-size: 1.8rem;
    /* Reduced from 2.2rem */
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.navbar a {
    font-size: 0.95rem;
    /* Reduced from 1rem */
    color: var(--text-color);
    margin-left: 2.5rem;
    /* Tighter spacing */
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.85;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    opacity: 1;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

#menu-icon {
    font-size: 2.8rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Hero Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    /* Tighter gap */
    padding-top: 8rem;
}

.home-content {
    flex: 1;
}

.home-content h3 {
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.2rem;
}

.home-content h1 {
    font-size: 3.5rem;
    /* Reduced from 4rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.home-content h2 span {
    font-size: 1.8rem;
    /* Reduced from 2.2rem */
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 0.5px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    background-position: -33rem 0;
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    color: #bbb;
    margin: 1rem 0 2rem;
    max-width: 480px;
    line-height: 1.7;
}

/* Buttons */
.btn-box {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 2.8rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.4s;
    overflow: hidden;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--glow);
    transform: translateY(-3px);
}

.btn.primary {
    background: var(--main-color);
    color: var(--bg-color);
}

.btn.primary:hover {
    background: transparent;
    color: var(--main-color);
}

.btn.primary::before {
    background: var(--bg-color);
}

/* Social Icons */
.home-sci {
    margin-top: 3rem;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--main-color);
    margin-right: 1.2rem;
    transition: 0.4s;
}

.home-sci a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 15px var(--glow);
}

/* Hero Image */
.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .img-box {
    position: relative;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--main-color), transparent 60%);
    animation: rotateBorder 10s linear infinite;
}

.home-img .img-box img {
    width: 95%;
    height: 95%;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    object-fit: cover;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
    animation: floatImage 5s ease-in-out infinite;
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* About Section */
.about {
    background: var(--second-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.about-img {
    flex: 1;
    position: relative;
    text-align: center;
}

.about-img img {
    width: 28vw;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-img img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: var(--glow);
}

/* Base Animation for About Image */
.about-img img {
    animation: floatImage 5s ease-in-out infinite;
}

.about-content {
    flex: 1;
}

.heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Skills Cards with Glassmorphism */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    /* Reduced gap */
}

.services-box {
    background: var(--glass-bg);
    padding: 2rem 2rem;
    /* Reduced padding from 3rem */
    border-radius: 1.5rem;
    border: var(--glass-border);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 450px;
    /* Reduced max-width */
    backdrop-filter: blur(12px);
    /* smoother blur */
}

.services-box:hover {
    transform: translateY(-8px);
    background: rgba(30, 30, 30, 0.7);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.services-box .skill-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 0.8rem;
    transition: 0.3s;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.skill-item i {
    font-size: 1.8rem;
    color: var(--main-color);
}

.skill-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.skill-item p {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.2rem;
}

/* Portfolio Grid */
.portfolio {
    background: var(--second-bg-color);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-box {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 280px;
    box-shadow: var(--card-shadow);
    border: var(--glass-border);
    background: #000;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-box:hover img {
    transform: scale(1.1);
    opacity: 0.3;
}

.portfolio-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.4s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-layer p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--text-color);
    border-radius: 50%;
    color: var(--bg-color);
    font-size: 1.5rem;
    transition: 0.3s;
}

.portfolio-layer a:hover {
    background: var(--main-color);
    color: var(--text-color);
    transform: scale(1.1);
}

/* Contact Section (Split Layout) */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 2rem;
    border: var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: var(--card-shadow);
    max-width: 1100px;
    margin: 0 auto;
}

/* Left Side: Contact Info */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--main-color);
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 50%;
    transition: 0.3s;
}

.info-item:hover i {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow);
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.info-item p {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--main-color);
    transition: 0.4s;
}

.contact-social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-5px);
}

/* Right Side: Form */
.contact form {
    flex: 1.2;
    /* Slightly wider than info */
    text-align: left;
    background: transparent;
    /* Remove double glass */
    padding: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.contact form h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.input-field {
    width: 100%;
}

/* Icon Styling */
.input-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    font-size: 1.2rem;
    pointer-events: none;
    transition: 0.3s;
}

.input-field.textarea-field i {
    top: 1.5rem;
    transform: none;
}

/* Input Fields */
.input-field input,
.input-field textarea {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    /* Left padding for icon */
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--main-color);
    background: rgba(20, 20, 20, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.5);
    padding-left: 3.5rem;
    /* Keep padding */
    outline: none;
}

.input-field textarea {
    resize: none;
    height: 180px;
}

/* Submit Button Override */
.contact .btn {
    width: 100%;
    border-radius: 0.8rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    justify-content: center;
}

.buy-card select option {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Category Page Specific (Grid for po.html etc) */
.category-page {
    padding-top: 10rem;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--second-bg-color);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border: var(--glass-border);
    position: relative;
    /* group: hover; - removed invalid property */
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-color);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.category-info p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* Purchase Page Specific (buy.php) */
.buy-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 5rem;
}

.buy-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--card-shadow);
}

.buy-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--main-color);
}

.buy-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    border-top: var(--glass-border);
}

.footer-text p {
    font-size: 0.9rem;
    color: #777;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.5rem;
    transition: 0.4s;
    color: var(--bg-color);
}

.footer-iconTop a:hover {
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .header {
        padding: 1.5rem 4%;
    }

    section {
        padding: 6rem 4% 3rem;
    }

    .contact-container {
        flex-direction: column;
        padding: 2rem;
    }

    .contact form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: rgba(11, 11, 11, 0.95);
        border-top: var(--glass-border);
        display: none;
    }

    .navbar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .home {
        flex-direction: column-reverse;
        padding-top: 8rem;
        gap: 2rem;
        text-align: center;
    }

    .home-content h1 {
        font-size: 3.2rem;
    }

    .btn-box {
        justify-content: center;
    }

    .home-sci {
        justify-content: center;
    }

    .home-img .img-box {
        width: 60vw;
        height: 60vw;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 70vw;
        /* Added Animation here as requested */
        animation: floatImage 4s ease-in-out infinite;
    }

    .contact .input-box input {
        width: 100%;
    }

    .services-container {
        flex-direction: column;
    }

    /* Footer Stack on Mobile */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 80%;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-img .img-box {
        width: 75vw;
        height: 75vw;
    }
}

/* Footer Styles (ENSURING THESE ARE AT THE BOTTOM TO OVERRIDE) */
.footer {
    display: block;
    padding: 4rem 9% 2rem;
    background: #030303;
    border-top: 1px solid var(--main-color);
    position: relative;
    margin-top: auto;
    /* Push to bottom if needed */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section.brand .logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-section p {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.8;
    max-width: 300px;
}

.footer-section.links h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section.links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--main-color);
}

.footer-section.links ul li {
    list-style: none;
    margin-bottom: 1rem;
}

.footer-section.links ul li a {
    color: #999;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-block;
}

.footer-section.links ul li a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.footer-section.social h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: 0.4s;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #666;
}

.scroll-top {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.7rem;
    background: var(--main-color);
    border-radius: 0.5rem;
    color: var(--bg-color);
    transition: 0.4s;
}

.scroll-top:hover {
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-5px);
}