/* =========================================
   1. CSS RESET & VARIABLES
   ========================================= */
:root {
    --primary-color: #00bfff; /* Deep Sky Blue */
    --dark-bg: #121212;       /* Main Background */
    --light-bg: #1e1e1e;      /* Section Background */
    --text-color: #e0e0e0;    /* Main Text */
    --text-muted: #888;       /* Subtitles/Descriptions */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.7;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

header nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

/* =========================================
   3. HERO & PROFILE SECTION
   ========================================= */
#hero {
    min-height: 60vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.profile-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.6);
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

#hero .subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-socials a {
    color: var(--text-muted);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   4. SECTIONS GENERAL
   ========================================= */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

section:nth-of-type(even) {
    background-color: var(--light-bg);
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
}

/* =========================================
   6. EXPERIENCE / TIMELINE SECTION
   ========================================= */
#experience {
    background-color: var(--light-bg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -46px;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-content {
    background-color: var(--dark-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary-color);
}

/* Company Name (Heading) */
.timeline-content h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.5rem; 
    font-weight: 700;
}

/* Job Title (Subheading) */
.timeline-content .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content .description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.timeline-content .description strong {
    color: #e0e0e0;
}

/* =========================================
   7. SERVICES SECTION
   ========================================= */
#services {
    background-color: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--light-bg);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================
   8. PORTFOLIO SECTION
   ========================================= */
#portfolio {
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Portfolio Footer (See More Button) */
.portfolio-footer {
    text-align: center;
    margin-top: 4rem;
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
#contact {
    text-align: center;
    background-color: var(--dark-bg);
}

#contact p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Primary Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button i {
    font-size: 1.3em;
    margin-right: 0.5rem;
}

.cta-button:hover {
    background-color: #00a0d9;
    border-color: #00a0d9;
    transform: scale(1.05);
}

/* Secondary Button */
.cta-button.cta-button-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.cta-button-secondary i {
    color: var(--primary-color);
}

.cta-button.cta-button-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.cta-button.cta-button-secondary:hover i {
    color: #fff;
}

/* Social Links */
.social-links {
    margin-top: 3rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   10. FOOTER & LIGHTBOX
   ========================================= */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #2a2a2a;
    color: var(--text-muted);
    font-size: 0.9rem;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    padding: 20px;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* =========================================
   11. FLOATING WHATSAPP BUTTON
   ========================================= */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #111;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none; /* Removes underline */
}

.float-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   12. RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    header nav {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav a {
        margin: 0 0.8rem 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -36px;
    }

    .float-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}
