/* =====================================================
   Alex Carter Portfolio
   style.css - Part 1
   Global Styles • Variables • Header • Hero
===================================================== */

/* ---------------- Google Font ---------------- */

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

/* ---------------- CSS Variables ---------------- */

:root{

    --primary:#4F46E5;
    --secondary:#7C3AED;
    --accent:#06B6D4;

    --white:#ffffff;
    --black:#111827;

    --text:#374151;
    --light:#F9FAFB;

    --border:#E5E7EB;

    --shadow:0 15px 35px rgba(0,0,0,.08);

    --transition:.35s ease;

}

/* ---------- Dark Theme ---------- */

body.dark{

    --white:#111827;
    --black:#F9FAFB;

    --text:#D1D5DB;

    --light:#1F2937;

    --border:#374151;

}

/* ---------------- Reset ---------------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--white);
    color:var(--text);
    overflow-x:hidden;
    transition:var(--transition);

}

section{

    padding:90px 9%;

}

img{

    width:100%;
    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

.container{

    max-width:1200px;
    margin:auto;

}

/* ---------------- Scrollbar ---------------- */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);
    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#ddd;

}

/* ---------------- Preloader ---------------- */

#preloader{

    position:fixed;
    inset:0;
    background:var(--white);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;

}

.loader{

    width:70px;
    height:70px;

    border-radius:50%;

    border:8px solid #ddd;
    border-top:8px solid var(--primary);

    animation:spin 1s linear infinite;

}

@keyframes spin{

    100%{

        transform:rotate(360deg);

    }

}

/* ---------------- Section Heading ---------------- */

.section-title{

    text-align:center;
    margin-bottom:60px;

}

.section-title h2{

    font-size:42px;
    color:var(--black);

}

.section-title p{

    margin-top:10px;
    color:var(--text);

}

/* ---------------- Buttons ---------------- */

.btn{

    display:inline-block;

    padding:14px 32px;

    border-radius:40px;

    transition:var(--transition);

    font-weight:600;

}

.primary-btn{

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:white;

}

.primary-btn:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow);

}

.secondary-btn{

    border:2px solid var(--primary);

    color:var(--primary);

    margin-left:15px;

}

.secondary-btn:hover{

    background:var(--primary);

    color:white;

}

/* ====================================================
                    HEADER
==================================================== */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:18px 9%;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(10px);

    display:flex;

    justify-content:space-between;

    align-items:center;

    z-index:1000;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

}

body.dark header{

    background:rgba(17,24,39,.9);

}

.logo a{

    font-size:30px;

    font-weight:700;

    color:var(--primary);

}

.logo span{

    color:var(--accent);

}

nav ul{

    display:flex;

    gap:35px;

}

nav ul li a{

    color:var(--black);

    font-weight:500;

    transition:var(--transition);

}

nav ul li a:hover,
nav ul li a.active{

    color:var(--primary);

}

.header-icons{

    display:flex;

    align-items:center;

    gap:18px;

}

#theme-toggle{

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:white;

    cursor:pointer;

    font-size:17px;

}

#menu-btn{

    display:none;

    font-size:24px;

    cursor:pointer;

    color:var(--black);

}

/* =====================================================
                    HERO
===================================================== */

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    align-items:center;

    gap:60px;

    padding-top:130px;

}

.hero-content h1{

    font-size:62px;

    color:var(--black);

    line-height:1.1;

    margin:12px 0;

}

.hero-content h2{

    font-size:34px;

    color:var(--primary);

    min-height:45px;

}

.welcome{

    font-size:22px;

    color:var(--accent);

    font-weight:600;

}

.hero-description{

    margin:25px 0;

    font-size:17px;

    line-height:1.8;

    max-width:600px;

}

.hero-buttons{

    margin-top:35px;

}

.social-icons{

    display:flex;

    gap:18px;

    margin-top:45px;

}

.social-icons a{

    width:50px;

    height:50px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:var(--light);

    color:var(--primary);

    font-size:20px;

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.social-icons a:hover{

    background:var(--primary);

    color:white;

    transform:translateY(-5px);

}

.hero-image{

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:420px;

    border-radius:50%;

    border:10px solid rgba(79,70,229,.15);

    box-shadow:0 25px 60px rgba(0,0,0,.15);

    animation:floatImage 4s ease-in-out infinite;

}

@keyframes floatImage{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-20px);

    }

    100%{

        transform:translateY(0);

    }

}

/* =====================================================
                Responsive Header & Hero
===================================================== */

@media(max-width:992px){

    .hero{

        grid-template-columns:1fr;

        text-align:center;

    }

    .hero-content{

        order:2;

    }

    .hero-image{

        order:1;

    }

    .hero-description{

        margin:auto;
        margin-top:25px;

    }

    .social-icons{

        justify-content:center;

    }

}

@media(max-width:768px){

    #menu-btn{

        display:block;

    }

    nav{

        position:absolute;

        top:100%;

        left:-100%;

        width:100%;

        background:var(--white);

        transition:.4s;

        box-shadow:0 10px 25px rgba(0,0,0,.08);

    }

    nav.active{

        left:0;

    }

    nav ul{

        flex-direction:column;

        padding:30px;

        gap:25px;

    }

    header{

        padding:18px 6%;

    }

    section{

        padding:80px 6%;

    }

    .hero-content h1{

        font-size:46px;

    }

    .hero-content h2{

        font-size:28px;

    }

    .hero-image img{

        width:300px;

    }

}

@media(max-width:500px){

    .hero-content h1{

        font-size:38px;

    }

    .hero-content h2{

        font-size:24px;

    }

    .btn{

        display:block;

        margin:15px auto;

        width:220px;

        text-align:center;

    }

    .secondary-btn{

        margin-left:0;

    }

}
/* =====================================================
   style.css - Part 2
   About • Skills • Projects • Experience
   Education • Certifications • Testimonials
=====================================================*/

/* ================= ABOUT ================= */

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

.about-image img{
    border-radius:20px;
    box-shadow:var(--shadow);
}

.about-content h3{
    font-size:32px;
    color:var(--black);
    margin-bottom:20px;
}

.about-content p{
    line-height:1.9;
    margin-bottom:18px;
}

.about-details{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:30px;
}

.about-details div{
    background:var(--light);
    padding:20px;
    border-radius:15px;
    border:1px solid var(--border);
}

.about-details span{
    color:var(--primary);
    font-weight:600;
    display:block;
    margin-bottom:8px;
}

.about-container{
    display: flex;
    justify-content: center;
}

.about-content{
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p{
    text-align: center;
    line-height: 1.8;
}

.about-details{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    max-width: 700px;
    margin: 30px auto 0;
}

.about-details div{
    text-align: center;
}

/* ================= SKILLS ================= */

.skills-container{
    max-width:900px;
    margin:auto;
}

.skill{
    margin-bottom:28px;
}

.skill h4{
    margin-bottom:10px;
    color:var(--black);
}

.progress{
    height:12px;
    background:#ddd;
    border-radius:30px;
    overflow:hidden;
}

.progress span{
    display:block;
    height:100%;
    border-radius:30px;
    background:linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
    );
    animation:progress 2s ease;
}

@keyframes progress{

    from{
        width:0;
    }

}

/* ================= PROJECTS ================= */

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:35px;
}

.project-card{
    background:var(--white);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:var(--transition);
    border:1px solid var(--border);
}

.project-card:hover{
    transform:translateY(-12px);
}

.project-card img{
    height:230px;
    object-fit:cover;
}

.project-content{
    padding:25px;
}

.project-content h3{
    color:var(--black);
    margin-bottom:12px;
}

.project-content p{
    line-height:1.7;
    margin-bottom:18px;
}

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

.project-tech span{
    background:var(--primary);
    color:white;
    padding:7px 15px;
    border-radius:30px;
    font-size:13px;
}

.project-links{
    display:flex;
    justify-content:space-between;
}

.project-links a{
    color:var(--primary);
    font-weight:600;
    transition:var(--transition);
}

.project-links a:hover{
    color:var(--secondary);
}

/* ================= EXPERIENCE ================= */

.timeline{
    max-width:900px;
    margin:auto;
    position:relative;
}

.timeline::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    width:4px;

    height:100%;

    background:var(--primary);

    transform:translateX(-50%);
}

.timeline-item{
    width:50%;
    padding:20px 40px;
    position:relative;
}

.timeline-item:nth-child(odd){
    left:0;
    text-align:right;
}

.timeline-item:nth-child(even){
    left:50%;
}

.timeline-content{
    background:var(--light);
    padding:25px;
    border-radius:15px;
    box-shadow:var(--shadow);
}

.timeline-content h3{
    color:var(--primary);
}

.timeline-content h4{
    margin:8px 0;
    color:var(--black);
}

.timeline-content p{
    line-height:1.7;
}

.timeline-date{
    font-weight:700;
    color:var(--secondary);
    margin-bottom:12px;
}

/* ================= EDUCATION ================= */

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

.education-card{
    background:var(--light);
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:var(--transition);
    border:1px solid var(--border);
}

.education-card:hover{
    transform:translateY(-10px);
}

.education-card i{
    font-size:50px;
    color:var(--primary);
    margin-bottom:20px;
}

.education-card h3{
    color:var(--black);
    margin-bottom:10px;
}

.education-card h4{
    color:var(--text);
    margin-bottom:10px;
}

/* ================= CERTIFICATIONS ================= */

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

.certificate-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:20px;
    padding:35px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.certificate-card:hover{
    transform:translateY(-8px);
}

.certificate-card i{
    font-size:50px;
    color:var(--primary);
    margin-bottom:20px;
}

.certificate-card h3{
    color:var(--black);
    line-height:1.5;
}

/* ================= TESTIMONIALS ================= */

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

.testimonial{
    background:var(--light);
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}

.testimonial p{
    line-height:1.8;
    font-style:italic;
    margin-bottom:20px;
}

.testimonial h4{
    color:var(--primary);
}

.testimonial span{
    color:var(--text);
    font-size:14px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

    .about-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .about-details{
        grid-template-columns:1fr;
    }

    .timeline::before{
        left:25px;
    }

    .timeline-item{
        width:100%;
        left:0 !important;
        text-align:left;
        padding-left:70px;
        padding-right:0;
        margin-bottom:30px;
    }

}

@media(max-width:768px){

    .project-container,
    .education-container,
    .certificate-container,
    .testimonial-slider{

        grid-template-columns:1fr;

    }

}
/* =====================================================
   style.css - Part 3
   Contact • Footer • Scroll Button
   Dark Mode • Animations • Responsive
=====================================================*/

/* ================= CONTACT ================= */

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

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

.contact-box{
    display:flex;
    align-items:center;
    gap:18px;
    padding:22px;
    background:var(--light);
    border-radius:15px;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.contact-box i{
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-size:22px;
}

.contact-box h3{
    color:var(--black);
    margin-bottom:6px;
}

.contact-form{
    background:var(--light);
    padding:35px;
    border-radius:20px;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}

.contact-form form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-form input,
.contact-form textarea{

    width:100%;
    padding:16px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--white);
    color:var(--black);
    outline:none;
    transition:.3s;

}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:var(--primary);

}

.contact-form textarea{

    resize:none;

}

/* ================= FOOTER ================= */

footer{

    background:#111827;
    color:#fff;
    text-align:center;
    padding:70px 10% 40px;

}

.footer-content h2{

    font-size:34px;
    margin-bottom:20px;

}

.footer-content p{

    max-width:700px;
    margin:auto;
    line-height:1.8;

}

.footer-social{

    margin:35px 0;
    display:flex;
    justify-content:center;
    gap:18px;

}

.footer-social a{

    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#1f2937;
    color:white;
    font-size:20px;
    transition:.35s;

}

.footer-social a:hover{

    background:var(--primary);
    transform:translateY(-5px);

}

footer .copyright{

    margin-top:20px;
    font-size:15px;
    color:#bdbdbd;

}

/* ================= SCROLL TOP ================= */

#scrollTopBtn{

    position:fixed;
    right:30px;
    bottom:30px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:var(--primary);
    color:#fff;

    cursor:pointer;

    font-size:20px;

    display:none;

    z-index:999;

    box-shadow:var(--shadow);

    transition:.3s;

}

#scrollTopBtn:hover{

    background:var(--secondary);
    transform:translateY(-5px);

}

/* ================= PARTICLES ================= */

#particles-js{

    position:fixed;
    inset:0;
    z-index:-1;

}

/* ================= ANIMATIONS ================= */

.fade-up{

    animation:fadeUp 1s ease forwards;

}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(40px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.zoom{

    animation:zoom .8s ease;

}

@keyframes zoom{

    from{

        transform:scale(.8);
        opacity:0;

    }

    to{

        transform:scale(1);
        opacity:1;

    }

}

/* ================= DARK MODE ================= */

body.dark{

    background:#111827;
    color:#d1d5db;

}

body.dark .section-title h2,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4{

    color:#ffffff;

}

body.dark header{

    background:rgba(17,24,39,.95);

}

body.dark nav{

    background:#111827;

}

body.dark .project-card,
body.dark .education-card,
body.dark .certificate-card,
body.dark .testimonial,
body.dark .contact-form,
body.dark .contact-box,
body.dark .about-details div,
body.dark .timeline-content{

    background:#1f2937;

    border-color:#374151;

}

body.dark .progress{

    background:#374151;

}

body.dark .social-icons a{

    background:#1f2937;

}

body.dark input,
body.dark textarea{

    background:#111827;
    color:#fff;
    border:1px solid #374151;

}

/* ================= UTILITIES ================= */

.text-center{

    text-align:center;

}

.mt-1{

    margin-top:10px;

}

.mt-2{

    margin-top:20px;

}

.mt-3{

    margin-top:30px;

}

.mb-1{

    margin-bottom:10px;

}

.mb-2{

    margin-bottom:20px;

}

.mb-3{

    margin-bottom:30px;

}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

    .contact-container{

        grid-template-columns:1fr;

    }

    .contact-info{

        margin-bottom:25px;

    }

}

@media(max-width:768px){

    .section-title h2{

        font-size:34px;

    }

    .contact-form{

        padding:25px;

    }

    footer{

        padding:60px 25px;

    }

    #scrollTopBtn{
    position: fixed;
    right:30px;
    bottom:30px;
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    }

}

@media(max-width:576px){

    .contact-box{

        flex-direction:column;
        text-align:center;

    }

    .footer-social{

        flex-wrap:wrap;

    }

    .footer-content h2{

        font-size:28px;

    }

}



/* ================= END OF FILE ================= */