/* =============================================
   MAHIN ISLAM - PROFESSIONAL PORTFOLIO
   WordPress Elementor-Friendly Design
   Color Scheme: Dark Navy (#1c1c40) + Blue Accent
============================================= */

/* === CSS Variables === */
:root {
    --primary: #046bd2;
    --primary-dark: #045cb4;
    --dark: #1c1c40;
    --dark-lighter: #2a2a5a;
    --text: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #046bd2, #045cb4);
    --shadow: 0 10px 40px rgba(4, 107, 210, 0.15);
    --shadow-dark: 0 20px 60px rgba(28, 28, 64, 0.3);
    --transition: all 0.3s ease;
    --font: 'Baloo Da 2', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.highlight {
    color: var(--primary);
}


/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(4, 107, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(4, 107, 210, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: var(--dark);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.header-social {
    display: flex;
    gap: 12px;
}

.header-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.header-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}


/* === Hero Section === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-role {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    display: inline;
}

.stat-plus {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.3;
    filter: blur(20px);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    color: var(--white);
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}


/* === About Section === */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-info {
    margin: 25px 0;
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 100px;
}

.info-value {
    color: var(--text);
}

.about-services h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
}

.service-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.service-card:hover {
    background: var(--light-bg);
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.service-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.service-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}


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

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

.skill-percent {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* === Experience Section === */
.experience-section {
    background: var(--white);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary);
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.timeline-company {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(4, 107, 210, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-badge.past {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-light);
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text);
    font-size: 15px;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}


/* === Education Section === */
.education-section {
    background: var(--light-bg);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.edu-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.edu-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 28px;
}

.edu-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.edu-card h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

.edu-institution {
    font-size: 14px;
    color: var(--text-light);
}

/* === Partners Section === */
.partners-section {
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    min-height: 100px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.partner-logo img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(50%);
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0);
}


/* === Contact Section === */
.contact-section {
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-cards {
    display: grid;
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-card p a {
    color: var(--text-light);
}

.contact-card p a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}


/* === Footer === */
.site-footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom strong {
    color: var(--primary);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}


/* === Animations === */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    .hero-title {
        font-size: 44px;
    }
    .image-wrapper {
        width: 350px;
        height: 350px;
    }
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    .section-title {
        font-size: 32px;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav a {
        font-size: 18px;
    }
    .header-social {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-role {
        font-size: 22px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .hero-image {
        order: -1;
    }
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    .about-grid,
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .education-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .timeline {
        padding-left: 40px;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-dot {
        left: -33px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-number {
        font-size: 28px;
    }
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form-wrapper {
        padding: 25px;
    }
    .timeline-content {
        padding: 20px;
    }
}
