/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #19192C;
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #19192C 0%, #1a1a2e 80%);
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 168, 124, 0.1);
    animation: floatAnimation 8s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

/* Content Positioning */
.container.position-relative {
    z-index: 3;
}

.row.align-items-center {
    min-height: 50vh; /* Further reduced from 60vh */
    padding: 10px 0; /* Further reduced padding */
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 2rem;
    height: 160px; /* Fixed height to prevent jumping */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-title h1 {
    font-family: 'Marcellus', serif;
    font-size: 3.5rem; /* Reduced from 4rem */
    line-height: 1.2;
    margin: 0;
    color: var(--accent-color);
    height: 70px; /* Fixed height for each line */
    display: flex;
    align-items: center;
}

.hero-title h1:first-child {
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, var(--secondary-color), #e6c59f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-prefix {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.typing-text {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    min-width: 200px; /* Minimum width to prevent layout shifts */
    margin-right: -0.4rem; /* Pull the cursor closer to the text */
}

.typed-cursor {
    color: var(--secondary-color);
    font-size: 3.5rem;
    line-height: 1;
    margin-left: 0;
    position: relative;
    top: -0.1rem; /* Fine-tune vertical alignment */
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Hero Image Wrapper and Word Cloud */
.hero-image-wrapper {
    position: relative;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 20px;
    background: transparent;
    margin: -20px -20px;
}

.word-cloud {
    width: calc(100% + 160px);
    height: 600px;
    border-radius: 20px;
    background: rgba(25, 25, 44, 0.3);
    border: 2px solid rgba(201, 168, 124, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 20px;
    margin: -40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.word-cloud:hover {
    border-color: rgba(201, 168, 124, 0.25);
    box-shadow: 0 0 30px rgba(201, 168, 124, 0.05);
}

.floating-elements {
    position: absolute;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
    z-index: 2;
    pointer-events: none;
    left: -80px;
    top: -80px;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 124, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatAnimation 6s infinite ease-in-out;
}

.fe-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.fe-2 {
    top: 40%;
    right: 0;
    animation-delay: 2s;
}

.fe-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.fe-4 {
    bottom: 30%;
    right: 5%;
    animation-delay: 3s;
}

.fe-5 {
    top: 25%;
    left: -30px;
    animation-delay: 1s;
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: transparent; /* Changed from white to transparent */
    padding: 8px; /* Reduced padding since it's an illustration */
    width: 115%; /* Increased width slightly */
    max-width: none;
    margin-left: -7.5%; /* Adjusted for new width */
    object-fit: contain; /* Ensure proper scaling */
    filter: brightness(1.1) contrast(1.1); /* Slightly enhance the image */
}

.hero-image:hover {
    transform: translateY(-10px);
    filter: brightness(1.2) contrast(1.15); /* Enhanced hover effect */
}

/* Button Styles */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Marcellus', serif;
}

.hero-buttons .btn-primary {
    background: var(--secondary-color);
    border: none;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(201, 168, 124, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 124, 0.4);
    background: var(--secondary-color);
}

.hero-buttons .btn-outline-light {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    backdrop-filter: blur(5px);
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Styles */
@media (min-width: 992px) {
    .hero-content {
        padding-right: 2rem;
    }
    
    .col-lg-5 {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 1200px) {
    .hero-image-wrapper {
        margin: -20px -20px;
    }
    .word-cloud {
        width: calc(100% + 80px);
        height: 500px;
        margin: -20px;
        padding: 15px;
    }
    .floating-elements {
        width: calc(100% + 80px);
        height: calc(100% + 80px);
        left: -40px;
        top: -40px;
    }
    .hero-title h1 {
        font-size: 3rem;
    }
    .typed-cursor {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-image-wrapper {
        margin: 2rem 0;
        height: 450px;
    }
    
    .word-cloud {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 15px;
    }

    .floating-elements {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

    .fe-1, .fe-2, .fe-3, .fe-4, .fe-5 {
        transform: scale(0.7);
    }
    .hero-section {
        padding: 100px 0 50px;
    }
    .hero-title h1 {
        font-size: 2.75rem;
        height: 60px;
    }
    .hero-title {
        height: 140px;
    }
    .typed-cursor {
        font-size: 2.75rem;
    }
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    .hero-buttons .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .shape {
        display: none;
    }

    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-image-wrapper {
        height: 400px;
        margin: 1rem 0;
    }

    .hero-title h1 {
        font-size: 2.25rem;
        height: 50px;
        justify-content: center;
    }

    .hero-title {
        height: 120px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .typed-cursor {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .word-cloud {
        width: 100%;
        height: 100%;
        border-width: 1px;
        background: rgba(25, 25, 44, 0.4);
    }
    
    .floating-elements {
        display: none; /* Hide floating elements on mobile */
    }

    .fe-1, .fe-2, .fe-3, .fe-4, .fe-5 {
        transform: scale(0.7);
    }

    .hero-content {
        margin-bottom: 4rem;
    }
}

@media (max-width: 576px) {
    .hero-image-wrapper {
        height: 300px;
        margin: 0;
    }

    .word-cloud {
        border-radius: 10px;
    }

    .hero-title h1 {
        font-size: 1.75rem;
        height: 40px;
    }

    .hero-title {
        height: 100px;
    }

    .typed-cursor {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
        margin-bottom: 3.5rem;
    }

    .hero-buttons {
        padding: 0;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .hero-content {
        margin-bottom: 2.5rem;
    }
}

/* Hero Divider */
.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.hero-divider-line {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(201, 168, 124, 0.2) 25%,
        rgba(201, 168, 124, 0.2) 75%,
        transparent 100%
    );
}

.hero-divider-icon {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(25, 25, 44, 0.1);
    color: #19192C;
    font-size: 1.2rem;
    animation: heroIconBounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hero-divider-icon:hover {
    background: #19192C;
    color: #FEFEFE;
    box-shadow: 0 6px 20px rgba(25, 25, 44, 0.2);
    transform: translateX(-50%) translateY(-2px);
}

.hero-divider-icon:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 15px rgba(25, 25, 44, 0.1);
}

@keyframes heroIconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-divider-line {
        width: 150px;
    }
    
    .hero-divider-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 