@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- 🎨 Color Scheme Inspired by the Template --- */
:root {
    --primary: #000000;
    /* Black from template */
    --accent: #00D4FF;
    /* Cyan accent for highlights */
    --light-bg: #F8F9FA;
    /* Light background */
    --light-card: #FFFFFF;
    /* White cards */
    --dark-text: #333333;
    /* Dark text */
    --light-text: #666666;
    /* Light text */
    --border: #E0E0E0;
    /* Light borders */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* --- Header --- */
header {
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

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

nav a.active {
    color: var(--primary);
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* --- Hero Section (Template Style) --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-text h2 {
    font-size: 20px;
    color: var(--light-text);
    font-weight: 400;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.hero-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.hero-text p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Services Section (Template Style) --- */
.services-section {
    background-color: var(--light-card);
}

.section-title {
    font-size: 36px;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 18px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.service-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-description {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 15px;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--accent);
}

/* --- Projects Section --- */
.projects-section {
    background-color: var(--light-bg);
}

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

.project-card {
    background: var(--light-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-header {
    padding: 30px 30px 20px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.project-description {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 14px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.project-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent);
}

/* --- Skills Section --- */
.skills-section {
    background-color: var(--light-card);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.skill-icon {
    font-size: 28px;
    color: var(--accent);
}

.skill-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}



/* --- Clients/Education Section --- */
.clients-section {
    background-color: var(--light-bg);
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* wider min width for better layout */
    gap: 40px;
    align-items: stretch;
    /* ensures all grid items stretch to same height */
    margin-top: 40px;
}

.client-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertically center content */
    padding: 20px;
    background: var(--light-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 250px;
    /* ensures uniform height */
    text-align: center;
}

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

.client-name {
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
}

.client-name-sliit {
    font-weight: 600;
    font-size: medium;
    color: var(--primary);
    margin-top: 10px;
}

.client-name-azure {
    font-weight: 600;
    font-size: medium;
    color: var(--primary);
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--accent);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
}

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

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent);
}


/* Scroll reveal base state */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-image {
        order: -1;
        /* image on top */
    }

    .profile-image {
        margin-top: 20px;
        max-width: 320px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    nav.active ul {
        flex-direction: column;
        gap: 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 70px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h2 {
        font-size: 16px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .profile-image {
        margin-top: 20px;
        max-width: 260px;
        border-radius: 16px;
    }

    /* Center buttons */
    .hero-text>div {
        justify-content: center;
    }
}


/* Small Phones */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .profile-image {
        margin-top: 20px;
        max-width: 220px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}