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

/* Disable horizontal scrolling */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip; /* Fix for iOS Safari */
}

/* Wrapper to fix flex issues on Safari */
.body-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Global styles */
.med-text {
    font-size: 1.5rem !important;
}

.long-text {
    line-height: 1.6;
    text-align: justify;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #1E3A8A;
}

/* Header */
header {
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 60px;
    height: auto;
    border-radius: 20%;
}

header h1 {
    margin: 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Prevent breaking on older iOS */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Fix for disappearing nav links in Safari */
@supports (-webkit-touch-callout: none) {
    nav ul li a[href="#section2"],
    nav ul li a[href="#contacts"] {
        visibility: hidden;
        height: 0;
    }
}

.nav-button {
    background: #444;
    color: #fff;
    font-size: 1.1rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

main {
    flex: 1;
    padding: 20px;
}

footer {
    background: transparent;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}

/* Hover Effect */
.over {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    will-change: transform; /* Helps Safari */
}

.over:hover {
    transform: scale(1.1);
}

/* Gradient Titles */
.gradient-title, .gradient-subtitle {
    font-weight: bold;
    background: linear-gradient(45deg, #C084FC, #9333EA, #4C1D95);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #9333EA; /* Fallback for Safari */
}

.gradient-title {
    font-size: 4rem;
}

.gradient-subtitle {
    font-size: 2rem;
}

/* Links & Icons */
.email-link {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.fa-pen {
    transform: rotate(270deg);
}

.fa-linkedin {
    color: white;
    font-size: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    #log {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .med-text {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 1.5rem 3rem;
    }

    header h1 {
        font-size: 3rem;
    }

    nav ul li {
        margin: 0 15px;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .nav-button {
        font-size: 1.5rem;
        padding: 0.7rem 1.2rem;
    }

    .med-text {
        font-size: 1.5rem;
    }

    .long-text {
        font-size: 1.5rem;
    }

    body {
        font-size: 1.5rem;
    }

    .email-link {
        font-size: 1.8rem;
    }

    .fa-linkedin {
        font-size: 3rem;
    }
}

@media (max-width: 425px) {
    .logo-title {
        display: flex !important;
        gap: 8px !important;
    }

    .logo {
        width: 60px !important;
    }

    .logo-head {
        color: white !important;
        font-size: 25px !important;
        font-weight: 700 !important;
    }
    header {
		padding: 16px 32px;
	}
	nav ul li:not(:last-child) {
		display: none !important;
	}
}




.mobile-only nav ul li:not(:last-child) {
     
		display: none !important;
}