/* =======================================================================
   Modern Minimal Portfolio - Clean Design
======================================================================= */

/* ===================================== CSS Variables ================================== */

:root {
    /* Colors - Light Mode */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1a1a1a;
    --text-body: #4b5563;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-page: #fafafa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --footer-bg: #111827;
    --shadow-color: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --letter-spacing: -0.02em;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --text-dark: #f9fafb;
    --text-body: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --bg-page: #0f172a;
    --bg-white: #1e293b;
    --bg-card: #1e293b;
    --footer-bg: #020617;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ===================================== Scroll Animations ================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-children.animated > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.animated > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.animated > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.animated > * {
    opacity: 1;
    transform: translateY(0);
}


/* ===================================== Base Styles ================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--text-dark);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    margin-bottom: 0;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: var(--letter-spacing);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.container {
    max-width: 1170px;
}


/* ===================================== Header ================================== */

.header {
    background: var(--bg-white);
    position: relative;
    width: 100%;
}

/* Hide top email bar on all screens */
.hed-top {
    display: none;
}

/* Main Navigation */
.nav-col {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    display: block;
    white-space: nowrap;
    border-radius: 6px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    cursor: pointer;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggler-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
    color: var(--text-body);
}

.theme-toggle:hover {
    background: var(--bg-page);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle i {
    font-size: 1.1rem;
}

.theme-toggle .bi-moon-fill {
    display: block;
}

.theme-toggle .bi-sun-fill {
    display: none;
}

[data-theme="dark"] .theme-toggle .bi-moon-fill {
    display: none;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
    display: block;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .nav-menu li a:hover,
[data-theme="dark"] .nav-menu li a.active {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .card,
[data-theme="dark"] .serv-cove {
    background: var(--bg-card) !important;
}

[data-theme="dark"] img {
    opacity: 0.9;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 0.875rem 1rem;
        border-radius: 0;
    }

    .nav-menu li a:hover {
        background: var(--bg-page);
    }
}


/* ===================================== Hero Section ================================== */

.section-conten {
    background: var(--bg-page);
    padding: 5rem 0;
    position: relative;
}

.section-conten .container {
    position: relative;
    z-index: 1;
}

.dfr {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .dfr {
        font-size: 2rem;
    }

    .section-conten {
        padding: 3rem 0;
    }
}


/* ===================================== Buttons ================================== */

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: white;
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background-color: var(--bg-page);
    color: var(--text-dark);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}


/* ===================================== Cards ================================== */

.card,
.serv-cove {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
}

.card:hover,
.serv-cove:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* AI Project Cards */
a .bg-white.rounded:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color) !important;
}

.card img,
.serv-cove img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.serv-cove .p-2 {
    padding: 1.25rem;
}

.serv-cove h5 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
    transition: var(--transition);
}

.serv-cove:hover h5 {
    color: var(--primary-color);
}

.serv-cove span {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ===================================== Sections ================================== */

.section-title {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-title p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.big-padding {
    padding: 5rem 0;
}

@media screen and (max-width: 940px) {
    .big-padding {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}


/* ===================================== Service Cards ================================== */

.whd .col-md-4,
.whd .col-md-6 {
    margin-bottom: 2rem;
}

.whd .bg-white {
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.whd .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.whd .bg-white i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}


/* ===================================== Page Navigation ================================== */

.page-nav {
    background: var(--bg-white);
    padding: 4rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.page-nav h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.page-nav ul li {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-nav ul li a {
    color: var(--primary-color);
}

.page-nav ul li a:hover {
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .page-nav {
        padding: 2.5rem 0;
    }

    .page-nav h2 {
        font-size: 1.75rem;
    }
}


/* ===================================== Forms ================================== */

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--bg-white);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}


/* ===================================== Contact ================================== */

.contact-rooo {
    padding: 4rem 0;
    background: var(--bg-white);
}

.cont-row {
    margin-bottom: 1.25rem;
}

.cont-row label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}


/* ===================================== Footer ================================== */

footer {
    background: var(--footer-bg);
    color: #9ca3af;
}

footer .inner {
    padding: 4rem 0;
}

footer .inner h4 {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

footer .inner p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

footer .inner .foot-post .post-row {
    display: flex;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

footer .inner .foot-post .post-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

footer .inner .foot-post .post-row .image {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 1rem;
    flex-shrink: 0;
}

footer .inner .foot-post .post-row .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer .inner .foot-services ul li {
    margin-bottom: 0.5rem;
}

footer .inner .foot-services ul li a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: var(--transition);
}

footer .inner .foot-services ul li a:hover {
    color: white;
}

footer .inner .foot-news .input-group {
    margin-bottom: 1.5rem;
}

footer .inner .foot-news .input-group input {
    border-radius: 8px 0 0 8px;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

footer .inner .foot-news .input-group-append .input-group-text {
    border-radius: 0 8px 8px 0;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

footer .inner .foot-news .input-group-append .input-group-text:hover {
    background: #1d4ed8;
}

footer .inner .foot-news ul {
    display: flex;
    gap: 0.75rem;
}

footer .inner .foot-news ul li {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

footer .inner .foot-news ul li:hover {
    background: var(--primary-color);
}

footer .inner .foot-news ul li i {
    font-size: 1rem;
    color: white;
}

.copy {
    padding: 1.25rem 0;
    background: #0a0f1a;
    text-align: center;
    font-size: 0.85rem;
}

.copy a {
    color: #9ca3af;
    transition: var(--transition);
}

.copy a:hover {
    color: white;
}

.copy span {
    margin-top: 0.75rem;
    display: inline-block;
}

.copy span a {
    margin: 0 0.5rem;
    font-size: 1rem;
}


/* ===================================== Media Cards ================================== */

.video-card video,
.video-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.dashboard-card iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

.project-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}


/* ===================================== Carousel / Slideshow ================================== */

.carousel {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-inner {
    border-radius: 12px;
}

.carousel-item img {
    transition: transform 0.3s ease;
}

.carousel-caption {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: auto;
    max-width: 90%;
}

.carousel-caption h5 {
    color: #ffffff;
    font-size: 1.1rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
}

[data-theme="dark"] .carousel-inner {
    background: var(--bg-card);
}


/* ===================================== Utility Classes ================================== */

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-second {
    background-color: var(--footer-bg) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-gray {
    background: var(--bg-page) !important;
}

.bg-white {
    background: var(--bg-white) !important;
}

.shadow-md,
.shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.no-padding {
    padding: 0;
}

.no-margin {
    margin: 0;
}

.text-justify {
    text-align: justify;
}

.fs-7 {
    font-size: 0.95rem;
}

.fs-8 {
    font-size: 0.85rem;
}

.fs-11 {
    font-size: 3rem;
}

@media (max-width: 767px) {
    .fs-11 {
        font-size: 2rem;
    }
}

.fw-bold {
    font-weight: 600 !important;
}

.rounded {
    border-radius: 12px !important;
}


/* ===================================== Simple Fade Animation ================================== */

.fade-in {
    opacity: 1;
}

/* Static rotate text (no animation) */
.rotate {
    display: inline-block;
}

.rotate span {
    display: inline-block;
}

.rotate span:not(:first-child) {
    display: none;
}
