:root {
    --primary-color: #CCFF00;
    --primary-dark: #AACC00;
    --bg-dark: #0A0A0A;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --accent-glow: rgba(204, 255, 0, 0.15);
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Fluid Spacing & Typography */
    --padding-card: clamp(1.5rem, 5vw, 2.8rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: initial;
    /* Lenis handles scrolling */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.page-container {
    padding: clamp(2rem, 8vh, 6rem) 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 100svh;
    /* Small Viewport Height utility */
}

/* Background Glow Orbs - More dynamic and responsive */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: clamp(300px, 60vw, 500px);
    height: clamp(300px, 60vw, 500px);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.orb-2 {
    bottom: -15%;
    right: -15%;
    background: radial-gradient(circle, #444 0%, transparent 70%);
}

/* Card Styling */
.card-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.card-wrapper {
    width: 100%;
    max-width: 480px;
    /* Increased width for better text flow on desktop */
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: var(--padding-card);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    width: clamp(100px, 25vw, 120px);
}

.logo {
    width: 100%;
    height: auto;
}

.badge {
    background: rgba(204, 255, 0, 0.15);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(204, 255, 0, 0.3);
}

.profile-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.name {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 8vw, 2.2rem);
    /* Fluid Heading - Optimized for all screens */
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.8rem;
    color: #fff;
    letter-spacing: -0.5px;
    white-space: nowrap; /* Prevents name from breaking into multiple lines */
}

.accent {
    color: var(--primary-color);
}

.role {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: #eee;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.company {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.contact-item i {
    width: clamp(34px, 10vw, 40px);
    height: clamp(34px, 10vw, 40px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
}

/* Services */
.services-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Better Auto-grid */
    gap: 0.8rem;
}

.service-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 14px;
    font-size: 0.78rem;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(204, 255, 0, 0.08);
    border-color: rgba(204, 255, 0, 0.3);
    transform: translateY(-2px);
}

.service-tag i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.social-icon {
    width: clamp(48px, 12vw, 54px);
    height: clamp(48px, 12vw, 54px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-8px) rotate(8deg);
    box-shadow: 0 15px 30px rgba(204, 255, 0, 0.25);
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 18px;
    font-family: var(--font-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: none;
    font-size: 1.05rem;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px rgba(204, 255, 0, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 15px 30px rgba(204, 255, 0, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer {
    margin-top: 2rem;
    padding-bottom: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
    width: 100%;
}

/* Custom Popup Styles - Responsive */
.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 1rem;
}

.popup-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.popup-wrapper.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-icon {
    width: 64px;
    height: 64px;
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.8rem;
    border: 1px solid rgba(204, 255, 0, 0.2);
}

.popup-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.popup-message {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Media Queries for fine-tuning */
@media (max-width: 380px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem 1.2rem;
    }
}

@media (min-width: 768px) {
    .page-container {
        padding: 5svh 2rem;
    }
}