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

body {
    background-color: var(--body-color);
    font-family: var(--body-font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--dark-color);
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern font enhancements for creative look */
.sgpa-navbar,
.navbar-menu,
.nav-link {
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.brand-text {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Creative Navbar Styles */
.sgpa-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(92, 117, 227, 0.363);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: var(--heading-letter-spacing);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.6rem 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover span {
    background: var(--secondary-color);
}

/* Animated Background Elements */
.navbar-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    top: -30px;
    right: 10%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    bottom: -15px;
    left: 20%;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    top: 50%;
    right: 30%;
    animation-delay: 4s;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.shape1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    background: var(--primary-color);
    animation-delay: 0s;
}

.shape2 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 10%;
    background: var(--secondary-color);
    animation-delay: 2s;
}

.shape3 {
    width: 70px;
    height: 70px;
    top: 50%;
    right: 30%;
    background: var(--accent-color);
    animation-delay: 4s;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-text .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    opacity: 0.8;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-cta {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--button-border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.hero-image {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.converter-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.icon-wrapper:first-child {
    color: #3498db;
    animation-delay: 0s;
}

.icon-wrapper:last-child {
    color: #e74c3c;
    animation-delay: 0.5s;
}

.icon-wrapper i {
    font-size: 32px;
}

.arrow-icon {
    color: var(--primary-color);
    font-size: 24px;
    animation: arrowPulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes arrowPulse {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Main container */
.container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 60px auto 40px;
    position: relative;
    overflow: hidden;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

h1 {
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: var(--heading-line-height);
    letter-spacing: var(--heading-letter-spacing);
}

h1 i {
    margin-right: 10px;
    color: #e74c3c;
}

h2 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: var(--heading-line-height);
}

.subtitle {
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 300;
}

/* Upload section */
.upload-section {
    margin-bottom: 30px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    padding: 20px;
    background-color: rgba(67, 97, 238, 0.05);
    border: 2px dashed rgba(67, 97, 238, 0.3);
    border-radius: var(--card-border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-label:hover,
.upload-label.highlight {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.upload-label i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-label span {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.7;
    font-weight: 300;
}

input[type="file"] {
    display: none;
}

/* Preview section */
.preview-section {
    margin-bottom: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-count {
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.7;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--button-border-radius);
    transition: var(--transition);
}

.clear-btn i {
    margin-right: 5px;
}

.clear-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.image-preview {
    width: 160px;
    height: 160px;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
}

.image-preview:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    z-index: 1;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    transform: rotate(0deg);
    image-orientation: from-image;
}

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error-color);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.image-preview:hover .remove-btn {
    opacity: 1;
}

.image-preview .remove-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--primary-color);
}

/* Options section */
.options-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: var(--card-border-radius);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 500;
}

.option-group input,
.option-group select {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--button-border-radius);
    font-family: var(--body-font);
    font-size: 14px;
    transition: var(--transition);
}

.option-group input:focus,
.option-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

/* Action buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--button-border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

button i {
    margin-right: 8px;
    font-size: 18px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

button:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #aaaaaa 100%);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Progress bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: var(--gradient);
    width: 0;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.7;
}

/* Footer */
footer {
    text-align: center;
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.7;
    margin-top: 20px;
    font-weight: 300;
}

/* Animation keyframes */
@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-menu {
        gap: 1rem;
    }

    .container {
        max-width: 95%;
        width: 95%;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text,
    .hero-image {
        max-width: 100%;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 0 auto 20px;
        width: 92%;
        max-width: none;
    }

    h1 {
        font-size: 26px;
    }

    .upload-label {
        height: 160px;
    }

    .image-preview {
        width: calc(50% - 10px);
        height: 120px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }

    /* Navbar Mobile Styles */
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-menu {
        position: fixed;
        top: 59px;
        right: -100%;
        width: 55%;
        height: calc(100vh - 59px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.1rem 0.5rem;
        transition: right 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .converter-illustration {
        padding: 20px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        border-radius: 0px;
        padding: 20px 15px;
        margin: 0px auto 15px;
    }

    h1 {
        font-size: 22px;
    }

    h1 i {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .preview-actions {
        width: 100%;
        justify-content: space-between;
    }

    .clear-btn {
        background-color: rgba(231, 76, 60, 0.1);
        padding: 8px 12px;
        border-radius: 4px;
    }

    .image-preview {
        width: calc(50% - 10px);
        height: 100px;
    }

    .preview-container {
        gap: 10px;
    }

    .upload-label {
        height: 140px;
    }

    .upload-label i {
        font-size: 36px;
    }

    .upload-label span {
        font-size: 16px;
    }

    .options-section {
        padding: 15px;
    }

    .options-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .option-group {
        margin-bottom: 10px;
    }

    .option-group label {
        margin-bottom: 5px;
    }

    .option-group input,
    .option-group select {
        padding: 10px;
        font-size: 14px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .converter-illustration {
        padding: 15px;
        gap: 10px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .icon-wrapper i {
        font-size: 20px;
    }

    .arrow-icon {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}