/* ==========================================
   ODUNAYO OSILAJA PORTFOLIO WEBSITE
   STYLE.CSS (PART 1)
========================================== */

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

/* CSS Variables */

:root{

    --primary:#2563eb;
    --secondary:#0f172a;
    --accent:#38bdf8;
    --white:#ffffff;
    --light:#f8fafc;
    --text:#334155;
    --gray:#64748b;
    --shadow:0 15px 35px rgba(0,0,0,.12);
    --radius:16px;
    --transition:.35s ease;

}

/* Reset */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:var(--text);
    line-height:1.7;
    overflow-x:hidden;

}

/* Header */

header{

    position:fixed;
    top:0;
    left:0;
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 8%;

    background:rgba(15,23,42,.95);

    backdrop-filter:blur(12px);

    z-index:1000;

    transition:.3s;

}

/* Logo */

.logo h2{

    color:white;
    font-size:30px;
    font-weight:700;

}

/* Navigation */

nav{

    display:flex;
    gap:25px;
    align-items:center;

}

nav a{

    text-decoration:none;
    color:white;
    font-weight:500;
    transition:var(--transition);

}

nav a:hover{

    color:var(--accent);

}

nav .active{

    color:var(--accent);

}

/* Theme Button */

.theme-toggle{

    width:45px;
    height:45px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:var(--primary);

    color:white;

    font-size:18px;

    transition:var(--transition);

}

.theme-toggle:hover{

    transform:rotate(180deg);

}

/* Hero */

.hero{

    max-width:1250px;

    margin:auto;

    min-height:100vh;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));

    gap:70px;

    align-items:center;

    padding:120px 8% 80px;

}

.hero-text h4{

    color:var(--primary);

    font-size:22px;

}

.hero-text h1{

    font-size:72px;

    line-height:1.1;

    color:var(--secondary);

    margin:15px 0;

}

.hero-text h1 span{

    display:block;

    color:var(--primary);

}

.hero-text h2{

    font-size:28px;

    color:#475569;

    margin-bottom:25px;

    min-height:40px;

}

.hero-text p{

    font-size:18px;

    margin-bottom:40px;

}

/* Hero Image */

.hero-image{

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:420px;

    height:420px;

    object-fit:cover;

    border-radius:50%;

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

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.hero-image img:hover{

    transform:scale(1.03);

}

/* Buttons */

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.btn{

    display:inline-block;

    padding:16px 34px;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:var(--transition);

}

.primary{

    background:var(--primary);

    color:white;

}

.secondary{

    background:var(--secondary);

    color:white;

}

.btn:hover{

    transform:translateY(-5px);

}

/* Social Icons */

.social{

    display:flex;

    gap:18px;

    margin-top:35px;

}

.social a{

    width:55px;

    height:55px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:white;

    color:var(--primary);

    text-decoration:none;

    font-size:24px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.social a:hover{

    background:var(--primary);

    color:white;

    transform:translateY(-6px);

}

/* ==========================================
   STYLE.CSS (PART 2)
   Statistics, Skills, Projects,
   Certificates, Resume, Contact & Footer
==========================================*/

/* Sections */

section{
    padding:90px 8%;
}

section h2{
    text-align:center;
    font-size:42px;
    color:var(--secondary);
    margin-bottom:50px;
}

/* ======================
   Statistics
====================== */

.stats{

    max-width:1200px;
    margin:auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}

.card{

    background:var(--white);

    padding:35px;

    border-radius:var(--radius);

    text-align:center;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.card:hover{

    transform:translateY(-10px);

}

.card h2{

    color:var(--primary);

    font-size:48px;

    margin-bottom:10px;

}

.card p{

    color:var(--gray);

    font-size:18px;

}

/* ======================
   Skills
====================== */

.skills{

    background:#eef5ff;

}

.skills-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:25px;

}

.skill-card{

    background:white;

    padding:25px;

    border-radius:15px;

    text-align:center;

    font-weight:600;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.skill-card:hover{

    background:var(--primary);

    color:white;

    transform:translateY(-8px);

}

/* ======================
   Projects
====================== */

.featured{

    max-width:1300px;

    margin:auto;

}

.project-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

.project-card{

    background:white;

    padding:30px;

    border-radius:18px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.project-card:hover{

    transform:translateY(-12px);

}

.project-card h3{

    color:var(--secondary);

    margin-bottom:18px;

}

.project-card p{

    margin-bottom:15px;

    color:var(--gray);

}

.project-card .btn{

    margin-top:10px;
    margin-right:10px;

}

/* ======================
   Certificates
====================== */

.certificate-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.certificate-card{

    background:white;

    padding:30px;

    border-radius:16px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.certificate-card:hover{

    transform:translateY(-10px);

}

.certificate-card h3{

    margin-bottom:15px;

}

/* ======================
   Resume
====================== */

.resume{

    text-align:center;

}

.resume img{

    width:180px;

    height:180px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:20px;

    box-shadow:var(--shadow);

}

.resume h2{

    margin-bottom:15px;

}

.resume p{

    max-width:800px;

    margin:auto;

}

/* ======================
   Contact
====================== */

.contact{

    max-width:900px;

    margin:auto;

}

.contact form{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact input,
.contact textarea{

    padding:18px;

    border:1px solid #ddd;

    border-radius:12px;

    outline:none;

    font-size:16px;

    font-family:inherit;

    transition:.3s;

}

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

    border-color:var(--primary);

    box-shadow:0 0 10px rgba(37,99,235,.15);

}

.contact button{

    padding:18px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:white;

    font-size:18px;

    cursor:pointer;

    transition:var(--transition);

}

.contact button:hover{

    background:#1d4ed8;

}

/* ======================
   Footer
====================== */

footer{

    background:var(--secondary);

    color:white;

    text-align:center;

    padding:30px;

    margin-top:60px;

}

footer p{

    font-size:16px;

}

/* ==========================================
   STYLE.CSS (PART 3)
   Dark Mode, Animations, Responsive,
   Mobile Menu & Utilities
==========================================*/

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

body.dark{

    background:#0f172a;
    color:#e2e8f0;

}

body.dark header{

    background:#020617;

}

body.dark .card,
body.dark .project-card,
body.dark .certificate-card,
body.dark .skill-card,
body.dark .contact input,
body.dark .contact textarea{

    background:#1e293b;
    color:#ffffff;

}

body.dark h1,
body.dark h2,
body.dark h3{

    color:#ffffff;

}

body.dark p{

    color:#cbd5e1;

}

body.dark footer{

    background:#020617;

}

body.dark .contact input,
body.dark .contact textarea{

    border:1px solid #334155;

}

body.dark .social a{

    background:#1e293b;
    color:#38bdf8;

}

body.dark .social a:hover{

    background:#2563eb;
    color:white;

}

/* ======================
   SCROLL ANIMATION
====================== */

section,
.card,
.project-card,
.skill-card,
.certificate-card{

    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;

}

.show{

    opacity:1;
    transform:translateY(0);

}

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

.topButton{

    position:fixed;

    right:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:22px;

    cursor:pointer;

    display:none;

    justify-content:center;

    align-items:center;

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

    transition:.3s;

    z-index:9999;

}

.topButton:hover{

    transform:translateY(-6px);

}

/* ======================
   LOADING ANIMATION
====================== */

.loader{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.loader.hidden{

    display:none;

}

.spinner{

    width:60px;

    height:60px;

    border:6px solid #ddd;

    border-top:6px solid #2563eb;

    border-radius:50%;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ======================
   HAMBURGER MENU
====================== */

.menu-toggle{

    display:none;

    font-size:28px;

    color:white;

    cursor:pointer;

}

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

@media(max-width:992px){

.hero{

    grid-template-columns:1fr;

    text-align:center;

}

.hero-buttons{

    justify-content:center;

}

.hero-image{

    margin-top:40px;

}

.hero-image img{

    width:320px;

    height:320px;

}

.hero-text h1{

    font-size:52px;

}

section h2{

    font-size:34px;

}

}

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

@media(max-width:768px){

.menu-toggle{

    display:block;

}

nav{

    position:absolute;

    top:80px;

    left:0;

    width:100%;

    background:#0f172a;

    flex-direction:column;

    display:none;

    padding:20px;

}

nav.active{

    display:flex;

}

.hero{

    padding-top:140px;

}

.hero h1{

    font-size:40px;

}

.hero h2{

    font-size:22px;

}

.hero p{

    font-size:17px;

}

.hero-image img{

    width:250px;

    height:250px;

}

.btn{

    width:100%;

    text-align:center;

}

.project-grid,
.certificate-grid,
.skills-grid,
.stats{

    grid-template-columns:1fr;

}

}

/* ======================
   SMALL DEVICES
====================== */

@media(max-width:480px){

header{

    padding:15px;

}

.logo h2{

    font-size:24px;

}

.hero{

    padding:130px 20px 60px;

}

.hero h1{

    font-size:32px;

}

.hero h2{

    font-size:18px;

}

.hero-image img{

    width:210px;

    height:210px;

}

section{

    padding:60px 20px;

}

}

/* ======================
   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;

}

.shadow{

    box-shadow:var(--shadow);

}

.rounded{

    border-radius:var(--radius);

}

.hidden{

    display:none;

}
/* USA flag background */
body,body.dark{background:repeating-linear-gradient(180deg,#b22234 0 70px,#fff 70px 140px);background-attachment:fixed;color:#172b50}body:before{content:'';position:fixed;left:0;top:0;width:42vw;height:49vh;background-color:#3c3b6e;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='56' viewBox='0 0 64 56'%3E%3Ctext x='10' y='22' fill='white' font-size='22'%3E%E2%98%85%3C/text%3E%3Ctext x='42' y='50' fill='white' font-size='22'%3E%E2%98%85%3C/text%3E%3C/svg%3E");z-index:-1;pointer-events:none}header,body.dark header{background:#ffffffef;color:#172b50}main,body>section{background:#ffffffed}body>section{margin:25px auto;border-radius:18px;width:94%;padding:35px 5%}footer,body.dark footer{background:#3c3b6eef;color:white}footer p{color:white}.project-card,.skill-card,.card,body.dark .project-card,body.dark .skill-card{background:#fffffff2;color:#172b50}.hero-text p,body.dark .hero-text p{color:#344761}nav a,body.dark nav a{color:#172b50}main{margin:28px auto;width:94%;border-radius:18px;overflow:hidden}@media(max-width:620px){body:before{width:48vw;height:32vh}main{width:96%}}

.logo h2,body.dark .logo h2{color:#172b50!important}body.dark h1,body.dark h2,body.dark h3{color:#172b50}.hero-text h1 span{color:#245be8}
