/* style.css */

/* --- General Reset & Base Styles (Keep as is) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    padding-top: 70px; /* makes sure sections are not hidden under nav */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Good default padding */
    text-align: center;
}


/* --- Top Navigation --- */
.top-nav {
    background: #111;
    padding: 15px 40px; /* Adjust padding for desktop if needed, or keep for consistency */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.top-nav .logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.top-nav ul {
    list-style: none;
    display: flex; /* Default for desktop */
    gap: 25px;
}

.top-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.top-nav ul li a:hover {
    color: #ff9800;
}

.top-nav ul li a.active {
    color: #FF6600; /* Changed to your primary brand color */
    font-weight: bold;
    border-bottom: 3px solid #FF6600; /* New visual indicator */
}

/* --- HAMBURGER MENU (Desktop Hidden, Mobile Visible) --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/*
  Crucial: When the menu is NOT active on mobile,
  we explicitly hide the nav links.
  When it IS active, the JS will add 'active' class,
  and the @media (max-width: 768px) rule will apply.
*/
#nav-links {
    display: flex; /* Default desktop display */
    gap: 25px;
    list-style: none;
    transition: max-height 0.3s ease;
}


/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background: linear-gradient(to right, #FF6600 0%, #FF6600 50%, #ffffff 100%);
    /* Add padding for mobile in case the container doesn't cover it */
    padding: 40px 20px; /* Added for mobile safety */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-left img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-right h3 {
    font-size: 1.5rem;
    color: #555;
}

.hero-right h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #222;
}

.hero-right h2 {
    font-size: 2rem;
    margin: 10px 0;
}

.hero-right h2 span {
    color: hsl(236, 100%, 52%); /* Consider changing this color for consistency */
    font-weight: bold;
}

.hero-right p {
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    max-width: 500px;
}

/* --- About Section --- */
#about {
    padding: 60px 20px; /* Ensure sufficient padding on all screens */
}

#about h2 {
    font-size: 2.5rem;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

#about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #FF6600;
    margin: 10px auto 40px auto;
    border-radius: 2px;
}

#about p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

/* --- SKILLS SECTION --- */
#skills {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
}

#skills h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #222;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.skill {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
}

.skill img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.skill p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.bar {
    width: 100%;
    height: 14px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6600, #ff9800);
    text-align: right;
    padding-right: 5px;
    font-size: 12px;
    color: #fff;
    line-height: 14px;
    border-radius: 10px 0 0 10px;
    transition: width 1s ease;
    width: 0; /* JS will set this */
}

/* --- Projects Section --- */
#projects {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

#projects h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-card .btn {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #FF6600, #ff9800);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: bold;
}

.project-card .btn:hover {
    background: linear-gradient(135deg, #e05c00, #e67e22);
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay .btn {
    padding: 10px 20px;
    background: #ff6600;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.overlay .btn:hover {
    background: #e05c00;
}

/* --- Services Section --- */
/* Add this new block to define the grid layout for the cards */
.services-grid {
    display: grid;
    /* This creates 3 columns of equal size on desktop, or one column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* Spacing between cards */
    max-width: 1000px;
    margin: 0 auto;
}

/* This targets the new service card */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
/* This targets the new service card */
.service-card {
    /* **REQUIRED STYLES ADDED HERE** */
    background: #fff; 
    padding: 30px; 
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    text-align: left;
    transition: transform 0.3s ease;
    cursor: pointer; 
    position: relative; 
    overflow: hidden; 
    min-height: 150px; 
}
.service-card h3 {
    color: #FF6600; /* Highlight the service title */
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Contact Section --- */
#contact {
    background: #f5f7fa;
    padding: 80px 20px;
    text-align: center;
}

.contact-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Stacks by default for mobile */
    gap: 40px;
}

#contact h2 {
    font-size: 2.5rem;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: 0.3s ease;
}

#contact textarea { min-height: 140px; resize: none; }

#contact button {
    background: linear-gradient(135deg, #FF6600, #ff9800);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.3s ease;
}

#contact button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e05c00, #e67e22);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.social-links a {
    font-size: 2rem;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-links .linkedin { color: #0077b5; }
.social-links .github { color: #000; }
.social-links .instagram { color: #e4405f; }
.social-links .facebook { color: #1877f2; }
.social-links .whatsapp { color: #25d366; }

.contact-card {
    padding: 25px 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cv-download {
    margin-top: 40px; /* Add space above CV download section */
    font-size: 1.1rem;
    color: #555;
}

.cv-download .btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Consider updating this color for consistency */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px; /* Space between text and button */
}

.cv-download .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* --- ACCORDION & SERVICE IMAGE STYLES --- */

/* The Service Card (Sets the 3:4 portrait size) */
.service-card {
    background: #fff; 
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease;
    cursor: pointer; 
    position: relative; 
    overflow: hidden; 
    
    /* 💥 CRITICAL: Set size to 3:4 portrait ratio 💥 */
    padding: 0; /* REMOVE all internal padding */
    min-height: unset; /* Remove minimum height constraint */
    height: auto;
    aspect-ratio: 3 / 4; /* Creates the tall, vertical shape */
}

/* The Clickable Title/Header - Layered Overlay */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Positioning over the image */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    
    /* Contrast and styling */
    background: rgba(0, 0, 0, 0.75); /* Dark, semi-transparent overlay */
    color: #fff; /* White text for contrast */
    padding: 15px; /* Add padding here */
    border-radius: 12px 12px 0 0; 
    border-bottom: none; /* Remove separator line */
    
    z-index: 3; /* Above the image */
}

/* Ensure the title text is white/light for contrast */
.service-header h3 {
    margin-bottom: 0; 
    color: #fff; /* White text */
    text-shadow: none; 
}

/* HIDE THE CONTENT BY DEFAULT - Layered Overlay */
.service-content {
    max-height: 0;
    overflow: hidden;
    /* Updated transition to target 'padding' */
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; 
    
    /* Positioning over the image */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85); /* Slightly darker background for content */
    color: #fff; /* White text for contrast */
    
    z-index: 3;
}

/* SHOW THE CONTENT when 'active' class is on the parent card */
.service-card.active .service-content {
    max-height: 800px; /* Tall enough to show content */
    padding: 15px; /* Use padding here */
}

/* Rotate the icon when the card is open */
.toggle-icon {
    font-size: 1.2rem;
    color: #fff; /* Icon should be white/light */
    transition: transform 0.3s ease;
}

.service-card.active .toggle-icon {
    transform: rotate(180deg);
}

/* List Item Styling for better readability */
.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li::before {
    content: "•";
    color: #FF6600; /* Set the bullet point color to your brand color */
    font-weight: bold;
    display: inline-block; 
    width: 1em; 
    margin-left: -1em;
}

/* Ensure paragraph and list item text is white */
.service-content p, .service-content ul li {
    color: #fff;
}


/* --- SERVICE CARD BACKGROUND IMAGES --- */

/* Create a container for the image and ensure proper sizing */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 🚀 CRITICAL: Sizing for full image visibility in the 3:4 container 🚀 */
    background-size: contain; /* Scales the entire image to fit */
    background-position: center;
    background-repeat: no-repeat;
    
    opacity: 1; /* Make image fully visible */
    transition: opacity 0.5s ease;
    z-index: 1; /* Place behind the text */
}

/* Remove or update the hover style */
.service-card:hover::before {
    opacity: 1; /* Keep it fully visible on hover */
}

/* 1. Web Development Card Image */
.service-card[data-service-id="web"]::before {
    background-image: url('images/webdevelopment.jpg'); 
}

/* 2. Brand & Visual Design Card Image */
.service-card[data-service-id="design"]::before {
    background-image: url('images/visualdesign.jpg');
}

/* 3. IT Support & Optimization Card Image */
.service-card[data-service-id="it"]::before {
    background-image: url('images/itsupport.jpg');
}

/* --- SERVICE CARD BACKGROUND IMAGES --- */

/* Create a container for the image and an overlay effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
    z-index: 1; /* Place behind the text */
}

/* 1. Web Development Card Image */
.service-card[data-service-id="web"]::before {
    background-image: url('images/webdevelopment.jpg'); 
}

/* 2. Brand & Visual Design Card Image */
.service-card[data-service-id="design"]::before {
    background-image: url('images/visualdesign.jpg');
}

/* 3. IT Support & Optimization Card Image */
.service-card[data-service-id="it"]::before {
    background-image: url('images/itsupport.jpg');
}


/* OPTIONAL: Make the image slightly more visible on hover */
.service-card:hover::before {
    opacity: 0.15;
}
/* --- Responsive Fixes for Smaller Screens (Max-width 768px) --- */
@media (max-width: 768px) {
    /* --- Top Navigation --- */
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    /* Hide nav links by default on mobile */
    #nav-links {
        display: none; /* Hide by default */
        width: 100%;
        flex-direction: column;
        background: #111;
        max-height: 0; /* Important for animation */
        overflow: hidden;
        text-align: center;
        padding: 0;
    }

    /* Show nav links when 'active' class is added by JS */
    #nav-links.active {
        display: flex; /* Show when active */
        max-height: 400px; /* Sufficient height to show all links */
        padding: 15px 0;
    }

    .top-nav {
        padding: 15px 20px; /* Adjust padding for smaller screens */
    }

    #nav-links li {
        margin: 10px 0;
    }

    #nav-links a {
        padding: 10px;
        font-size: 1.1rem;
    }

    /* --- Hero Section --- */
    .hero-container {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
        gap: 30px; /* Reduce gap slightly */
    }

    .hero-left img {
        width: 250px; /* Smaller image on mobile */
        height: 250px;
        margin-bottom: 20px; /* Add space below image */
    }

    .hero-right h3 {
        font-size: 1.2rem;
    }

    .hero-right h1 {
        font-size: 2.5rem;
    }

    .hero-right h2 {
        font-size: 1.5rem;
    }

    .hero-right p {
        font-size: 1rem;
        max-width: none; /* Allow paragraph to take full width */
        padding: 0 10px; /* Add slight horizontal padding */
    }

    /* --- About Section --- */
    #about p {
        font-size: 1rem;
    }

    /* --- Skills Grid --- */
    .skills-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
        gap: 20px; /* Reduced gap */
        padding: 0 10px; /* Add horizontal padding to the grid itself */
    }

    /* --- Projects Grid --- */
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
        gap: 20px; /* Reduced gap */
        padding: 0 10px; /* Add horizontal padding to the grid itself */
    }

    /* --- Contact Section --- */
    .contact-content-wrapper {
        flex-direction: column; /* Ensure stacking on mobile */
        gap: 30px; /* Adjust gap */
    }

    .social-links {
        flex-direction: row; /* Keep social icons horizontal for now */
        flex-wrap: wrap; /* Allow wrapping if too many icons */
        justify-content: center; /* Center icons */
        gap: 15px; /* Adjust gap */
    }

    .cv-download {
        margin-top: 30px; /* Adjust spacing */
    }

}


/* --- Desktop/Tablet Layout (Min-width 769px) --- */
@media (min-width: 769px) {
    /* Hide the hamburger menu on larger screens */
    .menu-toggle {
        display: none;
    }

    /* Ensure nav links are always visible on larger screens */
    #nav-links {
        display: flex !important; /* Force display flex for desktop */
        max-height: none !important; /* Remove max-height restriction */
        overflow: visible !important;
        padding: 0 !important;
    }

    /* Restore desktop hero layout */
    .hero-container {
        flex-direction: row;
        text-align: left; /* Align text left on desktop */
    }

    /* Restore desktop contact layout */
    .contact-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
        padding-top: 20px;
    }

    #contact form {
        width: 65%;
        text-align: left;
    }

    .social-links {
        width: 35%;
        justify-content: flex-end;
        flex-direction: column;
        align-items: flex-end;
        gap: 30px;
        padding-top: 10px;
    }
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}/* --- GALLERY SPECIFIC STYLES (For graphic-design-gallery.html) --- */

/* Ensures the gallery section has proper spacing at the top */
.gallery-section {
    padding-top: 100px; /* More padding than other sections to account for fixed header */
    padding-bottom: 60px;
    min-height: 100vh; /* Ensures the page is at least full screen height */
}

/* Specific styling for the H2 title on the gallery page */
.gallery-section h2 {
    font-size: 2.5rem;
    color: #222;
    text-align: center;
    margin-bottom: 40px;
}

/* Optional: To make the gallery projects look slightly different/more prominent on their own page */
.gallery-section .project-card {
    background: #fff;
    border: 1px solid #eee;
}

/* Responsive adjustment for the gallery section header on mobile */
@media (max-width: 768px) {
    .gallery-section {
        padding-top: 90px; /* Adjust for mobile header height */
    }
}