/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* 🔧 CHANGE THIS: Customize your color scheme */
:root {
    --primary-color: #ff004f;
    --secondary-color: #080808;
    --text-color: #fff;
    --text-secondary: #ababab;
    --bg-color: #080808;
    --bg-secondary: #262626;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* ========== HEADER / HERO SECTION ========== */
#header {
    width: 100%;
    height: 100vh;
    /* 🔧 CHANGE THIS: Replace with your background image */
    /* Place your image in: assets/images/background.jpg */
    background-image: url(assets/images/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Container for content width */
.container {
    padding: 10px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation Bar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 20px;
}

/* Logo Styling */
.logo {
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
}

.logo span {
    color: var(--primary-color);
}

/* Desktop Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

/* Animated underline effect on hover */
nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Text */
.header-text {
    margin-top: 15%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: var(--primary-color);
}

/* Mobile Menu Icons - Hidden by default */
nav .fas {
    display: none;
}

/* ========== ABOUT SECTION ========== */
#about {
    padding: 80px 0;
    color: var(--text-secondary);
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-col-2 p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Tab Navigation */
.tab-titles {
    display: flex;
    margin: 20px 0 40px;
    gap: 50px;
}

.tab-links {
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: width 0.3s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-links:hover {
    color: var(--primary-color);
}

/* Tab Content */
.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-contents ul {
    list-style: none;
}

.tab-contents ul li {
    margin: 15px 0;
    line-height: 1.6;
}

.tab-contents ul li span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

/* Skills Section - Organized Categories */
.skill-category {
    margin-bottom: 25px;
}

.skill-category h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-category ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0;
}

.skill-category ul li {
    margin: 0;
    padding: 0;
}

.skill-category ul li span {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tab-contents ul li span:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Button Group for Services/Portfolio links */
.btn-group {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-group .btn {
    margin: 0;
}

/* ========== SERVICES SECTION ========== */
#services {
    padding: 80px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: var(--bg-secondary);
    padding: 40px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 10px;
    transition: all 0.5s;
    border: 1px solid transparent;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-color);
}

.services-list div p {
    line-height: 1.6;
    color: var(--text-secondary);
}

.services-list div a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
    transition: color 0.3s;
}

/* Hover animation - lift up */
.services-list div:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.services-list div:hover p,
.services-list div:hover a {
    color: var(--text-color);
}

/* ========== PORTFOLIO SECTION ========== */
#portfolio {
    padding: 80px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: var(--bg-secondary);
}

.work img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

/* Overlay Layer */
.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), var(--primary-color));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.layer p {
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

/* Tech stack badge in layer overlay */
.layer .tech-stack {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 8px;
}

.layer a {
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: var(--text-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
}

.layer a:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

/* Hover effect - zoom image and show overlay */
.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

/* See More Button */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 50px;
    margin-top: 50px;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========== CONTACT SECTION ========== */
#contact {
    padding: 80px 0;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
    font-size: 18px;
}

.contact-left p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 25px;
}

/* Social Icons */
.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--text-secondary);
    display: inline-block;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Download CV Button */
.btn.btn2 {
    display: inline-block;
    background: var(--primary-color);
    margin-top: 30px;
}

/* Contact Form */
.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--bg-secondary);
    padding: 15px;
    margin: 15px 0;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 6px;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-secondary);
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

/* Success Message */
#msg {
    color: #61b752;
    margin-top: 20px;
    display: block;
    font-size: 16px;
}

/* ========== FOOTER ========== */
.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--bg-secondary);
    font-weight: 300;
    margin-top: 20px;
}

.copyright i {
    color: var(--primary-color);
}

/* ========== RESPONSIVE DESIGN - MOBILE ========== */
@media only screen and (max-width: 768px) {
    /* Mobile Menu Icons */
    nav .fas {
        display: block;
        font-size: 25px;
        cursor: pointer;
    }
    
    /* Mobile Side Menu */
    nav ul {
        background: var(--primary-color);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul li {
        display: block;
        margin: 0;
    }
    
    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    
    /* Smaller Logo */
    .logo {
        font-size: 28px;
    }
    
    /* Hero Text */
    .header-text {
        margin-top: 40%;
        font-size: 18px;
    }
    
    .header-text h1 {
        font-size: 32px;
    }
    
    /* About Section - Stack Columns */
    .sub-title {
        font-size: 40px;
    }
    
    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
    }
    
    .tab-titles {
        gap: 30px;
        font-size: 16px;
    }
    
    /* Contact Section - Stack Columns */
    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }
    
    .contact-left {
        margin-bottom: 40px;
    }
    
    /* Footer */
    .copyright {
        font-size: 14px;
    }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media only screen and (max-width: 480px) {
    .container {
        padding: 10px 5%;
    }
    
    .header-text h1 {
        font-size: 28px;
    }
    
    .sub-title {
        font-size: 32px;
    }
    
    .services-list,
    .work-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .work {
        min-height: 350px;
    }
    
    .work img {
        height: 350px;
    }
    
    .layer {
        padding: 0 20px;
    }
    
    .layer h3 {
        font-size: 22px;
    }
    
    .layer p {
        font-size: 13px;
    }
}

/* ========== RESPONSIVE - TABLET (2-COLUMN) ========== */
@media only screen and (min-width: 481px) and (max-width: 900px) {
    .work-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .work {
        min-height: 380px;
    }
    
    .work img {
        height: 380px;
    }
}
