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

:root {
    --primary-color: #2d3752;
    --primary-dark: #1f2838;
    --primary-light: #3d4a6a;
    --accent-color: #4a90e2;
    --accent-hover: #357abd;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8a9aaf;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .navbar {
        min-height: 60px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-link:hover,
.nav-logo-link:focus,
.nav-logo-link:active,
.nav-logo-link:visited {
    text-decoration: none;
}

.logo-text {
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.logo-guru {
    color: #f79112;
}

.logo-icon {
    color: hsl(33, 93%, 52%);
    font-size: 2rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f79112;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    position: relative;
    width: 25px;
    height: 20px;
    justify-content: center;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
    position: absolute;
    left: 0;
}

/* Hero Section */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 7rem 2rem 0 2rem;
    overflow: visible;
    margin-bottom: 0;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.heading-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.heading-image {
    display: none;
}

.heading-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.main-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin: 0;
    padding: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.typing-text {
    color: #f79112 !important;
    position: relative;
    -webkit-text-fill-color: #f79112 !important;
    display: inline-block;
    min-width: 1ch;
    line-height: 1;
    vertical-align: middle;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #f79112;
    font-weight: 300;
    margin-left: 2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

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

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Ensure link-buttons never show underline */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active,
a.btn:visited {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
    background: #f79112;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 145, 18, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-light);
}

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

/* Decoration Circles */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    filter: blur(120px);
    will-change: transform;
    transform: scale(1.2);
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: 10%;
    right: 5%;
    animation-delay: 5s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-3);
    top: 50%;
    right: 15%;
    animation-delay: 10s;
}

/* Tools Section */
.tools-section {
    padding: 0 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    margin-top: -2rem;
    z-index: 1;
}

.tools-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.tools-section-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tools-section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tools-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 1.5rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 145, 18, 0.1) 0%, rgba(247, 145, 18, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: #f79112;
    box-shadow: 0 10px 40px rgba(247, 145, 18, 0.3);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f79112 0%, #ff6b35 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(247, 145, 18, 0.4);
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f79112;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-logo {
    font-family: 'Lilita One', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links-inline li {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links-inline a {
    font-weight: 700;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #f79112;
    padding-left: 5px;
}

.footer-links-inline a:hover {
    padding-left: 0;
}

.footer-bottom {
    text-align: center;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    width: 100%;
}

@media (max-width: 480px) {
    .footer-links-inline {
        column-gap: 0.7rem;
        row-gap: 0.6rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.7rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
        margin: 0;
    }

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

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle span:nth-child(1) {
        top: 0;
    }

    .nav-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle span:nth-child(3) {
        bottom: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateY(-50%);
    }

    .nav-toggle.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .hero-section {
        min-height: auto;
        padding: 2.5rem 0.75rem 0.75rem 0.75rem;
    }

    .heading-container {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.55;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
        padding: 0.9rem 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .decoration-circle {
        display: none;
    }

    .tools-section {
        padding: 0 0.75rem 1.5rem 0.75rem;
        margin-top: 0;
    }

    .tools-section-heading {
        margin-top: 2rem;
        font-size: 2.1rem;
    }

    .tools-section-subtitle {
        margin-bottom: 2rem;
        font-size: 1.05rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tool-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }

    .tool-icon i {
        font-size: 2.2rem;
    }

    .tool-card h3 {
        font-size: 1.35rem;
    }

    .tool-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .tools-actions {
        margin-top: 1.75rem;
    }

}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .heading-container {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .main-heading {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.55;
    }

    .tools-section {
        padding: 0 0.75rem 1.25rem 0.75rem;
        margin-top: 0;
    }

    .hero-section {
        padding: 3.25rem 0.75rem 0.75rem 0.75rem;
    }

    .tools-section-heading {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 1.5rem;
    }

    .tools-section-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.85rem 1.5rem;
        letter-spacing: 0.04em;
    }

    .tool-card {
        padding: 1.75rem 1.25rem;
    }

    .tool-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .tool-icon i {
        font-size: 2.05rem;
    }

    .tool-card h3 {
        font-size: 1.25rem;
    }

    .tool-card p {
        font-size: 0.92rem;
        margin-bottom: 1.1rem;
    }

    .tool-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    .tools-actions {
        margin-top: 1.5rem;
    }
}

