/* style.css – professional responsive styles for CodeiDesk */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #0b1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ----- NAVBAR (overlay on slider) ----- */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: background 0.4s, box-shadow 0.4s, position 0.3s;
    min-height: 70px;
}

/* scrolled state (fixed) */
.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled .logo {
    background: linear-gradient(145deg, #0b1a2e, #1e3b5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled .nav-menu a {
    color: #1e293b;
}

.navbar.scrolled .nav-menu a i {
    color: #2563eb;
}

.navbar.scrolled .nav-dropdown a {
    color: #1e293b;
}

.navbar.scrolled .hamburger span {
    background: #0b1a2e;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* desktop menu */
.nav-menu {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.nav-menu a i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-1px);
}

.nav-menu a:hover i {
    color: white;
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: 0.2s;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 4px;
    transition: 0.3s;
}

/* dropdown (mobile/tablet) */
.nav-dropdown {
    display: none;
    width: 100%;
    flex-basis: 100%;
    padding: 0.8rem 0 0.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.4rem;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-dropdown.open {
    display: flex;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-dropdown a i {
    color: rgba(255, 255, 255, 0.5);
    width: 1.4rem;
    font-size: 1rem;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.navbar.scrolled .nav-dropdown {
    border-top-color: #eef2f6;
}

/* ----- SLIDER (full width, no margin, no padding) ----- */
.slider-section {
    position: relative;
    width: 100vw;
    height: 650px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 680px;
    padding: 0 4rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-1 {
    background-image:
        linear-gradient(135deg, rgba(11, 26, 46, 0.75) 0%, rgba(11, 26, 46, 0.15) 100%),
        url('codeidesk_mobile.png');
}

.slide-2 {
    background-image:
        linear-gradient(135deg, rgba(11, 26, 46, 0.7) 0%, rgba(11, 26, 46, 0.1) 100%),
        url('codeidesk_fullstack.png');
}

.slide-3 {
    background-image:
        linear-gradient(135deg, rgba(11, 26, 46, 0.75) 0%, rgba(11, 26, 46, 0.1) 100%),
        url('codeidesk_ai.png');
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 26, 46, 0.1);
    pointer-events: none;
    z-index: 0;
}

.slide-content {
    flex: 1 1 55%;
    z-index: 2;
    position: relative;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.3rem 1.2rem;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.slide-symbol {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-left: 2rem;
    position: relative;
}

.symbol-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.symbol-wrapper i {
    font-size: 5.5rem;
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 80px rgba(59, 130, 246, 0.05);
    animation: floatSymbol 4s ease-in-out infinite;
    z-index: 2;
    transition: 0.3s;
}

.slide:hover .symbol-wrapper i {
    color: rgba(255, 255, 255, 0.2);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    animation: pulseRing 3s ease-out infinite;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation: pulseRing 3s ease-out infinite 0.5s;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.02);
    animation: pulseRing 3s ease-out infinite 1s;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

@keyframes floatSymbol {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.slide h2 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.6rem;
    max-width: 700px;
}

.slide h2 span {
    background: linear-gradient(145deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 520px;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.slide .btn-outline-light {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    transition: 0.3s;
    cursor: default;
    backdrop-filter: blur(4px);
}

.slide .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* slider controls */
.slider-controls {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 60px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    cursor: pointer;
    display: inline-block;
}

.slider-dots span.active {
    background: white;
    width: 32px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* ----- SECTIONS ----- */
section:not(.slider-section) {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    background: linear-gradient(145deg, #0b1a2e, #1f3a5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-sub {
    font-size: 1.2rem;
    color: #334155;
    max-width: 700px;
    margin-bottom: 3rem;
    border-left: 4px solid #2563eb;
    padding-left: 1.2rem;
}

/* portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2rem 1.8rem;
    box-shadow: 0 12px 30px -10px rgba(0, 20, 40, 0.04);
    transition: 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    opacity: 0;
    transition: 0.3s;
}

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

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(0, 20, 40, 0.10);
    border-color: #dbeafe;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, #eef2ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.card-icon i {
    font-size: 1.8rem;
    background: linear-gradient(145deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.portfolio-tag {
    display: inline-block;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    margin-top: 0.8rem;
}

/* about */
#aboutus {
    background: #f1f6fc;
    border-radius: 48px;
    padding: 4rem 3rem;
    margin: 1rem auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-grid ul {
    list-style: none;
    margin-top: 1rem;
}

.about-grid li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.about-grid li i {
    color: #2563eb;
    width: 1.6rem;
    font-size: 1.2rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0b1a2e;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-highlight {
    background: white;
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f6;
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-highlight h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.about-highlight p {
    color: #1e293b;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.tech-pills span {
    background: #eef2ff;
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e3a8a;
}

/* contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 48px;
    box-shadow: 0 12px 30px -10px rgba(0, 20, 40, 0.04);
    border: 1px solid #eef2f6;
}

.contact-info {
    flex: 1 1 220px;
}

.contact-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1e293b;
}

.contact-info i {
    width: 2rem;
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 60px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    flex: 2 1 300px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafcff;
    transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.06);
}

.btn-primary {
    background: #0b1a2e;
    color: white;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 60px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1e3a5e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 26, 46, 0.15);
}

.footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================================ */

/* Tablets & small laptops */
@media (max-width: 1024px) {
    .slide h2 {
        font-size: 2.8rem;
    }
    .slide-symbol {
        flex: 0 0 130px;
    }
    .symbol-wrapper {
        width: 120px;
        height: 120px;
    }
    .symbol-wrapper i {
        font-size: 4.5rem;
    }
    .navbar {
        padding: 0.6rem 1.8rem;
    }
}

/* Mobile & small tablets */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        min-height: 60px;
        background: rgba(0, 0, 0, 0.25);
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.92);
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-dropdown {
        display: none;
        flex-basis: 100%;
    }

    .nav-dropdown.open {
        display: flex;
    }

    .slider-section {
        height: 500px;
    }

    .slide {
        flex-direction: column;
        padding: 2rem 1.8rem;
        text-align: center;
        justify-content: center;
        height: 500px;
    }

    .slide-content {
        flex: 1 1 auto;
        width: 100%;
    }

    .slide-symbol {
        flex: 0 0 auto;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .symbol-wrapper {
        width: 100px;
        height: 100px;
    }

    .symbol-wrapper i {
        font-size: 4rem;
    }

    .slide h2 {
        font-size: 2.2rem;
    }

    .slide p {
        max-width: 100%;
        font-size: 1rem;
    }

    .slider-controls {
        bottom: 1.2rem;
        right: 1.2rem;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 1.2rem;
        left: 1.2rem;
    }

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

    .section-title {
        font-size: 2.2rem;
    }

    .stats-row {
        justify-content: center;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .slider-section {
        height: 420px;
    }

    .slide {
        height: 420px;
        padding: 1.5rem 1.2rem;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 0.9rem;
    }

    .slider-controls button {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .symbol-wrapper i {
        font-size: 3rem;
    }

    .symbol-wrapper {
        width: 80px;
        height: 80px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-sub {
        font-size: 1rem;
    }

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

    #aboutus {
        padding: 2rem 1.2rem;
    }

    .contact-wrapper {
        padding: 1rem;
    }

    .nav-dropdown a {
        font-size: 0.88rem;
        padding: 0.6rem 0.8rem;
    }
}

/* iPad / tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-dropdown {
        display: none;
    }

    .nav-dropdown.open {
        display: flex;
    }

    .navbar {
        padding: 0.6rem 1.5rem;
    }
}

/* Large screens: show desktop menu */
@media (min-width: 1025px) {
    .hamburger {
        display: none !important;
    }

    .nav-dropdown {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
    }
}

/* scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}