:root {
    /* Color Palette - Deep Void & Electric Cyan */
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --accent-cyan: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 900px;
    --spacing-unit: 1rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Background Atmosphere */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    top: -200px;
    left: -100px;
    animation: float 20s infinite ease-in-out;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: #4d00ff;
    /* Deep blue/purple for contrast */
    bottom: -150px;
    right: -100px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Container */
.container {
    width: 100%;
    /* Increased max-width to allow 3 cards side-by-side comfortably */
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header / Hero */
.hero-section {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.system-status {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-top: 1rem;
    letter-spacing: 0.15em;
    box-shadow: 0 0 10px var(--accent-glow);
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    color: var(--accent-cyan);
    -webkit-text-fill-color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-glow);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Portfolio Section */
.portfolio-section {
    width: 100%;
}

.section-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.portfolio-grid {
    display: grid;
    /* Force 3 columns on desktop, auto-fit on smaller screens */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* JS Fade in */
    transform: translateY(20px);
}

/* Make the title/icon area a link */
.card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.portfolio-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px -10px var(--accent-glow);
}

/* Individual Offer Button */
.offer-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Push to bottom */
}

.offer-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Logo Styling */
.card-icon-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3));
    transition: transform 0.4s ease;
    border-radius: 50%;
    /* Just in case */
}

/* Hover Effects */
.portfolio-card:hover .card-icon-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.6));
}

.card-content {
    flex-grow: 1;
}

.domain-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.domain-role {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.card-arrow {
    margin-top: 1.5rem;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer & CTA */
.footer-section {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.footer-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}


.cta-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.full-portfolio-btn {
    min-width: 350px;
    letter-spacing: 0.15em;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Primary "Make Offer" Button */
.primary-btn {
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.primary-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.primary-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
    text-shadow: 0 0 8px var(--accent-cyan);
}

.primary-btn:hover .btn-glow {
    left: 100%;
}

/* Ghost "Contact" Button */
.ghost-btn {
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.ghost-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .desktop-break {
        display: none;
    }

    .container {
        padding: 2rem 1rem;
    }

    .cta-button {
        width: 100%;
        font-size: 0.9rem;
        padding: 1rem;
    }
}