/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --border-radius: 1rem;
    --transition-time: 0.3s;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #fff;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.anton-regular {
    font-family: 'Anton', sans-serif;
    font-style: normal;
    font-weight: 400;
}

.inter-font {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

p {
    line-height: 1.8;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar-custom {
    padding: 10px 0;
    transition: all var(--transition-time) ease;
    z-index: 1030;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    cursor: pointer;
    transition: transform var(--transition-time) ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #000 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all var(--transition-time) ease;
    cursor: pointer;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #000;
    transition: all var(--transition-time) ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #333 !important;
    transform: translateY(-2px);
}

.btn-dark {
    transition: all var(--transition-time) ease;
    font-weight: 600;
}

.btn-dark:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    padding: 40px 0;
}

.hero-logo {
    animation: slideInDown 0.8s ease-out;
}

.hero-text {
    min-height: 80px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

#animated-text {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.hero-section .btn {
    padding: 12px 40px;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
}

.social-links {
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.social-link {
    transition: all var(--transition-time) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
}

.social-link:hover {
    transform: scale(1.2) rotate(5deg);
    background-color: rgba(0, 0, 0, 0.05);
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */

section {
    scroll-margin-top: 90px;
}

section h1 {
    padding-top: 20px;
    margin-top: 10px;
    padding-bottom: 15px;
    font-size: 2.5rem;
    animation: slideInLeft 0.6s ease-out;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background-color: #fff;
}

.about-section img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--box-shadow-lg);
    animation: slideInLeft 0.6s ease-out;
}

.about-text {
    animation: slideInRight 0.6s ease-out;
}

.about-text p {
    color: #333;
}

.about-text strong {
    color: #000;
    font-weight: 700;
}

/* ============================================
   BUILD SECTION
   ============================================ */

.build-section {
    min-height: 100vh;
    padding: 60px 0;
    background-color: #f8f9fa;
}

.build-card {
    transition: all var(--transition-time) ease;
    background-color: #fff;
    border-radius: var(--border-radius);
    animation: slideInUp 0.6s ease-out;
}

.build-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg) !important;
}

.tech-card {
    transition: all var(--transition-time) ease;
    animation: slideInUp 0.6s ease-out 0.1s backwards;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg) !important;
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 20px;
}

.card-body {
    padding: 30px;
}

.features-list li {
    transition: all var(--transition-time) ease;
    padding: 5px 0;
}

.features-list li:hover {
    transform: translateX(5px);
    color: #333;
}

.tech-icon {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all var(--transition-time) ease;
}

.tech-item {
    padding: 10px;
    border-radius: 0.5rem;
    transition: all var(--transition-time) ease;
}

.tech-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.tech-item:hover .tech-icon {
    transform: scale(1.2);
}

/* ============================================
   ARTICLES SECTION
   ============================================ */

.articles-section {
    min-height: 100vh;
    padding: 60px 0;
    background-color: #fff;
}

.article-card {
    background-color: #fff;
    border: 4px solid #000;
    border-radius: var(--border-radius);
    transition: all var(--transition-time) ease;
    height: 100%;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    margin-bottom: 0;
}

.article-card:nth-child(2) {
    animation-delay: 0.1s;
}

.article-card:nth-child(3) {
    animation-delay: 0.2s;
}

.article-card:nth-child(4) {
    animation-delay: 0.3s;
}

.article-card:nth-child(5) {
    animation-delay: 0.4s;
}

.article-card:nth-child(6) {
    animation-delay: 0.5s;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.article-card img {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-time) ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 20px;
}

.article-card .card-title {
    font-weight: 700;
    color: #000;
    min-height: 60px;
}

.article-card .card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-time) ease;
}

.article-card .badge {
    font-size: 0.85rem;
    padding: 5px 10px;
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-link {
    transition: all var(--transition-time) ease;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover {
    color: #ccc;
    transform: scale(1.2);
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    border-radius: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 0.4rem;
    border-color: #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

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

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

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

/* ============================================
   UTILITIES
   ============================================ */

.border-4 {
    border-width: 4px !important;
}

.rounded-5 {
    border-radius: 3rem !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 12px 0;
    }

    .navbar-brand img {
        width: 35px;
        height: 35px;
    }

    .nav-link {
        padding: 0.75rem 0.5rem !important;
        margin: 0;
        font-size: 0.95rem;
    }

    .nav-link::after {
        display: none;
    }

    .hero-section {
        margin-top: 70px;
        padding: 40px 20px;
        min-height: 100vh;
    }

    .hero-logo img {
        width: 220px !important;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .hero-section .fs-2 {
        font-size: 1.25rem !important;
        line-height: 1.4;
    }

    .hero-text {
        min-height: 70px;
        margin-bottom: 30px;
    }

    .hero-section .btn-lg {
        padding: 11px 35px;
        font-size: 1rem;
    }

    .social-link {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .social-links {
        gap: 1.5rem !important;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-section .col-lg-4 {
        padding: 0 !important;
        margin-bottom: 30px;
    }

    .about-section .col-lg-8 {
        padding: 0 !important;
    }

    .about-section img {
        max-width: 280px;
        margin: 0 auto 20px;
        display: block;
    }

    .about-section p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .build-section {
        padding: 60px 20px;
    }

    .build-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 20px;
    }

    .build-section .col-xl-8 {
        padding: 0 !important;
    }

    .build-section .col-xl-4 {
        padding: 0 !important;
    }

    .build-card {
        margin-bottom: 0;
    }

    .build-card .card-body {
        padding: 20px;
    }

    .build-card .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .tech-card .card-body {
        padding: 20px;
    }

    .articles-section {
        padding: 60px 20px;
    }

    .articles-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .article-card {
        margin: 0;
    }

    .article-card img {
        height: 200px;
    }

    section h1 {
        font-size: 1.8rem;
        border-width: 3px !important;
        margin-bottom: 30px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-brand img {
        width: 32px;
        height: 32px;
    }

    .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1);
        padding: 0.15rem 0.5rem;
    }

    .navbar-toggler-icon {
        width: 1.3rem;
        height: 1.3rem;
    }

    .nav-link {
        padding: 0.6rem 0 !important;
        font-size: 0.9rem;
    }

    .btn-dark.btn-sm {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .hero-section {
        margin-top: 65px;
        padding: 30px 15px;
        min-height: auto;
    }

    .hero-logo img {
        width: 170px !important;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .hero-section .fs-2 {
        font-size: 0.95rem !important;
        line-height: 1.3;
        min-height: auto;
    }

    .hero-text {
        min-height: auto;
        margin-bottom: 20px;
    }

    .hero-section .btn-lg {
        padding: 9px 20px;
        font-size: 0.9rem;
    }

    .social-link {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .social-links {
        gap: 1rem !important;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .about-section {
        padding: 40px 15px;
    }

    .about-section img {
        max-width: 240px;
    }

    .about-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .build-section {
        padding: 40px 15px;
    }

    .build-section .row {
        gap: 15px;
    }

    .build-card .card-body {
        padding: 15px;
    }

    .build-card h2 {
        font-size: 1.3rem;
    }

    .build-card .lead {
        font-size: 0.95rem;
    }

    .build-card .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .tech-card .card-body {
        padding: 15px;
    }

    .tech-item {
        padding: 8px !important;
    }

    .tech-list .d-flex {
        gap: 8px;
    }

    .articles-section {
        padding: 40px 15px;
    }

    .article-card img {
        height: 180px;
    }

    .article-card .card-body {
        padding: 12px;
    }

    .article-card .card-title {
        font-size: 0.95rem;
        min-height: auto;
    }

    .article-card .card-text {
        font-size: 0.85rem;
    }

    section h1 {
        font-size: 1.5rem;
        border-width: 2px !important;
        margin-bottom: 20px;
        padding: 10px 0;
    }

    .card-header {
        padding: 12px 15px;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .modal-dialog {
        margin: 15px;
    }

    .modal-content {
        border-width: 3px;
    }

    footer {
        padding: 25px 15px;
        font-size: 0.9rem;
    }

    footer p {
        margin-bottom: 15px;
    }

    .footer-link {
        font-size: 0.95rem;
    }

    .social-links-footer {
        gap: 12px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar-custom,
    footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
