:root {
    --background: #0d0d0d;
    --foreground: #ffffff;
    --secondary: #b3b3b3;
    --accent: #00ff85;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.main {
    min-height: 100vh;
    position: relative;
}

#intro {
    padding-top: 5rem;
}

.section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

.section-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-content h4 {
    font-size: larger;
    margin-bottom: 1.5rem;
}

.logo {
    display: block;
    transition: transform 0.5s ease;
}

#intro .section-content img:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1.25rem, 1.75vw, 0.75rem);
    color: var(--secondary);
}

.top-nav {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

.top-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.top-nav a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    font-size: 1rem;
}

.top-nav a:hover,
.top-nav a:focus {
    color: var(--foreground);
}

.has-submenu {
    position: relative;
}

.has-submenu .submenu {
    display: none;
}

.submenu {
    position: absolute;
    top: 100%;
    background: rgba(20,20,20,0.95);
    padding: 0.5rem 0;
    list-style: none;
}

.submenu li a {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    color: var(--secondary);
    transition: background 0.2s, color 0.2s;
}

.submenu li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--foreground);
}

.has-submenu:hover .submenu {
    display: block;
}

.container {
    text-align: center;
    margin-top: 1rem;
}

.container p {
    margin-bottom: 1rem;
}

.container p a {
    display: inline-block;
    padding: 0 0.75rem;
}

.container p a:hover img {
    transform: scale(1.1);
}

.button > a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
	padding: 0.5rem 1rem;
	color: var(--background);
	background-color: rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
}

.button > a:hover {
    transform: scale(1.1);
}

.folder-img {
	width: 13.5%;
	height: auto;
    padding: 0 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.folder-img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.contact {
    transition: transform 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 900px;
    color: var(--foreground);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease;
}

.close {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--accent);
    transition: color 0.2s;
}

.close:hover {
    color: var(--foreground);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cert-grid img {
    width: 100%;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.cert-grid img:hover {
    transform: scale(1.05);
}
  
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cert-list {
    text-align: center;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.cert-list li {
    margin: 0.75rem 0;
}

.cert-list a {
    display: block;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0.4rem;
    transition: background 0.3s ease, transform 0.2s ease;
    }

.cert-list a:hover {
    background: rgba(0, 255, 133, 0.1);
    transform: translateX(5px);
    color: var(--foreground);
}

.modal-content h2 {
    text-align: center;
}

#python img {
    height: 50%;
    width: 50%;
}