/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container with responsive padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 44px;
    white-space: nowrap;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #2d5a27;
    border-color: #2d5a27;
}

.btn-secondary:hover {
    background: #2d5a27;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(45, 90, 39, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 124, 89, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 69, 19, 0.06) 0%, transparent 50%);
    animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.hero-content {
    animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #fffefe;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4c68d7 0%, #4c68d7 100%);
    border-color: #ffffff;
    color: white;
    box-shadow: 0 4px 15px rgb(255, 255, 255);
}

/* Tab Content Styles */
.tab-content {
    margin-bottom: 2.5rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-intro {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2rem);
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59, #8b4513, #2d5a27);
    background-size: 300% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-intro p {
    color: #e0e0e0;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hero-intro p:last-child {
    margin-bottom: 0;
}

.hero-intro strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta .btn {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3);
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 90, 39, 0.4);
}

.hero-cta .btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInUp 1s ease-out 0.3s both;
    position: relative;
    margin-top: 2rem;
}

.hero-person-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.hero-person-image:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Floating elements */
.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(3) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .hero-person-image {
        max-width: 280px;
    }

    .tab-navigation {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Large screens */
@media screen and (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 400px;
        text-align: left;
        gap: 4rem;
    }

    .hero-content {
        animation: slideInLeft 1s ease-out;
    }

    .hero-visual {
        animation: slideInRight 1s ease-out;
        margin-top: 0;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero-intro {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .tab-navigation {
        justify-content: flex-start;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none;
    }

    .floating-element {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-menu a:focus,
.hamburger:focus,
.tab-btn:focus {
    outline: 3px solid #2d5a27;
    outline-offset: 2px;
}

/* Ensure minimum touch target sizes */
.nav-menu a,
.btn,
.hamburger,
.tab-btn {
    min-height: 44px;
    min-width: 44px;
}