/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark: #050505;
    --bg-surface: #121212;
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA8C2C;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
}

/* Fix Overflow Issue Globally */
section {
    overflow: hidden;
    position: relative;
}

/* Base Setup */
* {
    cursor: none;
    /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}

.logo-container img {
    height: 50px;
    object-fit: contain;
}

.nav-link {
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 1.5rem;
    position: relative;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--gold-primary) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.4s ease;
}

.nav-link:hover::before {
    width: 30px;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15), transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    border-left: 3px solid var(--gold-primary);
    padding-left: 20px;
}

.profile-floating {
    position: relative;
}

.profile-main-img {
    border-radius: 20px 0 20px 0;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-main-img:hover {
    filter: grayscale(0%);
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    bottom: 50px;
    left: -50px;
    z-index: 3;
}

.card-2 {
    top: 50px;
    right: -30px;
    z-index: 3;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.btn-premium {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-primary);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-premium:hover {
    color: black;
}

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

/* Bento Grid Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-primary);
}

.bento-item.large {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

/* Stats Section */
.stats-section {
    background: var(--bg-surface);
    padding: 5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
}

/* Experience Timeline */
.timeline-premium {
    border-left: 2px solid var(--glass-border);
    margin-left: 20px;
    padding-left: 40px;
}

.timeline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -51px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
}

/* Contact Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    padding-top: 5rem;
}

/* Utilities */
.section-padding {
    padding: 100px 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-wrapper {
        padding-top: 140px;
        /* Updated to prevent overlapping */
        height: auto;
        min-height: 100vh;
        padding-bottom: 60px;
    }

    /* Adjust cards for tablet */
    .card-1 {
        left: 0;
        bottom: 30px;
    }

    .card-2 {
        right: 0;
        top: 30px;
    }
}

@media (max-width: 768px) {

    /* Reset Cursor for Touch */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    /* General Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 50px 0 !important;
    }

    /* Hero Section */
    .hero-content {
        text-align: center;
        padding-top: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        border-left: none;
        /* Remove border for center alignment */
        border-bottom: 2px solid var(--gold-primary);
        /* Add bottom border instead */
        padding-left: 0;
        padding-bottom: 5px;
        display: inline-block;
    }

    .hero-content .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }

    .hero-content .btn {
        width: 100%;
        display: block;
        margin: 0;
        padding: 15px;
    }

    .profile-floating {
        margin-top: 50px;
        padding-bottom: 20px;
    }

    .profile-main-img {
        max-width: 100% !important;
        width: 80%;
    }

    /* Floating Cards Mobile - clean grid look */
    .floating-card {
        position: static;
        width: 100%;
        margin: 10px 0;
        animation: none;
        transform: translateY(0);
        background: rgba(20, 20, 20, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .card-1,
    .card-2 {
        display: block;
        /* Ensure visibility */
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.tall {
        grid-column: auto;
        grid-row: auto;
    }

    /* Stats */
    .stat-number {
        font-size: 2.2rem;
    }

    /* Timeline */
    .timeline-premium {
        margin-left: 0;
        padding-left: 20px;
        border-left: 2px solid var(--glass-border);
    }

    .timeline-card::before {
        left: -31px;
    }

    /* Footer */
    footer {
        text-align: center;
    }

    .col-md-6.text-md-end {
        text-align: center !important;
        margin-top: 20px;
    }

    .d-flex.align-items-center {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .profile-main-img {
        width: 100%;
        /* Full width on small screens */
    }

    .hero-bg {
        background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1), transparent 80%);
    }

    /* Bento Items Compact */
    .bento-item {
        padding: 20px;
    }
}