* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    padding: 0 8%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    min-height: 100vh;
    background: linear-gradient(rgba(10,10,10,0.65), rgba(10,10,10,0.75)), 
                url('images/background.png') center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(10,10,10,0.3) 0%, 
                rgba(10,10,10,0.45) 70%, 
                rgba(10,10,10,0.7) 100%);
    z-index: 1;
}

.header-text {
    position: relative;
    z-index: 2;
    margin-top: 120px;
}

.header-text p {
    font-size: 1.4rem;
    color: #48b0cd;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.header-text h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.7);
}

.header-text h1 span {
    color: #48b0cd;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s ease;
    z-index: 100;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: #48b0cd;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #48b0cd;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* Sections */
section {
    padding: 100px 0;
}

.sub-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.sub-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #48b0cd;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* About */
.row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.about-col-1 {
    flex: 1;
    min-width: 300px;
}

.about-col-1 img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-col-2 {
    flex: 1.6;
    min-width: 300px;
}

.tab-titles {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.tab-links {
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s;
    user-select: none;
}

.tab-links:hover {
    color: #48b0cd;
}

.tab-links.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #48b0cd;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* Skills Progress */
.skills-container {
    margin-bottom: 30px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    color: #48b0cd;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #48b0cd, #6dd5fa);
    border-radius: 10px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.tech-list li::before {
    content: '→';
    color: #48b0cd;
    position: absolute;
    left: 0;
}

/* Services & Portfolio */
.services-list, .work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card, .work-card {
    background: #121212;
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid #222;
}

.service-card:hover, .work-card:hover {
    transform: translateY(-12px);
    border-color: #48b0cd;
    box-shadow: 0 20px 40px rgba(72, 176, 205, 0.15);
}

.service-card i {
    font-size: 3.5rem;
    color: #48b0cd;
    margin-bottom: 20px;
}

.work-card {
    overflow: hidden;
}

.work-card img {
    width: 100% !important;
    height: 480px !important;     /* Big, beautiful size for your 650x800 images */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.work-info {
    padding: 25px 20px 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tags span {
    background: #1f1f1f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #aaa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 2px solid #48b0cd;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    margin: 40px auto;
    display: block;
    width: fit-content;
}

.btn:hover {
    background: #48b0cd;
    color: #000;
}

.btn.btn2 {
    background: #48b0cd;
    color: #000;
    border: none;
}

.btn-small {
    color: #48b0cd;
    text-decoration: none;
    font-weight: 500;
}

/* Contact */
.contact-left p {
    margin: 20px 0;
    font-size: 1.1rem;
}

.contact-left p i {
    color: #48b0cd;
    margin-right: 12px;
}

.social-icons a {
    font-size: 2rem;
    margin-right: 20px;
    color: #aaa;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #48b0cd;
}

form input, form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

form input:focus, form textarea:focus {
    border-color: #48b0cd;
    outline: none;
}

/* Mobile */
@media only screen and (max-width: 768px) {
    header {
        background: linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.70)), 
                    url('images/phone-background.png') center 45% / cover no-repeat;
        min-height: 100vh;
    }

    .header-text {
        margin-top: 140px;
        text-align: center;
        padding: 0 20px;
    }

    .header-text h1 {
        font-size: 2.8rem;
    }

    .header-text p {
        font-size: 1.25rem;
    }

    .tab-titles {
        gap: 25px;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: #111;
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.5s;
        z-index: 200;
    }

    nav ul li {
        margin: 20px 0;
    }

    .work-card img {
        height: 300px !important;   /* Slightly smaller on mobile */
    }
}

/* Light Mode */
.light-mode {
    background: #f8f9fa;
    color: #222;
}

.light-mode .service-card, .light-mode .work-card {
    background: #fff;
    border-color: #ddd;
}

/* Hide the close icon on desktop */
#sidemenu .fas.fa-times {
    display: none;
}

@media only screen and (max-width: 768px) {
    #sidemenu .fas.fa-times {
        display: block;
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
        font-size: 25px;
    }
    
    .fa-bars {
        display: block;
        font-size: 25px;
        cursor: pointer;
    }
}

@media only screen and (min-width: 769px) {
    .fa-bars {
        display: none;
    }
}

/* Moving Dots Background */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;                    /* Above background image, below text */
    pointer-events: none;
    opacity: 0.65;                 /* Subtle effect */
}

header {
    position: relative;
    overflow: hidden;
}

.header-text {
    position: relative;
    z-index: 2;                    /* Text stays on top */
}

.logo img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
}