:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --accent: #0044cc;
    --nav-height: 80px;
    --wheel-radius: 45px; /* Increase this if text overlaps */
}

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

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

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

/* Minimalist Navbar */
.navbar { 
    position: fixed; top: 0; width: 100%; height: var(--nav-height); 
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    z-index: 1000; display: flex; align-items: center;
}

.nav-container { 
    width: 100%; display: flex; justify-content: space-between; align-items: center; 
}

.logo { font-size: 1.1rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a { 
    text-decoration: none; color: var(--text); font-size: 0.85rem; 
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0.5; transition: opacity 0.3s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* Hero Section */
.hero { 
    padding-top: calc(var(--nav-height) + 60px); 
    display: grid; grid-template-columns: 1.2fr 0.8fr; 
    align-items: center; min-height: 85vh; gap: 60px;
}

.hero-text h1 { font-size: 5rem; line-height: 1; letter-spacing: -3px; margin-bottom: 20px; }
.hero-text p { font-size: 1.25rem; color: var(--muted); margin-bottom: 40px; max-width: 500px; }

.profile-img { 
    width: 100%; aspect-ratio: 4/5; object-fit: cover; 
    filter: grayscale(100%); transition: filter 0.5s;
}
.profile-img:hover { filter: grayscale(0%); }

/* Professional Certificate Rows */
.section-title { font-size: 2.5rem; margin: 100px 0 60px; letter-spacing: -1px; }

.cert-row { 
    display: grid; grid-template-columns: 1fr 1fr; 
    gap: 100px; margin-bottom: 150px; align-items: center; 
}

/* Flip Logic */
.cert-row:nth-child(even) .cert-info { order: 2; }
.cert-row:nth-child(even) .cert-visual { order: 1; }

.cert-info h3 { font-size: 2rem; margin-bottom: 15px; letter-spacing: -0.5px; }
.cert-info p { font-size: 1.1rem; color: var(--muted); margin-bottom: 25px; }

.verify-link { 
    text-decoration: none; color: var(--text); font-weight: 700; 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    border-bottom: 2px solid var(--text); padding-bottom: 5px;
}
.cert-visual img { 
    width: 100%; 
    display: block; 
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-visual img:hover { 
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); 
}

/* Container that clips the view and adds the fade */
.wheel-container {
    height: 75px; 
    perspective: 1000px;
    position: relative;
    overflow: visible; /* Change this from hidden to visible */
    padding-left: 5px; /* Gives the first letter 'breathing room' */
    
    /* The mask-image already handles the clipping for the fade, 
       so overflow: hidden isn't actually needed! */
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

/* The actual spinning drum */
.wheel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Each title face on the drum */
.title {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    backface-visibility: hidden;
    font-size: 3.5rem; /* Match your original H1 size */
    font-weight: 800;
    /* Pushes faces out 90 degrees apart */
    transform: rotateX(calc(var(--i) * -90deg)) translateZ(var(--wheel-radius));
}

/* Responsive */
@media (max-width: 900px) {
    .hero, .cert-row { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 3.5rem; }
    .cert-row:nth-child(even) .cert-info { order: 1; }
}
