/* Global Styles */
:root {
    --primary-color: #2962ff;
    --secondary-color: #00c853;
    --dark-color: #263238;
    --light-color: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling on anchor links */
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white !important; /* Ensure text is white */
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #0039cb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #009624;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Adjusted padding */
}

.logo {
    font-size: 1.6rem; /* Slightly adjusted */
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--dark-color); /* Default nav link color */
}
nav ul li a:hover,
nav ul li a.active { /* For active link indication if you implement it */
    color: var(--primary-color);
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    /* Replace with images/hero-bg.jpg */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px; /* Account for fixed header */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}
.hero-content .btn {
    margin: 0 10px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Center icon and text */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 98, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.portfolio-overlay .btn {
    margin-top: 15px;
    background-color: var(--secondary-color);
}
.portfolio-overlay .btn:hover {
    background-color: #009624;
}


/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skills {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden; /* To make progress bar round */
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0%; /* Initial width for GSAP animation */
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: flex-start; /* Align items to top */
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px; /* Ensure icons align nicely */
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    margin-bottom: 20px;
    color: #bbb;
}

.social-links {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px; /* Spacing for wrapped items */
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col form {
    display: flex;
    flex-direction: column; /* Stack input and button on small screens */
}
.footer-col form input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    font-size: 15px;
    flex-grow: 1;
}
.footer-col form button {
    padding: 10px 15px; /* Consistent padding */
}


.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Image appears first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px; /* Adjust margin for wrapped items */
    }
    
    .hero {
        padding-top: 120px; /* Increased padding for taller header */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
     .hero-content p {
        font-size: 1rem;
    }
    .hero-content .btn {
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr; /* Stack contact info and form */
    }
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-col h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-col form {
        align-items: center;
    }
    .footer-col form input {
        width: 80%;
    }

}
@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    nav ul li a {
        font-size: 0.9rem;
    }
    nav ul li {
        margin-left: 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
     .hero-content p {
        font-size: 0.9rem;
    }
    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
}