/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0e1a; /* Dark navy background */
    color: #ffffff;
    overflow-x: hidden;
}


/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #131829
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span{
    color: #5581f0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 1rem;
    transition: 0.3s;
}

nav ul li a.active, nav ul li a:hover {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

/* Button Styling */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5, #9333ea); /* Purple/Blue gradient */
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Portfolio Section General Styles */
.portfolio-section {
    background-color: #0b0e1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header with Cityscape/Tech Background */
.portfolio-header {
    background: linear-gradient(rgba(11, 14, 26, 0.8), rgba(11, 14, 26, 0.8)), 
                url('city-tech-bg.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    padding: 100px 8%;
    text-align: left;
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.2rem;
    color: #d1d1d1;
    letter-spacing: 0.5px;
}

/* Portfolio Gallery Styles */
.portfolio-gallery {
    padding: 60px 8%;
    background-color: #131829;
}

/* Filter Menu Styling */
.filter-menu {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.3s;
}

.filter-btn.active {
    background: #4f46e5;
    color: #fff;
}

.filter-btn:hover:not(.active) {
    color: #fff;
}

/* Detailed Project Cards */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-item {
    background: #161b2e;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-details p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 20px;
    height: 45px; /* Keeps card heights consistent */
    overflow: hidden;
}

/* Card Footer with Tag and Button */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-tag {
    font-size: 0.8rem;
    color: #71717a;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
}

.view-btn {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.view-btn:hover {
    opacity: 0.9;
}

/* Responsive Grid */
@media (max-width: 600px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure consistent card styling from your image */
.project-item {
    background: #161b2e; /* Matches the dark navy card body */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Work Together Section */
.work-together {
    padding: 80px 8%;
    background-color: #0b0e1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-text-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-text-group h2 {
    font-size: 1.8rem;
    color: #ffffff;
    white-space: nowrap;
}

.cta-text-group p {
    font-size: 1rem;
    color: #b0b0b0;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Reusing the gradient button style from the hero section */
.work-together .btn {
    text-decoration: none;
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4f46e5, #8109f0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text-group {
        flex-direction: column;
        gap: 5px;
    }

    .cta-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Skills & Tools Section */
.skills-tools-section {
    padding: 80px 8%;
    background-color: #131829;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Separator line */
}

.skills-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 20px;
}

.skills-header h2 {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap; /* Prevents text from wrapping */
}

.skills-header .line {
    width: 100px; /* Length of the line */
    height: 2px;
    background: linear-gradient(to right, #4f46e5, #9333ea);
    /* For the left line, we want the gradient to go from right to left */
}

.skills-header .left-line {
    background: linear-gradient(to left, rgba(147, 51, 234, 0.8), rgba(79, 70, 229, 0.8), transparent);
}

.skills-header .right-line {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.8), rgba(79, 70, 229, 0.8), transparent);
}


/* Tools Grid */
.tools-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
    gap: 30px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05); /* Transparent background with opacity */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 30px rgba(79, 70, 229, 0.4);
}

.tool-card img {
    width: 80px; /* Adjust icon size as needed */
    height: 80px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-header {
        flex-direction: column;
        gap: 15px;
    }
    .skills-header .line {
        width: 80%; /* Lines span more width on small screens */
    }
    .skills-header h2 {
        font-size: 1.6rem;
    }
    .tools-grid {
        gap: 20px;
    }
    .tool-card {
        width: 100px;
        height: 100px;
    }
    .tool-card img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .skills-header .line {
        width: 60%;
    }
}



/* Footer Styling */
.site-footer {
    background-color: #0b0e1a; /* Consistent dark background */
    padding: 40px 8%;
    text-align: center;
    color: #b0b0b0;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Separator line from content */
}

.site-footer p {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: #b0b0b0; /* Default icon color */
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Circular background */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden; /* To contain the hover effect */
    background: rgba(255, 255, 255, 0.05); /* Subtle transparent background */
}

/* Specific icon colors on hover */
.social-icons a:nth-child(1):hover { /* LinkedIn */
    background-color: #0A66C2;
    color: #fff;
}

.social-icons a:nth-child(2):hover { /* Instagram */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}

.social-icons a:nth-child(3):hover { /* YouTube */
    background-color: #FF0000;
    color: #fff;
}

.social-icons a:nth-child(4):hover { /* Facebook */
    background-color: #1877F2;
    color: #fff;
}

/* Fallback for specific icons if background color not wanted on initial state */
.social-icons a .fab {
    z-index: 1; /* Ensure icon is above hover background */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    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 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ensures it stays above all other sections */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect */
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Subtle pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
