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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    transition:0.3s;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#000;
    color:white;
    overflow-x:hidden;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#000;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(#00d9ff,#0066ff);
    border-radius:20px;
}

/* NAVBAR */

nav{
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;

    background:rgba(0,0,0,0.5);

    backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(255,255,255,0.08);
}

.nav-container{
    padding:18px 7%;

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

.logo{
    color:#00d9ff;
    font-size:30px;
}

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

nav ul li a{
    color:white;
    text-decoration:none;
    position:relative;
}

nav ul li a::after{
    content:"";
    position:absolute;

    left:0;
    bottom:-6px;

    width:0%;
    height:2px;

    background:#00d9ff;

    transition:0.4s;
}

nav ul li a:hover::after{
    width:100%;
}

/* HERO */

.hero{
    position:relative;

    height:100vh;

    background:
    linear-gradient(rgba(0,0,0,0.5),
    rgba(0,0,0,0.7)),
    url('photo1.jpg');

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

    padding:0 7%;

    overflow:hidden;
}

/* HERO FADE */

.hero::after{
    content:"";
    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:200px;

    background:linear-gradient(
        to bottom,
        transparent,
        #000
    );
}

/* HERO CONTENT */

.hero-content{
    position:relative;
    z-index:2;
    max-width:600px;
}

.hero h1{
    font-size:60px;
    line-height:1.2;
    animation:fadeUp 1s ease;
}

.name{
    color:#00d9ff;
}

/* COLOR ANIMATION */

.changing-text,
.changing-text2{
    animation:colorChange 4s infinite;
}

.changing-text2{
    animation-delay:2s;
}

@keyframes colorChange{

    0%{
        color:#00d9ff;
    }

    25%{
        color:#00ff88;
    }

    50%{
        color:#ffcc00;
    }

    75%{
        color:#ff4d6d;
    }

    100%{
        color:#00d9ff;
    }

}

.hero p{
    margin-top:20px;
    color:#ccc;
    line-height:1.8;
    max-width:500px;

    animation:fadeUp 1.5s ease;
}

/* BUTTON */

.hero-btn{
    display:inline-block;

    margin-top:30px;

    padding:15px 32px;

    background:#00d9ff;
    color:black;

    border-radius:50px;

    text-decoration:none;
    font-weight:600;

    overflow:hidden;
    position:relative;
}

.hero-btn:hover{
    transform:translateY(-5px);
    box-shadow:0 0 25px #00d9ff;
}

/* SECTIONS */

section{
    padding:100px 7%;
}

section h2{
    font-size:42px;
    margin-bottom:50px;
    position:relative;
}

section h2::after{
    content:"";
    position:absolute;

    left:0;
    bottom:-10px;

    width:80px;
    height:4px;

    border-radius:10px;

    background:#00d9ff;
}

/* ABOUT */

.about-container{
    display:flex;
    align-items:center;
    gap:60px;
    flex-wrap:wrap;

    background:#0d0d0d;

    padding:40px;

    border-radius:30px;

    border:1px solid rgba(255,255,255,0.06);
}

/* IMAGE */

.img-box{
    width:350px;
    height:350px;

    border-radius:50%;

    overflow:hidden;

    position:relative;

    background:linear-gradient(
        135deg,
        #00d9ff,
        #0066ff
    );

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

    animation:float 4s ease-in-out infinite;
}

.img-box::before{
    content:"";
    position:absolute;

    width:100%;
    height:100%;

    border-radius:50%;

    background:#00d9ff;

    filter:blur(80px);

    opacity:0.3;

    z-index:-1;
}

.demo-img{
    width:100%;
    height:100%;

    object-fit:cover;
}

/* ABOUT TEXT */

.about-text{
    flex:1;
}

.about-text p{
    color:#ccc;
    line-height:1.9;
    margin-bottom:20px;
}

/* PROJECTS */

.project-grid{
    display:grid;

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

    gap:30px;
}

.project-card{
    background:#111;

    border-radius:25px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,0.05);
}

.project-card:hover{
    transform:translateY(-12px);
    box-shadow:0 0 25px rgba(0,217,255,0.2);
}

.project-card img{
    width:100%;
    height:220px;

    object-fit:cover;
}

.project-card:hover img{
    transform:scale(1.08);
}

.project-content{
    padding:25px;
}

.project-content p{
    margin-top:10px;
    color:#aaa;
    line-height:1.7;
}

/* CONTACT */

#contact{
    text-align:left;
}

.contact-text{
    color:#aaa;
}

/* FORM */

.form-input{
    margin:auto;

    margin-top:35px;

    max-width:550px;

    display:flex;

    background:white;

    border-radius:50px;

    overflow:hidden;
}

.form-input input{
    flex:1;

    border:none;
    outline:none;

    padding:20px;
    font-size:16px;
}

.form-input button{
    border:none;

    background:#00d9ff;

    padding:0 30px;

    font-weight:600;

    cursor:pointer;
}

.form-input button:hover{
    background:#fff;
}

/* FOOTER */

footer{
    padding:30px;
    text-align:center;

    color:#888;

    border-top:1px solid rgba(255,255,255,0.08);
}

/* ANIMATIONS */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0px);
    }

}

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0px);
    }

}

/* MOBILE */

@media(max-width:768px){

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

    nav ul{
        gap:15px;
    }

    nav ul li a{
        font-size:13px;
    }

    .about-container{
        text-align:center;
        justify-content:center;
    }

    .img-box{
        width:260px;
        height:260px;
    }

}

/* BOOKS SECTION */

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

/* BOOK CARD */

.book-card {
    background: #111;
    
    border-radius: 25px;
    
    overflow: hidden;
    
    border: 1px solid rgba(255, 255, 255, 0.06);
    
    position: relative;
}

.book-card:hover {
    transform: translateY(-12px);
    
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.18);
}

/* BOOK IMAGE */

.book-card img {
    width: 100%;
    
    height: 420px;
    
    object-fit: cover;
    
    transition: 0.5s;
}

.book-card:hover img {
    transform: scale(1.05);
}

/* CONTENT */

.book-content {
    padding: 25px;
}

.book-content h3 {
    margin-bottom: 15px;
    
    font-size: 22px;
}

.book-content p {
    color: #aaa;
    
    line-height: 1.7;
    
    margin-bottom: 20px;
}

/* BUTTON */

.book-btn {
    display: inline-block;
    
    padding: 12px 24px;
    
    border-radius: 40px;
    
    background: #00d9ff;
    
    color: black;
    
    text-decoration: none;
    
    font-weight: 600;
}

.book-btn:hover {
    background: white;
    
    transform: translateY(-3px);
}

/* MOBILE */

@media(max-width:768px) {
    
    .book-card img {
        height: 360px;
    }
    
}

/* SKILLS SECTION */

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

/* EACH SKILL */

.skill{
    margin-bottom:35px;
}

/* TEXT */

.skill-info{
    display:flex;
    justify-content:space-between;

    margin-bottom:10px;

    font-size:18px;
}

/* BAR */

.skill-bar{
    width:100%;
    height:14px;

    background:#111;

    border-radius:30px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,0.05);
}

/* FILL */

.skill-fill{
    height:100%;

    border-radius:30px;

    background:linear-gradient(
        90deg,
        #00d9ff,
        #0066ff
    );

    position:relative;

    animation:fillAnimation 2s ease forwards;
}

/* INDIVIDUAL WIDTHS */

.html{
    width:95%;
}

.css{
    width:90%;
}

.js{
    width:75%;
}

.ui{
    width:88%;
}

.writing{
    width:92%;
}

.story{
    width:96%;
}

/* GLOW EFFECT */

.skill-fill::after{
    content:"";
    position:absolute;

    right:0;
    top:0;

    width:20px;
    height:100%;

    background:white;

    opacity:0.6;

    filter:blur(8px);
}

/* ANIMATION */

@keyframes fillAnimation{

    from{
        width:0;
    }

}

/* ACHIEVEMENTS */

#achievements{
    padding-top:40px;
}

/* GRID */

.achievement-grid{
    display:grid;

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

    gap:30px;

    margin-top:50px;
}

/* CARD */

.achievement-card{
    background:#0f0f0f;

    padding:45px 30px;

    border-radius:25px;

    border:1px solid rgba(255,255,255,0.05);

    position:relative;

    overflow:hidden;
}

/* HOVER */

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

    box-shadow:0 0 30px rgba(0,217,255,0.15);
}

/* NUMBER */

.achievement-card h1{
    font-size:60px;

    color:#00d9ff;

    margin-bottom:20px;

    line-height:1;
}

/* TEXT */

.achievement-card span{
    color:#aaa;

    font-size:15px;

    text-transform:uppercase;

    letter-spacing:4px;
}

/* TOP GLOW LINE */

.achievement-card::before{
    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:linear-gradient(
        to right,
        #00d9ff,
        transparent
    );
}

/* LIGHT EFFECT */

.achievement-card::after{
    content:"";

    position:absolute;

    top:-50%;
    left:-50%;

    width:200%;
    height:200%;

    background:linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.03),
        transparent
    );

    transform:rotate(25deg);

    transition:0.8s;
}

.achievement-card:hover::after{
    left:100%;
}

/* MOBILE */

@media(max-width:768px){

    .achievement-card h1{
        font-size:45px;
    }

}

/* FOOTER */

footer {
    background: #0a0a0a;
    
    margin-top: 100px;
    
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* CONTAINER */

.footer-container {
    display: grid;
    
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    
    gap: 40px;
    
    padding: 70px 7%;
}

/* LOGO */

.footer-logo {
    color: #00d9ff;
    
    font-size: 32px;
    
    margin-bottom: 20px;
}

/* TEXT */

.footer-box p {
    color: #aaa;
    
    line-height: 1.8;
}

/* TITLES */

.footer-box h3 {
    margin-bottom: 20px;
    
    font-size: 24px;
}

/* LINKS */

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 12px;
}

.footer-box ul li a {
    color: #aaa;
    
    text-decoration: none;
    
    transition: 0.3s;
}

/* HOVER */

.footer-box ul li a:hover {
    color: #00d9ff;
    
    padding-left: 6px;
}

/* BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    
    text-align: center;
    
    padding: 25px;
    
    color: #777;
}

/* MOBILE */

@media(max-width:768px) {
    
    .footer-container {
        text-align: center;
    }
    
}

/* FOOTER SOCIALS */

.footer-socials {
    display: flex;
    
    gap: 15px;
    
    margin-top: 25px;
}

/* ICONS */

.footer-socials a {
    width: 48px;
    height: 48px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    border-radius: 50%;
    
    background: #111;
    
    color: #00d9ff;
    
    text-decoration: none;
    
    font-size: 20px;
    
    border: 1px solid rgba(255, 255, 255, 0.06);
    
    transition: 0.4s;
}

/* HOVER EFFECT */

.footer-socials a:hover {
    background: #00d9ff;
    
    color: black;
    
    transform: translateY(-6px);
    
    box-shadow: 0 0 20px #00d9ff;
}

/* GOOGLE QUICK FACTS PANEL (DARK MODE) */

.google-facts-panel {
    background: #0f0f0f; /* Dark card background to match your design */
    padding: 30px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 650px; /* Gives it that compact sidebar/panel feel */
    margin-top: 20px;
}

.g-fact-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Precise divider lines */
    font-size: 16px;
    line-height: 1.5;
}

/* Remove the line from the very last item */
.g-fact-row:last-child {
    border-bottom: none;
}

/* Bold label like 'Born:', 'Parents:' */
.g-label {
    font-weight: 600;
    color: #ffffff;
    margin-right: 6px;
    display: inline;
}

/* The text/description details */
.g-value {
    color: #dddddd;
}

/* Precise Google-style Blue Links */
.g-link {
    color: #8ab4f8; /* Modern dark-mode Google link blue */
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.g-link:hover {
    text-decoration: underline; /* Standard Google hover behavior */
}

/* Mobile Tweak */
@media(max-width:768px){
    .google-facts-panel {
        padding: 20px 15px;
        font-size: 15px;
    }
}


/* FAMILY PAGE STYLES */

.family-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('photo1.jpg') center/cover no-repeat;
    padding: 0 7%;
}

.member-section {
    padding: 80px 7%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.member-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Make every second family row flip image to the right side */
.alternate-row .member-container {
    flex-direction: row-reverse;
}

.member-img-box {
    flex-shrink: 0;
    width: 300px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.05);
}

.member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-img-box:hover img {
    transform: scale(1.05);
}

.member-text {
    flex: 1;
}

.member-relation {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d9ff;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.member-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

/* Remove default decorative line under h2 for family text items */
.member-text h2::after {
    display: none;
}

.member-text p {
    color: #ccc;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Responsive adjustments for mobile screens */
@media(max-width: 768px) {
    .member-container, .alternate-row .member-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .member-img-box {
        width: 250px;
        height: 280px;
    }
}

/* ==========================================================================
   PHOTOS SECTION
   ========================================================================== */

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.photo-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Caption Overlay Effect */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-overlay span {
    color: #00d9ff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

/* Hover Animations */
.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.3);
}

.photo-card:hover img {
    transform: scale(1.08);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-card:hover .photo-overlay span {
    transform: translateY(0);
}

/* Mobile Tweak */
@media(max-width: 768px) {
    .photo-card {
        height: 260px;
    }
}
