/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #171717;
    color: white;
    line-height: 1.6;
}

/* Navigation bar style */
.navbar {
    background: linear-gradient(135deg, #171717 0%, #171717 100%);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.5s ease; 
}

.logo img {
    height: 40px;
    margin-right: 10px;
    margin-top: 5px;
}

.logo:hover {
    color: #51AF95;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.7rem 1rem;
    border-radius: 9px;
}

.nav-links a:hover {
    background-color: rgba(17, 17, 17, 0.5);
    color: #51AF95;
    
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section style - Updated */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05)), url('img/default-bg.png') no-repeat center center/cover;
    color: white;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    transition: background-image 0.5s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 30%, rgba(38, 161, 123, 0.15) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
    padding: 3rem;
    background: rgba(23, 23, 23, 0.85);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: all 0.5s ease;
}

.hero-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
    background: linear-gradient(90deg, #ffffff, #26A17B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    position: relative;
    display: inline-block; 
}

.hero h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: transparent;
    text-shadow: 10px 6px 20px rgba(17, 17, 17, 5.4);
    opacity: 5.7;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    color: #e0e0e0;
}

.hero p:first-of-type {
    animation-delay: 0.3s;
}

.hero p:last-of-type {
    animation-delay: 0.6s;
}

.cta-button {
    display: inline-block;
    background: #26A17B;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease;
    border: 2px solid #51AF95;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: 0.7s;
    z-index: -1;
}

.cta-button:hover {
    background: transparent;
    color: white;
    border-color: white;
    box-shadow: 0 0 20px rgba(38, 161, 123, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

/* Other sections style */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #51AF95;
}

/* Typewriter effect styles */
.typewriter {
    overflow: hidden;
    border-right: 0em solid #51AF95; /* Cursor */
    white-space: pre-wrap; /* Preserve line breaks */
    margin: 0 auto;
    animation: blink-caret 0.75s step-end infinite;
    min-height: 1.6em; /* Ensure space for text */
    font-family: inherit;
    text-align: justify;
    text-justify: inter-word; 
    word-break: break-word;
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #51AF95; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #171717 10%, #51AF95 100%);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: all 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero {
        padding-top: 5rem;
        min-height: calc(100vh - 70px);
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .typewriter {
        font-size: 0.8rem;
    }
}